1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package amplify
4
5import (
6	"fmt"
7	"time"
8
9	"github.com/aws/aws-sdk-go/aws"
10	"github.com/aws/aws-sdk-go/aws/awsutil"
11	"github.com/aws/aws-sdk-go/aws/request"
12	"github.com/aws/aws-sdk-go/private/protocol"
13	"github.com/aws/aws-sdk-go/private/protocol/restjson"
14)
15
16const opCreateApp = "CreateApp"
17
18// CreateAppRequest generates a "aws/request.Request" representing the
19// client's request for the CreateApp operation. The "output" return
20// value will be populated with the request's response once the request completes
21// successfully.
22//
23// Use "Send" method on the returned Request to send the API call to the service.
24// the "output" return value is not valid until after Send returns without error.
25//
26// See CreateApp for more information on using the CreateApp
27// API call, and error handling.
28//
29// This method is useful when you want to inject custom logic or configuration
30// into the SDK's request lifecycle. Such as custom headers, or retry logic.
31//
32//
33//    // Example sending a request using the CreateAppRequest method.
34//    req, resp := client.CreateAppRequest(params)
35//
36//    err := req.Send()
37//    if err == nil { // resp is now filled
38//        fmt.Println(resp)
39//    }
40//
41// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateApp
42func (c *Amplify) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) {
43	op := &request.Operation{
44		Name:       opCreateApp,
45		HTTPMethod: "POST",
46		HTTPPath:   "/apps",
47	}
48
49	if input == nil {
50		input = &CreateAppInput{}
51	}
52
53	output = &CreateAppOutput{}
54	req = c.newRequest(op, input, output)
55	return
56}
57
58// CreateApp API operation for AWS Amplify.
59//
60// Creates a new Amplify app.
61//
62// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
63// with awserr.Error's Code and Message methods to get detailed information about
64// the error.
65//
66// See the AWS API reference guide for AWS Amplify's
67// API operation CreateApp for usage and error information.
68//
69// Returned Error Types:
70//   * BadRequestException
71//   A request contains unexpected data.
72//
73//   * UnauthorizedException
74//   An operation failed due to a lack of access.
75//
76//   * InternalFailureException
77//   The service failed to perform an operation due to an internal issue.
78//
79//   * LimitExceededException
80//   A resource could not be created because service quotas were exceeded.
81//
82//   * DependentServiceFailureException
83//   An operation failed because a dependent service threw an exception.
84//
85// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateApp
86func (c *Amplify) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) {
87	req, out := c.CreateAppRequest(input)
88	return out, req.Send()
89}
90
91// CreateAppWithContext is the same as CreateApp with the addition of
92// the ability to pass a context and additional request options.
93//
94// See CreateApp for details on how to use this API operation.
95//
96// The context must be non-nil and will be used for request cancellation. If
97// the context is nil a panic will occur. In the future the SDK may create
98// sub-contexts for http.Requests. See https://golang.org/pkg/context/
99// for more information on using Contexts.
100func (c *Amplify) CreateAppWithContext(ctx aws.Context, input *CreateAppInput, opts ...request.Option) (*CreateAppOutput, error) {
101	req, out := c.CreateAppRequest(input)
102	req.SetContext(ctx)
103	req.ApplyOptions(opts...)
104	return out, req.Send()
105}
106
107const opCreateBackendEnvironment = "CreateBackendEnvironment"
108
109// CreateBackendEnvironmentRequest generates a "aws/request.Request" representing the
110// client's request for the CreateBackendEnvironment operation. The "output" return
111// value will be populated with the request's response once the request completes
112// successfully.
113//
114// Use "Send" method on the returned Request to send the API call to the service.
115// the "output" return value is not valid until after Send returns without error.
116//
117// See CreateBackendEnvironment for more information on using the CreateBackendEnvironment
118// API call, and error handling.
119//
120// This method is useful when you want to inject custom logic or configuration
121// into the SDK's request lifecycle. Such as custom headers, or retry logic.
122//
123//
124//    // Example sending a request using the CreateBackendEnvironmentRequest method.
125//    req, resp := client.CreateBackendEnvironmentRequest(params)
126//
127//    err := req.Send()
128//    if err == nil { // resp is now filled
129//        fmt.Println(resp)
130//    }
131//
132// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBackendEnvironment
133func (c *Amplify) CreateBackendEnvironmentRequest(input *CreateBackendEnvironmentInput) (req *request.Request, output *CreateBackendEnvironmentOutput) {
134	op := &request.Operation{
135		Name:       opCreateBackendEnvironment,
136		HTTPMethod: "POST",
137		HTTPPath:   "/apps/{appId}/backendenvironments",
138	}
139
140	if input == nil {
141		input = &CreateBackendEnvironmentInput{}
142	}
143
144	output = &CreateBackendEnvironmentOutput{}
145	req = c.newRequest(op, input, output)
146	return
147}
148
149// CreateBackendEnvironment API operation for AWS Amplify.
150//
151// Creates a new backend environment for an Amplify app.
152//
153// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
154// with awserr.Error's Code and Message methods to get detailed information about
155// the error.
156//
157// See the AWS API reference guide for AWS Amplify's
158// API operation CreateBackendEnvironment for usage and error information.
159//
160// Returned Error Types:
161//   * BadRequestException
162//   A request contains unexpected data.
163//
164//   * UnauthorizedException
165//   An operation failed due to a lack of access.
166//
167//   * NotFoundException
168//   An entity was not found during an operation.
169//
170//   * InternalFailureException
171//   The service failed to perform an operation due to an internal issue.
172//
173//   * LimitExceededException
174//   A resource could not be created because service quotas were exceeded.
175//
176// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBackendEnvironment
177func (c *Amplify) CreateBackendEnvironment(input *CreateBackendEnvironmentInput) (*CreateBackendEnvironmentOutput, error) {
178	req, out := c.CreateBackendEnvironmentRequest(input)
179	return out, req.Send()
180}
181
182// CreateBackendEnvironmentWithContext is the same as CreateBackendEnvironment with the addition of
183// the ability to pass a context and additional request options.
184//
185// See CreateBackendEnvironment for details on how to use this API operation.
186//
187// The context must be non-nil and will be used for request cancellation. If
188// the context is nil a panic will occur. In the future the SDK may create
189// sub-contexts for http.Requests. See https://golang.org/pkg/context/
190// for more information on using Contexts.
191func (c *Amplify) CreateBackendEnvironmentWithContext(ctx aws.Context, input *CreateBackendEnvironmentInput, opts ...request.Option) (*CreateBackendEnvironmentOutput, error) {
192	req, out := c.CreateBackendEnvironmentRequest(input)
193	req.SetContext(ctx)
194	req.ApplyOptions(opts...)
195	return out, req.Send()
196}
197
198const opCreateBranch = "CreateBranch"
199
200// CreateBranchRequest generates a "aws/request.Request" representing the
201// client's request for the CreateBranch operation. The "output" return
202// value will be populated with the request's response once the request completes
203// successfully.
204//
205// Use "Send" method on the returned Request to send the API call to the service.
206// the "output" return value is not valid until after Send returns without error.
207//
208// See CreateBranch for more information on using the CreateBranch
209// API call, and error handling.
210//
211// This method is useful when you want to inject custom logic or configuration
212// into the SDK's request lifecycle. Such as custom headers, or retry logic.
213//
214//
215//    // Example sending a request using the CreateBranchRequest method.
216//    req, resp := client.CreateBranchRequest(params)
217//
218//    err := req.Send()
219//    if err == nil { // resp is now filled
220//        fmt.Println(resp)
221//    }
222//
223// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBranch
224func (c *Amplify) CreateBranchRequest(input *CreateBranchInput) (req *request.Request, output *CreateBranchOutput) {
225	op := &request.Operation{
226		Name:       opCreateBranch,
227		HTTPMethod: "POST",
228		HTTPPath:   "/apps/{appId}/branches",
229	}
230
231	if input == nil {
232		input = &CreateBranchInput{}
233	}
234
235	output = &CreateBranchOutput{}
236	req = c.newRequest(op, input, output)
237	return
238}
239
240// CreateBranch API operation for AWS Amplify.
241//
242// Creates a new branch for an Amplify app.
243//
244// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
245// with awserr.Error's Code and Message methods to get detailed information about
246// the error.
247//
248// See the AWS API reference guide for AWS Amplify's
249// API operation CreateBranch for usage and error information.
250//
251// Returned Error Types:
252//   * BadRequestException
253//   A request contains unexpected data.
254//
255//   * UnauthorizedException
256//   An operation failed due to a lack of access.
257//
258//   * NotFoundException
259//   An entity was not found during an operation.
260//
261//   * InternalFailureException
262//   The service failed to perform an operation due to an internal issue.
263//
264//   * LimitExceededException
265//   A resource could not be created because service quotas were exceeded.
266//
267//   * DependentServiceFailureException
268//   An operation failed because a dependent service threw an exception.
269//
270// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBranch
271func (c *Amplify) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput, error) {
272	req, out := c.CreateBranchRequest(input)
273	return out, req.Send()
274}
275
276// CreateBranchWithContext is the same as CreateBranch with the addition of
277// the ability to pass a context and additional request options.
278//
279// See CreateBranch for details on how to use this API operation.
280//
281// The context must be non-nil and will be used for request cancellation. If
282// the context is nil a panic will occur. In the future the SDK may create
283// sub-contexts for http.Requests. See https://golang.org/pkg/context/
284// for more information on using Contexts.
285func (c *Amplify) CreateBranchWithContext(ctx aws.Context, input *CreateBranchInput, opts ...request.Option) (*CreateBranchOutput, error) {
286	req, out := c.CreateBranchRequest(input)
287	req.SetContext(ctx)
288	req.ApplyOptions(opts...)
289	return out, req.Send()
290}
291
292const opCreateDeployment = "CreateDeployment"
293
294// CreateDeploymentRequest generates a "aws/request.Request" representing the
295// client's request for the CreateDeployment operation. The "output" return
296// value will be populated with the request's response once the request completes
297// successfully.
298//
299// Use "Send" method on the returned Request to send the API call to the service.
300// the "output" return value is not valid until after Send returns without error.
301//
302// See CreateDeployment for more information on using the CreateDeployment
303// API call, and error handling.
304//
305// This method is useful when you want to inject custom logic or configuration
306// into the SDK's request lifecycle. Such as custom headers, or retry logic.
307//
308//
309//    // Example sending a request using the CreateDeploymentRequest method.
310//    req, resp := client.CreateDeploymentRequest(params)
311//
312//    err := req.Send()
313//    if err == nil { // resp is now filled
314//        fmt.Println(resp)
315//    }
316//
317// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateDeployment
318func (c *Amplify) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) {
319	op := &request.Operation{
320		Name:       opCreateDeployment,
321		HTTPMethod: "POST",
322		HTTPPath:   "/apps/{appId}/branches/{branchName}/deployments",
323	}
324
325	if input == nil {
326		input = &CreateDeploymentInput{}
327	}
328
329	output = &CreateDeploymentOutput{}
330	req = c.newRequest(op, input, output)
331	return
332}
333
334// CreateDeployment API operation for AWS Amplify.
335//
336// Creates a deployment for a manually deployed Amplify app. Manually deployed
337// apps are not connected to a repository.
338//
339// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
340// with awserr.Error's Code and Message methods to get detailed information about
341// the error.
342//
343// See the AWS API reference guide for AWS Amplify's
344// API operation CreateDeployment for usage and error information.
345//
346// Returned Error Types:
347//   * BadRequestException
348//   A request contains unexpected data.
349//
350//   * UnauthorizedException
351//   An operation failed due to a lack of access.
352//
353//   * InternalFailureException
354//   The service failed to perform an operation due to an internal issue.
355//
356//   * LimitExceededException
357//   A resource could not be created because service quotas were exceeded.
358//
359// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateDeployment
360func (c *Amplify) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) {
361	req, out := c.CreateDeploymentRequest(input)
362	return out, req.Send()
363}
364
365// CreateDeploymentWithContext is the same as CreateDeployment with the addition of
366// the ability to pass a context and additional request options.
367//
368// See CreateDeployment for details on how to use this API operation.
369//
370// The context must be non-nil and will be used for request cancellation. If
371// the context is nil a panic will occur. In the future the SDK may create
372// sub-contexts for http.Requests. See https://golang.org/pkg/context/
373// for more information on using Contexts.
374func (c *Amplify) CreateDeploymentWithContext(ctx aws.Context, input *CreateDeploymentInput, opts ...request.Option) (*CreateDeploymentOutput, error) {
375	req, out := c.CreateDeploymentRequest(input)
376	req.SetContext(ctx)
377	req.ApplyOptions(opts...)
378	return out, req.Send()
379}
380
381const opCreateDomainAssociation = "CreateDomainAssociation"
382
383// CreateDomainAssociationRequest generates a "aws/request.Request" representing the
384// client's request for the CreateDomainAssociation operation. The "output" return
385// value will be populated with the request's response once the request completes
386// successfully.
387//
388// Use "Send" method on the returned Request to send the API call to the service.
389// the "output" return value is not valid until after Send returns without error.
390//
391// See CreateDomainAssociation for more information on using the CreateDomainAssociation
392// API call, and error handling.
393//
394// This method is useful when you want to inject custom logic or configuration
395// into the SDK's request lifecycle. Such as custom headers, or retry logic.
396//
397//
398//    // Example sending a request using the CreateDomainAssociationRequest method.
399//    req, resp := client.CreateDomainAssociationRequest(params)
400//
401//    err := req.Send()
402//    if err == nil { // resp is now filled
403//        fmt.Println(resp)
404//    }
405//
406// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateDomainAssociation
407func (c *Amplify) CreateDomainAssociationRequest(input *CreateDomainAssociationInput) (req *request.Request, output *CreateDomainAssociationOutput) {
408	op := &request.Operation{
409		Name:       opCreateDomainAssociation,
410		HTTPMethod: "POST",
411		HTTPPath:   "/apps/{appId}/domains",
412	}
413
414	if input == nil {
415		input = &CreateDomainAssociationInput{}
416	}
417
418	output = &CreateDomainAssociationOutput{}
419	req = c.newRequest(op, input, output)
420	return
421}
422
423// CreateDomainAssociation API operation for AWS Amplify.
424//
425// Creates a new domain association for an Amplify app. This action associates
426// a custom domain with the Amplify app
427//
428// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
429// with awserr.Error's Code and Message methods to get detailed information about
430// the error.
431//
432// See the AWS API reference guide for AWS Amplify's
433// API operation CreateDomainAssociation for usage and error information.
434//
435// Returned Error Types:
436//   * BadRequestException
437//   A request contains unexpected data.
438//
439//   * UnauthorizedException
440//   An operation failed due to a lack of access.
441//
442//   * NotFoundException
443//   An entity was not found during an operation.
444//
445//   * InternalFailureException
446//   The service failed to perform an operation due to an internal issue.
447//
448//   * LimitExceededException
449//   A resource could not be created because service quotas were exceeded.
450//
451//   * DependentServiceFailureException
452//   An operation failed because a dependent service threw an exception.
453//
454// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateDomainAssociation
455func (c *Amplify) CreateDomainAssociation(input *CreateDomainAssociationInput) (*CreateDomainAssociationOutput, error) {
456	req, out := c.CreateDomainAssociationRequest(input)
457	return out, req.Send()
458}
459
460// CreateDomainAssociationWithContext is the same as CreateDomainAssociation with the addition of
461// the ability to pass a context and additional request options.
462//
463// See CreateDomainAssociation for details on how to use this API operation.
464//
465// The context must be non-nil and will be used for request cancellation. If
466// the context is nil a panic will occur. In the future the SDK may create
467// sub-contexts for http.Requests. See https://golang.org/pkg/context/
468// for more information on using Contexts.
469func (c *Amplify) CreateDomainAssociationWithContext(ctx aws.Context, input *CreateDomainAssociationInput, opts ...request.Option) (*CreateDomainAssociationOutput, error) {
470	req, out := c.CreateDomainAssociationRequest(input)
471	req.SetContext(ctx)
472	req.ApplyOptions(opts...)
473	return out, req.Send()
474}
475
476const opCreateWebhook = "CreateWebhook"
477
478// CreateWebhookRequest generates a "aws/request.Request" representing the
479// client's request for the CreateWebhook operation. The "output" return
480// value will be populated with the request's response once the request completes
481// successfully.
482//
483// Use "Send" method on the returned Request to send the API call to the service.
484// the "output" return value is not valid until after Send returns without error.
485//
486// See CreateWebhook for more information on using the CreateWebhook
487// API call, and error handling.
488//
489// This method is useful when you want to inject custom logic or configuration
490// into the SDK's request lifecycle. Such as custom headers, or retry logic.
491//
492//
493//    // Example sending a request using the CreateWebhookRequest method.
494//    req, resp := client.CreateWebhookRequest(params)
495//
496//    err := req.Send()
497//    if err == nil { // resp is now filled
498//        fmt.Println(resp)
499//    }
500//
501// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateWebhook
502func (c *Amplify) CreateWebhookRequest(input *CreateWebhookInput) (req *request.Request, output *CreateWebhookOutput) {
503	op := &request.Operation{
504		Name:       opCreateWebhook,
505		HTTPMethod: "POST",
506		HTTPPath:   "/apps/{appId}/webhooks",
507	}
508
509	if input == nil {
510		input = &CreateWebhookInput{}
511	}
512
513	output = &CreateWebhookOutput{}
514	req = c.newRequest(op, input, output)
515	return
516}
517
518// CreateWebhook API operation for AWS Amplify.
519//
520// Creates a new webhook on an Amplify app.
521//
522// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
523// with awserr.Error's Code and Message methods to get detailed information about
524// the error.
525//
526// See the AWS API reference guide for AWS Amplify's
527// API operation CreateWebhook for usage and error information.
528//
529// Returned Error Types:
530//   * BadRequestException
531//   A request contains unexpected data.
532//
533//   * UnauthorizedException
534//   An operation failed due to a lack of access.
535//
536//   * NotFoundException
537//   An entity was not found during an operation.
538//
539//   * InternalFailureException
540//   The service failed to perform an operation due to an internal issue.
541//
542//   * LimitExceededException
543//   A resource could not be created because service quotas were exceeded.
544//
545//   * DependentServiceFailureException
546//   An operation failed because a dependent service threw an exception.
547//
548// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateWebhook
549func (c *Amplify) CreateWebhook(input *CreateWebhookInput) (*CreateWebhookOutput, error) {
550	req, out := c.CreateWebhookRequest(input)
551	return out, req.Send()
552}
553
554// CreateWebhookWithContext is the same as CreateWebhook with the addition of
555// the ability to pass a context and additional request options.
556//
557// See CreateWebhook for details on how to use this API operation.
558//
559// The context must be non-nil and will be used for request cancellation. If
560// the context is nil a panic will occur. In the future the SDK may create
561// sub-contexts for http.Requests. See https://golang.org/pkg/context/
562// for more information on using Contexts.
563func (c *Amplify) CreateWebhookWithContext(ctx aws.Context, input *CreateWebhookInput, opts ...request.Option) (*CreateWebhookOutput, error) {
564	req, out := c.CreateWebhookRequest(input)
565	req.SetContext(ctx)
566	req.ApplyOptions(opts...)
567	return out, req.Send()
568}
569
570const opDeleteApp = "DeleteApp"
571
572// DeleteAppRequest generates a "aws/request.Request" representing the
573// client's request for the DeleteApp operation. The "output" return
574// value will be populated with the request's response once the request completes
575// successfully.
576//
577// Use "Send" method on the returned Request to send the API call to the service.
578// the "output" return value is not valid until after Send returns without error.
579//
580// See DeleteApp for more information on using the DeleteApp
581// API call, and error handling.
582//
583// This method is useful when you want to inject custom logic or configuration
584// into the SDK's request lifecycle. Such as custom headers, or retry logic.
585//
586//
587//    // Example sending a request using the DeleteAppRequest method.
588//    req, resp := client.DeleteAppRequest(params)
589//
590//    err := req.Send()
591//    if err == nil { // resp is now filled
592//        fmt.Println(resp)
593//    }
594//
595// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteApp
596func (c *Amplify) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) {
597	op := &request.Operation{
598		Name:       opDeleteApp,
599		HTTPMethod: "DELETE",
600		HTTPPath:   "/apps/{appId}",
601	}
602
603	if input == nil {
604		input = &DeleteAppInput{}
605	}
606
607	output = &DeleteAppOutput{}
608	req = c.newRequest(op, input, output)
609	return
610}
611
612// DeleteApp API operation for AWS Amplify.
613//
614// Deletes an existing Amplify app specified by an app ID.
615//
616// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
617// with awserr.Error's Code and Message methods to get detailed information about
618// the error.
619//
620// See the AWS API reference guide for AWS Amplify's
621// API operation DeleteApp for usage and error information.
622//
623// Returned Error Types:
624//   * BadRequestException
625//   A request contains unexpected data.
626//
627//   * NotFoundException
628//   An entity was not found during an operation.
629//
630//   * UnauthorizedException
631//   An operation failed due to a lack of access.
632//
633//   * InternalFailureException
634//   The service failed to perform an operation due to an internal issue.
635//
636//   * DependentServiceFailureException
637//   An operation failed because a dependent service threw an exception.
638//
639// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteApp
640func (c *Amplify) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) {
641	req, out := c.DeleteAppRequest(input)
642	return out, req.Send()
643}
644
645// DeleteAppWithContext is the same as DeleteApp with the addition of
646// the ability to pass a context and additional request options.
647//
648// See DeleteApp for details on how to use this API operation.
649//
650// The context must be non-nil and will be used for request cancellation. If
651// the context is nil a panic will occur. In the future the SDK may create
652// sub-contexts for http.Requests. See https://golang.org/pkg/context/
653// for more information on using Contexts.
654func (c *Amplify) DeleteAppWithContext(ctx aws.Context, input *DeleteAppInput, opts ...request.Option) (*DeleteAppOutput, error) {
655	req, out := c.DeleteAppRequest(input)
656	req.SetContext(ctx)
657	req.ApplyOptions(opts...)
658	return out, req.Send()
659}
660
661const opDeleteBackendEnvironment = "DeleteBackendEnvironment"
662
663// DeleteBackendEnvironmentRequest generates a "aws/request.Request" representing the
664// client's request for the DeleteBackendEnvironment operation. The "output" return
665// value will be populated with the request's response once the request completes
666// successfully.
667//
668// Use "Send" method on the returned Request to send the API call to the service.
669// the "output" return value is not valid until after Send returns without error.
670//
671// See DeleteBackendEnvironment for more information on using the DeleteBackendEnvironment
672// API call, and error handling.
673//
674// This method is useful when you want to inject custom logic or configuration
675// into the SDK's request lifecycle. Such as custom headers, or retry logic.
676//
677//
678//    // Example sending a request using the DeleteBackendEnvironmentRequest method.
679//    req, resp := client.DeleteBackendEnvironmentRequest(params)
680//
681//    err := req.Send()
682//    if err == nil { // resp is now filled
683//        fmt.Println(resp)
684//    }
685//
686// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBackendEnvironment
687func (c *Amplify) DeleteBackendEnvironmentRequest(input *DeleteBackendEnvironmentInput) (req *request.Request, output *DeleteBackendEnvironmentOutput) {
688	op := &request.Operation{
689		Name:       opDeleteBackendEnvironment,
690		HTTPMethod: "DELETE",
691		HTTPPath:   "/apps/{appId}/backendenvironments/{environmentName}",
692	}
693
694	if input == nil {
695		input = &DeleteBackendEnvironmentInput{}
696	}
697
698	output = &DeleteBackendEnvironmentOutput{}
699	req = c.newRequest(op, input, output)
700	return
701}
702
703// DeleteBackendEnvironment API operation for AWS Amplify.
704//
705// Deletes a backend environment for an Amplify app.
706//
707// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
708// with awserr.Error's Code and Message methods to get detailed information about
709// the error.
710//
711// See the AWS API reference guide for AWS Amplify's
712// API operation DeleteBackendEnvironment for usage and error information.
713//
714// Returned Error Types:
715//   * BadRequestException
716//   A request contains unexpected data.
717//
718//   * UnauthorizedException
719//   An operation failed due to a lack of access.
720//
721//   * NotFoundException
722//   An entity was not found during an operation.
723//
724//   * InternalFailureException
725//   The service failed to perform an operation due to an internal issue.
726//
727//   * DependentServiceFailureException
728//   An operation failed because a dependent service threw an exception.
729//
730// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBackendEnvironment
731func (c *Amplify) DeleteBackendEnvironment(input *DeleteBackendEnvironmentInput) (*DeleteBackendEnvironmentOutput, error) {
732	req, out := c.DeleteBackendEnvironmentRequest(input)
733	return out, req.Send()
734}
735
736// DeleteBackendEnvironmentWithContext is the same as DeleteBackendEnvironment with the addition of
737// the ability to pass a context and additional request options.
738//
739// See DeleteBackendEnvironment for details on how to use this API operation.
740//
741// The context must be non-nil and will be used for request cancellation. If
742// the context is nil a panic will occur. In the future the SDK may create
743// sub-contexts for http.Requests. See https://golang.org/pkg/context/
744// for more information on using Contexts.
745func (c *Amplify) DeleteBackendEnvironmentWithContext(ctx aws.Context, input *DeleteBackendEnvironmentInput, opts ...request.Option) (*DeleteBackendEnvironmentOutput, error) {
746	req, out := c.DeleteBackendEnvironmentRequest(input)
747	req.SetContext(ctx)
748	req.ApplyOptions(opts...)
749	return out, req.Send()
750}
751
752const opDeleteBranch = "DeleteBranch"
753
754// DeleteBranchRequest generates a "aws/request.Request" representing the
755// client's request for the DeleteBranch operation. The "output" return
756// value will be populated with the request's response once the request completes
757// successfully.
758//
759// Use "Send" method on the returned Request to send the API call to the service.
760// the "output" return value is not valid until after Send returns without error.
761//
762// See DeleteBranch for more information on using the DeleteBranch
763// API call, and error handling.
764//
765// This method is useful when you want to inject custom logic or configuration
766// into the SDK's request lifecycle. Such as custom headers, or retry logic.
767//
768//
769//    // Example sending a request using the DeleteBranchRequest method.
770//    req, resp := client.DeleteBranchRequest(params)
771//
772//    err := req.Send()
773//    if err == nil { // resp is now filled
774//        fmt.Println(resp)
775//    }
776//
777// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBranch
778func (c *Amplify) DeleteBranchRequest(input *DeleteBranchInput) (req *request.Request, output *DeleteBranchOutput) {
779	op := &request.Operation{
780		Name:       opDeleteBranch,
781		HTTPMethod: "DELETE",
782		HTTPPath:   "/apps/{appId}/branches/{branchName}",
783	}
784
785	if input == nil {
786		input = &DeleteBranchInput{}
787	}
788
789	output = &DeleteBranchOutput{}
790	req = c.newRequest(op, input, output)
791	return
792}
793
794// DeleteBranch API operation for AWS Amplify.
795//
796// Deletes a branch for an Amplify app.
797//
798// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
799// with awserr.Error's Code and Message methods to get detailed information about
800// the error.
801//
802// See the AWS API reference guide for AWS Amplify's
803// API operation DeleteBranch for usage and error information.
804//
805// Returned Error Types:
806//   * BadRequestException
807//   A request contains unexpected data.
808//
809//   * UnauthorizedException
810//   An operation failed due to a lack of access.
811//
812//   * NotFoundException
813//   An entity was not found during an operation.
814//
815//   * InternalFailureException
816//   The service failed to perform an operation due to an internal issue.
817//
818//   * DependentServiceFailureException
819//   An operation failed because a dependent service threw an exception.
820//
821// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBranch
822func (c *Amplify) DeleteBranch(input *DeleteBranchInput) (*DeleteBranchOutput, error) {
823	req, out := c.DeleteBranchRequest(input)
824	return out, req.Send()
825}
826
827// DeleteBranchWithContext is the same as DeleteBranch with the addition of
828// the ability to pass a context and additional request options.
829//
830// See DeleteBranch for details on how to use this API operation.
831//
832// The context must be non-nil and will be used for request cancellation. If
833// the context is nil a panic will occur. In the future the SDK may create
834// sub-contexts for http.Requests. See https://golang.org/pkg/context/
835// for more information on using Contexts.
836func (c *Amplify) DeleteBranchWithContext(ctx aws.Context, input *DeleteBranchInput, opts ...request.Option) (*DeleteBranchOutput, error) {
837	req, out := c.DeleteBranchRequest(input)
838	req.SetContext(ctx)
839	req.ApplyOptions(opts...)
840	return out, req.Send()
841}
842
843const opDeleteDomainAssociation = "DeleteDomainAssociation"
844
845// DeleteDomainAssociationRequest generates a "aws/request.Request" representing the
846// client's request for the DeleteDomainAssociation operation. The "output" return
847// value will be populated with the request's response once the request completes
848// successfully.
849//
850// Use "Send" method on the returned Request to send the API call to the service.
851// the "output" return value is not valid until after Send returns without error.
852//
853// See DeleteDomainAssociation for more information on using the DeleteDomainAssociation
854// API call, and error handling.
855//
856// This method is useful when you want to inject custom logic or configuration
857// into the SDK's request lifecycle. Such as custom headers, or retry logic.
858//
859//
860//    // Example sending a request using the DeleteDomainAssociationRequest method.
861//    req, resp := client.DeleteDomainAssociationRequest(params)
862//
863//    err := req.Send()
864//    if err == nil { // resp is now filled
865//        fmt.Println(resp)
866//    }
867//
868// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteDomainAssociation
869func (c *Amplify) DeleteDomainAssociationRequest(input *DeleteDomainAssociationInput) (req *request.Request, output *DeleteDomainAssociationOutput) {
870	op := &request.Operation{
871		Name:       opDeleteDomainAssociation,
872		HTTPMethod: "DELETE",
873		HTTPPath:   "/apps/{appId}/domains/{domainName}",
874	}
875
876	if input == nil {
877		input = &DeleteDomainAssociationInput{}
878	}
879
880	output = &DeleteDomainAssociationOutput{}
881	req = c.newRequest(op, input, output)
882	return
883}
884
885// DeleteDomainAssociation API operation for AWS Amplify.
886//
887// Deletes a domain association for an Amplify app.
888//
889// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
890// with awserr.Error's Code and Message methods to get detailed information about
891// the error.
892//
893// See the AWS API reference guide for AWS Amplify's
894// API operation DeleteDomainAssociation for usage and error information.
895//
896// Returned Error Types:
897//   * BadRequestException
898//   A request contains unexpected data.
899//
900//   * UnauthorizedException
901//   An operation failed due to a lack of access.
902//
903//   * NotFoundException
904//   An entity was not found during an operation.
905//
906//   * InternalFailureException
907//   The service failed to perform an operation due to an internal issue.
908//
909//   * DependentServiceFailureException
910//   An operation failed because a dependent service threw an exception.
911//
912// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteDomainAssociation
913func (c *Amplify) DeleteDomainAssociation(input *DeleteDomainAssociationInput) (*DeleteDomainAssociationOutput, error) {
914	req, out := c.DeleteDomainAssociationRequest(input)
915	return out, req.Send()
916}
917
918// DeleteDomainAssociationWithContext is the same as DeleteDomainAssociation with the addition of
919// the ability to pass a context and additional request options.
920//
921// See DeleteDomainAssociation for details on how to use this API operation.
922//
923// The context must be non-nil and will be used for request cancellation. If
924// the context is nil a panic will occur. In the future the SDK may create
925// sub-contexts for http.Requests. See https://golang.org/pkg/context/
926// for more information on using Contexts.
927func (c *Amplify) DeleteDomainAssociationWithContext(ctx aws.Context, input *DeleteDomainAssociationInput, opts ...request.Option) (*DeleteDomainAssociationOutput, error) {
928	req, out := c.DeleteDomainAssociationRequest(input)
929	req.SetContext(ctx)
930	req.ApplyOptions(opts...)
931	return out, req.Send()
932}
933
934const opDeleteJob = "DeleteJob"
935
936// DeleteJobRequest generates a "aws/request.Request" representing the
937// client's request for the DeleteJob operation. The "output" return
938// value will be populated with the request's response once the request completes
939// successfully.
940//
941// Use "Send" method on the returned Request to send the API call to the service.
942// the "output" return value is not valid until after Send returns without error.
943//
944// See DeleteJob for more information on using the DeleteJob
945// API call, and error handling.
946//
947// This method is useful when you want to inject custom logic or configuration
948// into the SDK's request lifecycle. Such as custom headers, or retry logic.
949//
950//
951//    // Example sending a request using the DeleteJobRequest method.
952//    req, resp := client.DeleteJobRequest(params)
953//
954//    err := req.Send()
955//    if err == nil { // resp is now filled
956//        fmt.Println(resp)
957//    }
958//
959// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteJob
960func (c *Amplify) DeleteJobRequest(input *DeleteJobInput) (req *request.Request, output *DeleteJobOutput) {
961	op := &request.Operation{
962		Name:       opDeleteJob,
963		HTTPMethod: "DELETE",
964		HTTPPath:   "/apps/{appId}/branches/{branchName}/jobs/{jobId}",
965	}
966
967	if input == nil {
968		input = &DeleteJobInput{}
969	}
970
971	output = &DeleteJobOutput{}
972	req = c.newRequest(op, input, output)
973	return
974}
975
976// DeleteJob API operation for AWS Amplify.
977//
978// Deletes a job for a branch of an Amplify app.
979//
980// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
981// with awserr.Error's Code and Message methods to get detailed information about
982// the error.
983//
984// See the AWS API reference guide for AWS Amplify's
985// API operation DeleteJob for usage and error information.
986//
987// Returned Error Types:
988//   * BadRequestException
989//   A request contains unexpected data.
990//
991//   * UnauthorizedException
992//   An operation failed due to a lack of access.
993//
994//   * InternalFailureException
995//   The service failed to perform an operation due to an internal issue.
996//
997//   * NotFoundException
998//   An entity was not found during an operation.
999//
1000//   * LimitExceededException
1001//   A resource could not be created because service quotas were exceeded.
1002//
1003// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteJob
1004func (c *Amplify) DeleteJob(input *DeleteJobInput) (*DeleteJobOutput, error) {
1005	req, out := c.DeleteJobRequest(input)
1006	return out, req.Send()
1007}
1008
1009// DeleteJobWithContext is the same as DeleteJob with the addition of
1010// the ability to pass a context and additional request options.
1011//
1012// See DeleteJob for details on how to use this API operation.
1013//
1014// The context must be non-nil and will be used for request cancellation. If
1015// the context is nil a panic will occur. In the future the SDK may create
1016// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1017// for more information on using Contexts.
1018func (c *Amplify) DeleteJobWithContext(ctx aws.Context, input *DeleteJobInput, opts ...request.Option) (*DeleteJobOutput, error) {
1019	req, out := c.DeleteJobRequest(input)
1020	req.SetContext(ctx)
1021	req.ApplyOptions(opts...)
1022	return out, req.Send()
1023}
1024
1025const opDeleteWebhook = "DeleteWebhook"
1026
1027// DeleteWebhookRequest generates a "aws/request.Request" representing the
1028// client's request for the DeleteWebhook operation. The "output" return
1029// value will be populated with the request's response once the request completes
1030// successfully.
1031//
1032// Use "Send" method on the returned Request to send the API call to the service.
1033// the "output" return value is not valid until after Send returns without error.
1034//
1035// See DeleteWebhook for more information on using the DeleteWebhook
1036// API call, and error handling.
1037//
1038// This method is useful when you want to inject custom logic or configuration
1039// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1040//
1041//
1042//    // Example sending a request using the DeleteWebhookRequest method.
1043//    req, resp := client.DeleteWebhookRequest(params)
1044//
1045//    err := req.Send()
1046//    if err == nil { // resp is now filled
1047//        fmt.Println(resp)
1048//    }
1049//
1050// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteWebhook
1051func (c *Amplify) DeleteWebhookRequest(input *DeleteWebhookInput) (req *request.Request, output *DeleteWebhookOutput) {
1052	op := &request.Operation{
1053		Name:       opDeleteWebhook,
1054		HTTPMethod: "DELETE",
1055		HTTPPath:   "/webhooks/{webhookId}",
1056	}
1057
1058	if input == nil {
1059		input = &DeleteWebhookInput{}
1060	}
1061
1062	output = &DeleteWebhookOutput{}
1063	req = c.newRequest(op, input, output)
1064	return
1065}
1066
1067// DeleteWebhook API operation for AWS Amplify.
1068//
1069// Deletes a webhook.
1070//
1071// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1072// with awserr.Error's Code and Message methods to get detailed information about
1073// the error.
1074//
1075// See the AWS API reference guide for AWS Amplify's
1076// API operation DeleteWebhook for usage and error information.
1077//
1078// Returned Error Types:
1079//   * BadRequestException
1080//   A request contains unexpected data.
1081//
1082//   * UnauthorizedException
1083//   An operation failed due to a lack of access.
1084//
1085//   * InternalFailureException
1086//   The service failed to perform an operation due to an internal issue.
1087//
1088//   * NotFoundException
1089//   An entity was not found during an operation.
1090//
1091//   * LimitExceededException
1092//   A resource could not be created because service quotas were exceeded.
1093//
1094// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteWebhook
1095func (c *Amplify) DeleteWebhook(input *DeleteWebhookInput) (*DeleteWebhookOutput, error) {
1096	req, out := c.DeleteWebhookRequest(input)
1097	return out, req.Send()
1098}
1099
1100// DeleteWebhookWithContext is the same as DeleteWebhook with the addition of
1101// the ability to pass a context and additional request options.
1102//
1103// See DeleteWebhook for details on how to use this API operation.
1104//
1105// The context must be non-nil and will be used for request cancellation. If
1106// the context is nil a panic will occur. In the future the SDK may create
1107// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1108// for more information on using Contexts.
1109func (c *Amplify) DeleteWebhookWithContext(ctx aws.Context, input *DeleteWebhookInput, opts ...request.Option) (*DeleteWebhookOutput, error) {
1110	req, out := c.DeleteWebhookRequest(input)
1111	req.SetContext(ctx)
1112	req.ApplyOptions(opts...)
1113	return out, req.Send()
1114}
1115
1116const opGenerateAccessLogs = "GenerateAccessLogs"
1117
1118// GenerateAccessLogsRequest generates a "aws/request.Request" representing the
1119// client's request for the GenerateAccessLogs operation. The "output" return
1120// value will be populated with the request's response once the request completes
1121// successfully.
1122//
1123// Use "Send" method on the returned Request to send the API call to the service.
1124// the "output" return value is not valid until after Send returns without error.
1125//
1126// See GenerateAccessLogs for more information on using the GenerateAccessLogs
1127// API call, and error handling.
1128//
1129// This method is useful when you want to inject custom logic or configuration
1130// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1131//
1132//
1133//    // Example sending a request using the GenerateAccessLogsRequest method.
1134//    req, resp := client.GenerateAccessLogsRequest(params)
1135//
1136//    err := req.Send()
1137//    if err == nil { // resp is now filled
1138//        fmt.Println(resp)
1139//    }
1140//
1141// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GenerateAccessLogs
1142func (c *Amplify) GenerateAccessLogsRequest(input *GenerateAccessLogsInput) (req *request.Request, output *GenerateAccessLogsOutput) {
1143	op := &request.Operation{
1144		Name:       opGenerateAccessLogs,
1145		HTTPMethod: "POST",
1146		HTTPPath:   "/apps/{appId}/accesslogs",
1147	}
1148
1149	if input == nil {
1150		input = &GenerateAccessLogsInput{}
1151	}
1152
1153	output = &GenerateAccessLogsOutput{}
1154	req = c.newRequest(op, input, output)
1155	return
1156}
1157
1158// GenerateAccessLogs API operation for AWS Amplify.
1159//
1160// Returns the website access logs for a specific time range using a presigned
1161// URL.
1162//
1163// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1164// with awserr.Error's Code and Message methods to get detailed information about
1165// the error.
1166//
1167// See the AWS API reference guide for AWS Amplify's
1168// API operation GenerateAccessLogs for usage and error information.
1169//
1170// Returned Error Types:
1171//   * NotFoundException
1172//   An entity was not found during an operation.
1173//
1174//   * BadRequestException
1175//   A request contains unexpected data.
1176//
1177//   * UnauthorizedException
1178//   An operation failed due to a lack of access.
1179//
1180//   * InternalFailureException
1181//   The service failed to perform an operation due to an internal issue.
1182//
1183// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GenerateAccessLogs
1184func (c *Amplify) GenerateAccessLogs(input *GenerateAccessLogsInput) (*GenerateAccessLogsOutput, error) {
1185	req, out := c.GenerateAccessLogsRequest(input)
1186	return out, req.Send()
1187}
1188
1189// GenerateAccessLogsWithContext is the same as GenerateAccessLogs with the addition of
1190// the ability to pass a context and additional request options.
1191//
1192// See GenerateAccessLogs for details on how to use this API operation.
1193//
1194// The context must be non-nil and will be used for request cancellation. If
1195// the context is nil a panic will occur. In the future the SDK may create
1196// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1197// for more information on using Contexts.
1198func (c *Amplify) GenerateAccessLogsWithContext(ctx aws.Context, input *GenerateAccessLogsInput, opts ...request.Option) (*GenerateAccessLogsOutput, error) {
1199	req, out := c.GenerateAccessLogsRequest(input)
1200	req.SetContext(ctx)
1201	req.ApplyOptions(opts...)
1202	return out, req.Send()
1203}
1204
1205const opGetApp = "GetApp"
1206
1207// GetAppRequest generates a "aws/request.Request" representing the
1208// client's request for the GetApp operation. The "output" return
1209// value will be populated with the request's response once the request completes
1210// successfully.
1211//
1212// Use "Send" method on the returned Request to send the API call to the service.
1213// the "output" return value is not valid until after Send returns without error.
1214//
1215// See GetApp for more information on using the GetApp
1216// API call, and error handling.
1217//
1218// This method is useful when you want to inject custom logic or configuration
1219// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1220//
1221//
1222//    // Example sending a request using the GetAppRequest method.
1223//    req, resp := client.GetAppRequest(params)
1224//
1225//    err := req.Send()
1226//    if err == nil { // resp is now filled
1227//        fmt.Println(resp)
1228//    }
1229//
1230// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetApp
1231func (c *Amplify) GetAppRequest(input *GetAppInput) (req *request.Request, output *GetAppOutput) {
1232	op := &request.Operation{
1233		Name:       opGetApp,
1234		HTTPMethod: "GET",
1235		HTTPPath:   "/apps/{appId}",
1236	}
1237
1238	if input == nil {
1239		input = &GetAppInput{}
1240	}
1241
1242	output = &GetAppOutput{}
1243	req = c.newRequest(op, input, output)
1244	return
1245}
1246
1247// GetApp API operation for AWS Amplify.
1248//
1249// Returns an existing Amplify app by appID.
1250//
1251// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1252// with awserr.Error's Code and Message methods to get detailed information about
1253// the error.
1254//
1255// See the AWS API reference guide for AWS Amplify's
1256// API operation GetApp for usage and error information.
1257//
1258// Returned Error Types:
1259//   * BadRequestException
1260//   A request contains unexpected data.
1261//
1262//   * NotFoundException
1263//   An entity was not found during an operation.
1264//
1265//   * UnauthorizedException
1266//   An operation failed due to a lack of access.
1267//
1268//   * InternalFailureException
1269//   The service failed to perform an operation due to an internal issue.
1270//
1271// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetApp
1272func (c *Amplify) GetApp(input *GetAppInput) (*GetAppOutput, error) {
1273	req, out := c.GetAppRequest(input)
1274	return out, req.Send()
1275}
1276
1277// GetAppWithContext is the same as GetApp with the addition of
1278// the ability to pass a context and additional request options.
1279//
1280// See GetApp for details on how to use this API operation.
1281//
1282// The context must be non-nil and will be used for request cancellation. If
1283// the context is nil a panic will occur. In the future the SDK may create
1284// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1285// for more information on using Contexts.
1286func (c *Amplify) GetAppWithContext(ctx aws.Context, input *GetAppInput, opts ...request.Option) (*GetAppOutput, error) {
1287	req, out := c.GetAppRequest(input)
1288	req.SetContext(ctx)
1289	req.ApplyOptions(opts...)
1290	return out, req.Send()
1291}
1292
1293const opGetArtifactUrl = "GetArtifactUrl"
1294
1295// GetArtifactUrlRequest generates a "aws/request.Request" representing the
1296// client's request for the GetArtifactUrl operation. The "output" return
1297// value will be populated with the request's response once the request completes
1298// successfully.
1299//
1300// Use "Send" method on the returned Request to send the API call to the service.
1301// the "output" return value is not valid until after Send returns without error.
1302//
1303// See GetArtifactUrl for more information on using the GetArtifactUrl
1304// API call, and error handling.
1305//
1306// This method is useful when you want to inject custom logic or configuration
1307// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1308//
1309//
1310//    // Example sending a request using the GetArtifactUrlRequest method.
1311//    req, resp := client.GetArtifactUrlRequest(params)
1312//
1313//    err := req.Send()
1314//    if err == nil { // resp is now filled
1315//        fmt.Println(resp)
1316//    }
1317//
1318// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetArtifactUrl
1319func (c *Amplify) GetArtifactUrlRequest(input *GetArtifactUrlInput) (req *request.Request, output *GetArtifactUrlOutput) {
1320	op := &request.Operation{
1321		Name:       opGetArtifactUrl,
1322		HTTPMethod: "GET",
1323		HTTPPath:   "/artifacts/{artifactId}",
1324	}
1325
1326	if input == nil {
1327		input = &GetArtifactUrlInput{}
1328	}
1329
1330	output = &GetArtifactUrlOutput{}
1331	req = c.newRequest(op, input, output)
1332	return
1333}
1334
1335// GetArtifactUrl API operation for AWS Amplify.
1336//
1337// Returns the artifact info that corresponds to an artifact id.
1338//
1339// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1340// with awserr.Error's Code and Message methods to get detailed information about
1341// the error.
1342//
1343// See the AWS API reference guide for AWS Amplify's
1344// API operation GetArtifactUrl for usage and error information.
1345//
1346// Returned Error Types:
1347//   * BadRequestException
1348//   A request contains unexpected data.
1349//
1350//   * UnauthorizedException
1351//   An operation failed due to a lack of access.
1352//
1353//   * InternalFailureException
1354//   The service failed to perform an operation due to an internal issue.
1355//
1356//   * NotFoundException
1357//   An entity was not found during an operation.
1358//
1359//   * LimitExceededException
1360//   A resource could not be created because service quotas were exceeded.
1361//
1362// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetArtifactUrl
1363func (c *Amplify) GetArtifactUrl(input *GetArtifactUrlInput) (*GetArtifactUrlOutput, error) {
1364	req, out := c.GetArtifactUrlRequest(input)
1365	return out, req.Send()
1366}
1367
1368// GetArtifactUrlWithContext is the same as GetArtifactUrl with the addition of
1369// the ability to pass a context and additional request options.
1370//
1371// See GetArtifactUrl for details on how to use this API operation.
1372//
1373// The context must be non-nil and will be used for request cancellation. If
1374// the context is nil a panic will occur. In the future the SDK may create
1375// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1376// for more information on using Contexts.
1377func (c *Amplify) GetArtifactUrlWithContext(ctx aws.Context, input *GetArtifactUrlInput, opts ...request.Option) (*GetArtifactUrlOutput, error) {
1378	req, out := c.GetArtifactUrlRequest(input)
1379	req.SetContext(ctx)
1380	req.ApplyOptions(opts...)
1381	return out, req.Send()
1382}
1383
1384const opGetBackendEnvironment = "GetBackendEnvironment"
1385
1386// GetBackendEnvironmentRequest generates a "aws/request.Request" representing the
1387// client's request for the GetBackendEnvironment operation. The "output" return
1388// value will be populated with the request's response once the request completes
1389// successfully.
1390//
1391// Use "Send" method on the returned Request to send the API call to the service.
1392// the "output" return value is not valid until after Send returns without error.
1393//
1394// See GetBackendEnvironment for more information on using the GetBackendEnvironment
1395// API call, and error handling.
1396//
1397// This method is useful when you want to inject custom logic or configuration
1398// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1399//
1400//
1401//    // Example sending a request using the GetBackendEnvironmentRequest method.
1402//    req, resp := client.GetBackendEnvironmentRequest(params)
1403//
1404//    err := req.Send()
1405//    if err == nil { // resp is now filled
1406//        fmt.Println(resp)
1407//    }
1408//
1409// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBackendEnvironment
1410func (c *Amplify) GetBackendEnvironmentRequest(input *GetBackendEnvironmentInput) (req *request.Request, output *GetBackendEnvironmentOutput) {
1411	op := &request.Operation{
1412		Name:       opGetBackendEnvironment,
1413		HTTPMethod: "GET",
1414		HTTPPath:   "/apps/{appId}/backendenvironments/{environmentName}",
1415	}
1416
1417	if input == nil {
1418		input = &GetBackendEnvironmentInput{}
1419	}
1420
1421	output = &GetBackendEnvironmentOutput{}
1422	req = c.newRequest(op, input, output)
1423	return
1424}
1425
1426// GetBackendEnvironment API operation for AWS Amplify.
1427//
1428// Returns a backend environment for an Amplify app.
1429//
1430// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1431// with awserr.Error's Code and Message methods to get detailed information about
1432// the error.
1433//
1434// See the AWS API reference guide for AWS Amplify's
1435// API operation GetBackendEnvironment for usage and error information.
1436//
1437// Returned Error Types:
1438//   * BadRequestException
1439//   A request contains unexpected data.
1440//
1441//   * UnauthorizedException
1442//   An operation failed due to a lack of access.
1443//
1444//   * NotFoundException
1445//   An entity was not found during an operation.
1446//
1447//   * InternalFailureException
1448//   The service failed to perform an operation due to an internal issue.
1449//
1450// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBackendEnvironment
1451func (c *Amplify) GetBackendEnvironment(input *GetBackendEnvironmentInput) (*GetBackendEnvironmentOutput, error) {
1452	req, out := c.GetBackendEnvironmentRequest(input)
1453	return out, req.Send()
1454}
1455
1456// GetBackendEnvironmentWithContext is the same as GetBackendEnvironment with the addition of
1457// the ability to pass a context and additional request options.
1458//
1459// See GetBackendEnvironment for details on how to use this API operation.
1460//
1461// The context must be non-nil and will be used for request cancellation. If
1462// the context is nil a panic will occur. In the future the SDK may create
1463// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1464// for more information on using Contexts.
1465func (c *Amplify) GetBackendEnvironmentWithContext(ctx aws.Context, input *GetBackendEnvironmentInput, opts ...request.Option) (*GetBackendEnvironmentOutput, error) {
1466	req, out := c.GetBackendEnvironmentRequest(input)
1467	req.SetContext(ctx)
1468	req.ApplyOptions(opts...)
1469	return out, req.Send()
1470}
1471
1472const opGetBranch = "GetBranch"
1473
1474// GetBranchRequest generates a "aws/request.Request" representing the
1475// client's request for the GetBranch operation. The "output" return
1476// value will be populated with the request's response once the request completes
1477// successfully.
1478//
1479// Use "Send" method on the returned Request to send the API call to the service.
1480// the "output" return value is not valid until after Send returns without error.
1481//
1482// See GetBranch for more information on using the GetBranch
1483// API call, and error handling.
1484//
1485// This method is useful when you want to inject custom logic or configuration
1486// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1487//
1488//
1489//    // Example sending a request using the GetBranchRequest method.
1490//    req, resp := client.GetBranchRequest(params)
1491//
1492//    err := req.Send()
1493//    if err == nil { // resp is now filled
1494//        fmt.Println(resp)
1495//    }
1496//
1497// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBranch
1498func (c *Amplify) GetBranchRequest(input *GetBranchInput) (req *request.Request, output *GetBranchOutput) {
1499	op := &request.Operation{
1500		Name:       opGetBranch,
1501		HTTPMethod: "GET",
1502		HTTPPath:   "/apps/{appId}/branches/{branchName}",
1503	}
1504
1505	if input == nil {
1506		input = &GetBranchInput{}
1507	}
1508
1509	output = &GetBranchOutput{}
1510	req = c.newRequest(op, input, output)
1511	return
1512}
1513
1514// GetBranch API operation for AWS Amplify.
1515//
1516// Returns a branch for an Amplify app.
1517//
1518// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1519// with awserr.Error's Code and Message methods to get detailed information about
1520// the error.
1521//
1522// See the AWS API reference guide for AWS Amplify's
1523// API operation GetBranch for usage and error information.
1524//
1525// Returned Error Types:
1526//   * BadRequestException
1527//   A request contains unexpected data.
1528//
1529//   * UnauthorizedException
1530//   An operation failed due to a lack of access.
1531//
1532//   * NotFoundException
1533//   An entity was not found during an operation.
1534//
1535//   * InternalFailureException
1536//   The service failed to perform an operation due to an internal issue.
1537//
1538// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBranch
1539func (c *Amplify) GetBranch(input *GetBranchInput) (*GetBranchOutput, error) {
1540	req, out := c.GetBranchRequest(input)
1541	return out, req.Send()
1542}
1543
1544// GetBranchWithContext is the same as GetBranch with the addition of
1545// the ability to pass a context and additional request options.
1546//
1547// See GetBranch for details on how to use this API operation.
1548//
1549// The context must be non-nil and will be used for request cancellation. If
1550// the context is nil a panic will occur. In the future the SDK may create
1551// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1552// for more information on using Contexts.
1553func (c *Amplify) GetBranchWithContext(ctx aws.Context, input *GetBranchInput, opts ...request.Option) (*GetBranchOutput, error) {
1554	req, out := c.GetBranchRequest(input)
1555	req.SetContext(ctx)
1556	req.ApplyOptions(opts...)
1557	return out, req.Send()
1558}
1559
1560const opGetDomainAssociation = "GetDomainAssociation"
1561
1562// GetDomainAssociationRequest generates a "aws/request.Request" representing the
1563// client's request for the GetDomainAssociation operation. The "output" return
1564// value will be populated with the request's response once the request completes
1565// successfully.
1566//
1567// Use "Send" method on the returned Request to send the API call to the service.
1568// the "output" return value is not valid until after Send returns without error.
1569//
1570// See GetDomainAssociation for more information on using the GetDomainAssociation
1571// API call, and error handling.
1572//
1573// This method is useful when you want to inject custom logic or configuration
1574// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1575//
1576//
1577//    // Example sending a request using the GetDomainAssociationRequest method.
1578//    req, resp := client.GetDomainAssociationRequest(params)
1579//
1580//    err := req.Send()
1581//    if err == nil { // resp is now filled
1582//        fmt.Println(resp)
1583//    }
1584//
1585// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetDomainAssociation
1586func (c *Amplify) GetDomainAssociationRequest(input *GetDomainAssociationInput) (req *request.Request, output *GetDomainAssociationOutput) {
1587	op := &request.Operation{
1588		Name:       opGetDomainAssociation,
1589		HTTPMethod: "GET",
1590		HTTPPath:   "/apps/{appId}/domains/{domainName}",
1591	}
1592
1593	if input == nil {
1594		input = &GetDomainAssociationInput{}
1595	}
1596
1597	output = &GetDomainAssociationOutput{}
1598	req = c.newRequest(op, input, output)
1599	return
1600}
1601
1602// GetDomainAssociation API operation for AWS Amplify.
1603//
1604// Returns the domain information for an Amplify app.
1605//
1606// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1607// with awserr.Error's Code and Message methods to get detailed information about
1608// the error.
1609//
1610// See the AWS API reference guide for AWS Amplify's
1611// API operation GetDomainAssociation for usage and error information.
1612//
1613// Returned Error Types:
1614//   * BadRequestException
1615//   A request contains unexpected data.
1616//
1617//   * UnauthorizedException
1618//   An operation failed due to a lack of access.
1619//
1620//   * NotFoundException
1621//   An entity was not found during an operation.
1622//
1623//   * InternalFailureException
1624//   The service failed to perform an operation due to an internal issue.
1625//
1626// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetDomainAssociation
1627func (c *Amplify) GetDomainAssociation(input *GetDomainAssociationInput) (*GetDomainAssociationOutput, error) {
1628	req, out := c.GetDomainAssociationRequest(input)
1629	return out, req.Send()
1630}
1631
1632// GetDomainAssociationWithContext is the same as GetDomainAssociation with the addition of
1633// the ability to pass a context and additional request options.
1634//
1635// See GetDomainAssociation for details on how to use this API operation.
1636//
1637// The context must be non-nil and will be used for request cancellation. If
1638// the context is nil a panic will occur. In the future the SDK may create
1639// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1640// for more information on using Contexts.
1641func (c *Amplify) GetDomainAssociationWithContext(ctx aws.Context, input *GetDomainAssociationInput, opts ...request.Option) (*GetDomainAssociationOutput, error) {
1642	req, out := c.GetDomainAssociationRequest(input)
1643	req.SetContext(ctx)
1644	req.ApplyOptions(opts...)
1645	return out, req.Send()
1646}
1647
1648const opGetJob = "GetJob"
1649
1650// GetJobRequest generates a "aws/request.Request" representing the
1651// client's request for the GetJob operation. The "output" return
1652// value will be populated with the request's response once the request completes
1653// successfully.
1654//
1655// Use "Send" method on the returned Request to send the API call to the service.
1656// the "output" return value is not valid until after Send returns without error.
1657//
1658// See GetJob for more information on using the GetJob
1659// API call, and error handling.
1660//
1661// This method is useful when you want to inject custom logic or configuration
1662// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1663//
1664//
1665//    // Example sending a request using the GetJobRequest method.
1666//    req, resp := client.GetJobRequest(params)
1667//
1668//    err := req.Send()
1669//    if err == nil { // resp is now filled
1670//        fmt.Println(resp)
1671//    }
1672//
1673// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetJob
1674func (c *Amplify) GetJobRequest(input *GetJobInput) (req *request.Request, output *GetJobOutput) {
1675	op := &request.Operation{
1676		Name:       opGetJob,
1677		HTTPMethod: "GET",
1678		HTTPPath:   "/apps/{appId}/branches/{branchName}/jobs/{jobId}",
1679	}
1680
1681	if input == nil {
1682		input = &GetJobInput{}
1683	}
1684
1685	output = &GetJobOutput{}
1686	req = c.newRequest(op, input, output)
1687	return
1688}
1689
1690// GetJob API operation for AWS Amplify.
1691//
1692// Returns a job for a branch of an Amplify app.
1693//
1694// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1695// with awserr.Error's Code and Message methods to get detailed information about
1696// the error.
1697//
1698// See the AWS API reference guide for AWS Amplify's
1699// API operation GetJob for usage and error information.
1700//
1701// Returned Error Types:
1702//   * BadRequestException
1703//   A request contains unexpected data.
1704//
1705//   * UnauthorizedException
1706//   An operation failed due to a lack of access.
1707//
1708//   * InternalFailureException
1709//   The service failed to perform an operation due to an internal issue.
1710//
1711//   * NotFoundException
1712//   An entity was not found during an operation.
1713//
1714//   * LimitExceededException
1715//   A resource could not be created because service quotas were exceeded.
1716//
1717// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetJob
1718func (c *Amplify) GetJob(input *GetJobInput) (*GetJobOutput, error) {
1719	req, out := c.GetJobRequest(input)
1720	return out, req.Send()
1721}
1722
1723// GetJobWithContext is the same as GetJob with the addition of
1724// the ability to pass a context and additional request options.
1725//
1726// See GetJob for details on how to use this API operation.
1727//
1728// The context must be non-nil and will be used for request cancellation. If
1729// the context is nil a panic will occur. In the future the SDK may create
1730// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1731// for more information on using Contexts.
1732func (c *Amplify) GetJobWithContext(ctx aws.Context, input *GetJobInput, opts ...request.Option) (*GetJobOutput, error) {
1733	req, out := c.GetJobRequest(input)
1734	req.SetContext(ctx)
1735	req.ApplyOptions(opts...)
1736	return out, req.Send()
1737}
1738
1739const opGetWebhook = "GetWebhook"
1740
1741// GetWebhookRequest generates a "aws/request.Request" representing the
1742// client's request for the GetWebhook operation. The "output" return
1743// value will be populated with the request's response once the request completes
1744// successfully.
1745//
1746// Use "Send" method on the returned Request to send the API call to the service.
1747// the "output" return value is not valid until after Send returns without error.
1748//
1749// See GetWebhook for more information on using the GetWebhook
1750// API call, and error handling.
1751//
1752// This method is useful when you want to inject custom logic or configuration
1753// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1754//
1755//
1756//    // Example sending a request using the GetWebhookRequest method.
1757//    req, resp := client.GetWebhookRequest(params)
1758//
1759//    err := req.Send()
1760//    if err == nil { // resp is now filled
1761//        fmt.Println(resp)
1762//    }
1763//
1764// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetWebhook
1765func (c *Amplify) GetWebhookRequest(input *GetWebhookInput) (req *request.Request, output *GetWebhookOutput) {
1766	op := &request.Operation{
1767		Name:       opGetWebhook,
1768		HTTPMethod: "GET",
1769		HTTPPath:   "/webhooks/{webhookId}",
1770	}
1771
1772	if input == nil {
1773		input = &GetWebhookInput{}
1774	}
1775
1776	output = &GetWebhookOutput{}
1777	req = c.newRequest(op, input, output)
1778	return
1779}
1780
1781// GetWebhook API operation for AWS Amplify.
1782//
1783// Returns the webhook information that corresponds to a specified webhook ID.
1784//
1785// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1786// with awserr.Error's Code and Message methods to get detailed information about
1787// the error.
1788//
1789// See the AWS API reference guide for AWS Amplify's
1790// API operation GetWebhook for usage and error information.
1791//
1792// Returned Error Types:
1793//   * BadRequestException
1794//   A request contains unexpected data.
1795//
1796//   * UnauthorizedException
1797//   An operation failed due to a lack of access.
1798//
1799//   * InternalFailureException
1800//   The service failed to perform an operation due to an internal issue.
1801//
1802//   * NotFoundException
1803//   An entity was not found during an operation.
1804//
1805//   * LimitExceededException
1806//   A resource could not be created because service quotas were exceeded.
1807//
1808// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetWebhook
1809func (c *Amplify) GetWebhook(input *GetWebhookInput) (*GetWebhookOutput, error) {
1810	req, out := c.GetWebhookRequest(input)
1811	return out, req.Send()
1812}
1813
1814// GetWebhookWithContext is the same as GetWebhook with the addition of
1815// the ability to pass a context and additional request options.
1816//
1817// See GetWebhook for details on how to use this API operation.
1818//
1819// The context must be non-nil and will be used for request cancellation. If
1820// the context is nil a panic will occur. In the future the SDK may create
1821// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1822// for more information on using Contexts.
1823func (c *Amplify) GetWebhookWithContext(ctx aws.Context, input *GetWebhookInput, opts ...request.Option) (*GetWebhookOutput, error) {
1824	req, out := c.GetWebhookRequest(input)
1825	req.SetContext(ctx)
1826	req.ApplyOptions(opts...)
1827	return out, req.Send()
1828}
1829
1830const opListApps = "ListApps"
1831
1832// ListAppsRequest generates a "aws/request.Request" representing the
1833// client's request for the ListApps operation. The "output" return
1834// value will be populated with the request's response once the request completes
1835// successfully.
1836//
1837// Use "Send" method on the returned Request to send the API call to the service.
1838// the "output" return value is not valid until after Send returns without error.
1839//
1840// See ListApps for more information on using the ListApps
1841// API call, and error handling.
1842//
1843// This method is useful when you want to inject custom logic or configuration
1844// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1845//
1846//
1847//    // Example sending a request using the ListAppsRequest method.
1848//    req, resp := client.ListAppsRequest(params)
1849//
1850//    err := req.Send()
1851//    if err == nil { // resp is now filled
1852//        fmt.Println(resp)
1853//    }
1854//
1855// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListApps
1856func (c *Amplify) ListAppsRequest(input *ListAppsInput) (req *request.Request, output *ListAppsOutput) {
1857	op := &request.Operation{
1858		Name:       opListApps,
1859		HTTPMethod: "GET",
1860		HTTPPath:   "/apps",
1861	}
1862
1863	if input == nil {
1864		input = &ListAppsInput{}
1865	}
1866
1867	output = &ListAppsOutput{}
1868	req = c.newRequest(op, input, output)
1869	return
1870}
1871
1872// ListApps API operation for AWS Amplify.
1873//
1874// Returns a list of the existing Amplify apps.
1875//
1876// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1877// with awserr.Error's Code and Message methods to get detailed information about
1878// the error.
1879//
1880// See the AWS API reference guide for AWS Amplify's
1881// API operation ListApps for usage and error information.
1882//
1883// Returned Error Types:
1884//   * BadRequestException
1885//   A request contains unexpected data.
1886//
1887//   * UnauthorizedException
1888//   An operation failed due to a lack of access.
1889//
1890//   * InternalFailureException
1891//   The service failed to perform an operation due to an internal issue.
1892//
1893// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListApps
1894func (c *Amplify) ListApps(input *ListAppsInput) (*ListAppsOutput, error) {
1895	req, out := c.ListAppsRequest(input)
1896	return out, req.Send()
1897}
1898
1899// ListAppsWithContext is the same as ListApps with the addition of
1900// the ability to pass a context and additional request options.
1901//
1902// See ListApps for details on how to use this API operation.
1903//
1904// The context must be non-nil and will be used for request cancellation. If
1905// the context is nil a panic will occur. In the future the SDK may create
1906// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1907// for more information on using Contexts.
1908func (c *Amplify) ListAppsWithContext(ctx aws.Context, input *ListAppsInput, opts ...request.Option) (*ListAppsOutput, error) {
1909	req, out := c.ListAppsRequest(input)
1910	req.SetContext(ctx)
1911	req.ApplyOptions(opts...)
1912	return out, req.Send()
1913}
1914
1915const opListArtifacts = "ListArtifacts"
1916
1917// ListArtifactsRequest generates a "aws/request.Request" representing the
1918// client's request for the ListArtifacts operation. The "output" return
1919// value will be populated with the request's response once the request completes
1920// successfully.
1921//
1922// Use "Send" method on the returned Request to send the API call to the service.
1923// the "output" return value is not valid until after Send returns without error.
1924//
1925// See ListArtifacts for more information on using the ListArtifacts
1926// API call, and error handling.
1927//
1928// This method is useful when you want to inject custom logic or configuration
1929// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1930//
1931//
1932//    // Example sending a request using the ListArtifactsRequest method.
1933//    req, resp := client.ListArtifactsRequest(params)
1934//
1935//    err := req.Send()
1936//    if err == nil { // resp is now filled
1937//        fmt.Println(resp)
1938//    }
1939//
1940// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListArtifacts
1941func (c *Amplify) ListArtifactsRequest(input *ListArtifactsInput) (req *request.Request, output *ListArtifactsOutput) {
1942	op := &request.Operation{
1943		Name:       opListArtifacts,
1944		HTTPMethod: "GET",
1945		HTTPPath:   "/apps/{appId}/branches/{branchName}/jobs/{jobId}/artifacts",
1946	}
1947
1948	if input == nil {
1949		input = &ListArtifactsInput{}
1950	}
1951
1952	output = &ListArtifactsOutput{}
1953	req = c.newRequest(op, input, output)
1954	return
1955}
1956
1957// ListArtifacts API operation for AWS Amplify.
1958//
1959// Returns a list of artifacts for a specified app, branch, and job.
1960//
1961// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1962// with awserr.Error's Code and Message methods to get detailed information about
1963// the error.
1964//
1965// See the AWS API reference guide for AWS Amplify's
1966// API operation ListArtifacts for usage and error information.
1967//
1968// Returned Error Types:
1969//   * BadRequestException
1970//   A request contains unexpected data.
1971//
1972//   * UnauthorizedException
1973//   An operation failed due to a lack of access.
1974//
1975//   * InternalFailureException
1976//   The service failed to perform an operation due to an internal issue.
1977//
1978//   * LimitExceededException
1979//   A resource could not be created because service quotas were exceeded.
1980//
1981// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListArtifacts
1982func (c *Amplify) ListArtifacts(input *ListArtifactsInput) (*ListArtifactsOutput, error) {
1983	req, out := c.ListArtifactsRequest(input)
1984	return out, req.Send()
1985}
1986
1987// ListArtifactsWithContext is the same as ListArtifacts with the addition of
1988// the ability to pass a context and additional request options.
1989//
1990// See ListArtifacts for details on how to use this API operation.
1991//
1992// The context must be non-nil and will be used for request cancellation. If
1993// the context is nil a panic will occur. In the future the SDK may create
1994// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1995// for more information on using Contexts.
1996func (c *Amplify) ListArtifactsWithContext(ctx aws.Context, input *ListArtifactsInput, opts ...request.Option) (*ListArtifactsOutput, error) {
1997	req, out := c.ListArtifactsRequest(input)
1998	req.SetContext(ctx)
1999	req.ApplyOptions(opts...)
2000	return out, req.Send()
2001}
2002
2003const opListBackendEnvironments = "ListBackendEnvironments"
2004
2005// ListBackendEnvironmentsRequest generates a "aws/request.Request" representing the
2006// client's request for the ListBackendEnvironments operation. The "output" return
2007// value will be populated with the request's response once the request completes
2008// successfully.
2009//
2010// Use "Send" method on the returned Request to send the API call to the service.
2011// the "output" return value is not valid until after Send returns without error.
2012//
2013// See ListBackendEnvironments for more information on using the ListBackendEnvironments
2014// API call, and error handling.
2015//
2016// This method is useful when you want to inject custom logic or configuration
2017// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2018//
2019//
2020//    // Example sending a request using the ListBackendEnvironmentsRequest method.
2021//    req, resp := client.ListBackendEnvironmentsRequest(params)
2022//
2023//    err := req.Send()
2024//    if err == nil { // resp is now filled
2025//        fmt.Println(resp)
2026//    }
2027//
2028// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBackendEnvironments
2029func (c *Amplify) ListBackendEnvironmentsRequest(input *ListBackendEnvironmentsInput) (req *request.Request, output *ListBackendEnvironmentsOutput) {
2030	op := &request.Operation{
2031		Name:       opListBackendEnvironments,
2032		HTTPMethod: "GET",
2033		HTTPPath:   "/apps/{appId}/backendenvironments",
2034	}
2035
2036	if input == nil {
2037		input = &ListBackendEnvironmentsInput{}
2038	}
2039
2040	output = &ListBackendEnvironmentsOutput{}
2041	req = c.newRequest(op, input, output)
2042	return
2043}
2044
2045// ListBackendEnvironments API operation for AWS Amplify.
2046//
2047// Lists the backend environments for an Amplify app.
2048//
2049// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2050// with awserr.Error's Code and Message methods to get detailed information about
2051// the error.
2052//
2053// See the AWS API reference guide for AWS Amplify's
2054// API operation ListBackendEnvironments for usage and error information.
2055//
2056// Returned Error Types:
2057//   * BadRequestException
2058//   A request contains unexpected data.
2059//
2060//   * UnauthorizedException
2061//   An operation failed due to a lack of access.
2062//
2063//   * InternalFailureException
2064//   The service failed to perform an operation due to an internal issue.
2065//
2066// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBackendEnvironments
2067func (c *Amplify) ListBackendEnvironments(input *ListBackendEnvironmentsInput) (*ListBackendEnvironmentsOutput, error) {
2068	req, out := c.ListBackendEnvironmentsRequest(input)
2069	return out, req.Send()
2070}
2071
2072// ListBackendEnvironmentsWithContext is the same as ListBackendEnvironments with the addition of
2073// the ability to pass a context and additional request options.
2074//
2075// See ListBackendEnvironments for details on how to use this API operation.
2076//
2077// The context must be non-nil and will be used for request cancellation. If
2078// the context is nil a panic will occur. In the future the SDK may create
2079// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2080// for more information on using Contexts.
2081func (c *Amplify) ListBackendEnvironmentsWithContext(ctx aws.Context, input *ListBackendEnvironmentsInput, opts ...request.Option) (*ListBackendEnvironmentsOutput, error) {
2082	req, out := c.ListBackendEnvironmentsRequest(input)
2083	req.SetContext(ctx)
2084	req.ApplyOptions(opts...)
2085	return out, req.Send()
2086}
2087
2088const opListBranches = "ListBranches"
2089
2090// ListBranchesRequest generates a "aws/request.Request" representing the
2091// client's request for the ListBranches operation. The "output" return
2092// value will be populated with the request's response once the request completes
2093// successfully.
2094//
2095// Use "Send" method on the returned Request to send the API call to the service.
2096// the "output" return value is not valid until after Send returns without error.
2097//
2098// See ListBranches for more information on using the ListBranches
2099// API call, and error handling.
2100//
2101// This method is useful when you want to inject custom logic or configuration
2102// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2103//
2104//
2105//    // Example sending a request using the ListBranchesRequest method.
2106//    req, resp := client.ListBranchesRequest(params)
2107//
2108//    err := req.Send()
2109//    if err == nil { // resp is now filled
2110//        fmt.Println(resp)
2111//    }
2112//
2113// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBranches
2114func (c *Amplify) ListBranchesRequest(input *ListBranchesInput) (req *request.Request, output *ListBranchesOutput) {
2115	op := &request.Operation{
2116		Name:       opListBranches,
2117		HTTPMethod: "GET",
2118		HTTPPath:   "/apps/{appId}/branches",
2119	}
2120
2121	if input == nil {
2122		input = &ListBranchesInput{}
2123	}
2124
2125	output = &ListBranchesOutput{}
2126	req = c.newRequest(op, input, output)
2127	return
2128}
2129
2130// ListBranches API operation for AWS Amplify.
2131//
2132// Lists the branches of an Amplify app.
2133//
2134// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2135// with awserr.Error's Code and Message methods to get detailed information about
2136// the error.
2137//
2138// See the AWS API reference guide for AWS Amplify's
2139// API operation ListBranches for usage and error information.
2140//
2141// Returned Error Types:
2142//   * BadRequestException
2143//   A request contains unexpected data.
2144//
2145//   * UnauthorizedException
2146//   An operation failed due to a lack of access.
2147//
2148//   * InternalFailureException
2149//   The service failed to perform an operation due to an internal issue.
2150//
2151// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBranches
2152func (c *Amplify) ListBranches(input *ListBranchesInput) (*ListBranchesOutput, error) {
2153	req, out := c.ListBranchesRequest(input)
2154	return out, req.Send()
2155}
2156
2157// ListBranchesWithContext is the same as ListBranches with the addition of
2158// the ability to pass a context and additional request options.
2159//
2160// See ListBranches for details on how to use this API operation.
2161//
2162// The context must be non-nil and will be used for request cancellation. If
2163// the context is nil a panic will occur. In the future the SDK may create
2164// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2165// for more information on using Contexts.
2166func (c *Amplify) ListBranchesWithContext(ctx aws.Context, input *ListBranchesInput, opts ...request.Option) (*ListBranchesOutput, error) {
2167	req, out := c.ListBranchesRequest(input)
2168	req.SetContext(ctx)
2169	req.ApplyOptions(opts...)
2170	return out, req.Send()
2171}
2172
2173const opListDomainAssociations = "ListDomainAssociations"
2174
2175// ListDomainAssociationsRequest generates a "aws/request.Request" representing the
2176// client's request for the ListDomainAssociations operation. The "output" return
2177// value will be populated with the request's response once the request completes
2178// successfully.
2179//
2180// Use "Send" method on the returned Request to send the API call to the service.
2181// the "output" return value is not valid until after Send returns without error.
2182//
2183// See ListDomainAssociations for more information on using the ListDomainAssociations
2184// API call, and error handling.
2185//
2186// This method is useful when you want to inject custom logic or configuration
2187// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2188//
2189//
2190//    // Example sending a request using the ListDomainAssociationsRequest method.
2191//    req, resp := client.ListDomainAssociationsRequest(params)
2192//
2193//    err := req.Send()
2194//    if err == nil { // resp is now filled
2195//        fmt.Println(resp)
2196//    }
2197//
2198// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListDomainAssociations
2199func (c *Amplify) ListDomainAssociationsRequest(input *ListDomainAssociationsInput) (req *request.Request, output *ListDomainAssociationsOutput) {
2200	op := &request.Operation{
2201		Name:       opListDomainAssociations,
2202		HTTPMethod: "GET",
2203		HTTPPath:   "/apps/{appId}/domains",
2204	}
2205
2206	if input == nil {
2207		input = &ListDomainAssociationsInput{}
2208	}
2209
2210	output = &ListDomainAssociationsOutput{}
2211	req = c.newRequest(op, input, output)
2212	return
2213}
2214
2215// ListDomainAssociations API operation for AWS Amplify.
2216//
2217// Returns the domain associations for an Amplify app.
2218//
2219// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2220// with awserr.Error's Code and Message methods to get detailed information about
2221// the error.
2222//
2223// See the AWS API reference guide for AWS Amplify's
2224// API operation ListDomainAssociations for usage and error information.
2225//
2226// Returned Error Types:
2227//   * BadRequestException
2228//   A request contains unexpected data.
2229//
2230//   * UnauthorizedException
2231//   An operation failed due to a lack of access.
2232//
2233//   * InternalFailureException
2234//   The service failed to perform an operation due to an internal issue.
2235//
2236// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListDomainAssociations
2237func (c *Amplify) ListDomainAssociations(input *ListDomainAssociationsInput) (*ListDomainAssociationsOutput, error) {
2238	req, out := c.ListDomainAssociationsRequest(input)
2239	return out, req.Send()
2240}
2241
2242// ListDomainAssociationsWithContext is the same as ListDomainAssociations with the addition of
2243// the ability to pass a context and additional request options.
2244//
2245// See ListDomainAssociations for details on how to use this API operation.
2246//
2247// The context must be non-nil and will be used for request cancellation. If
2248// the context is nil a panic will occur. In the future the SDK may create
2249// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2250// for more information on using Contexts.
2251func (c *Amplify) ListDomainAssociationsWithContext(ctx aws.Context, input *ListDomainAssociationsInput, opts ...request.Option) (*ListDomainAssociationsOutput, error) {
2252	req, out := c.ListDomainAssociationsRequest(input)
2253	req.SetContext(ctx)
2254	req.ApplyOptions(opts...)
2255	return out, req.Send()
2256}
2257
2258const opListJobs = "ListJobs"
2259
2260// ListJobsRequest generates a "aws/request.Request" representing the
2261// client's request for the ListJobs operation. The "output" return
2262// value will be populated with the request's response once the request completes
2263// successfully.
2264//
2265// Use "Send" method on the returned Request to send the API call to the service.
2266// the "output" return value is not valid until after Send returns without error.
2267//
2268// See ListJobs for more information on using the ListJobs
2269// API call, and error handling.
2270//
2271// This method is useful when you want to inject custom logic or configuration
2272// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2273//
2274//
2275//    // Example sending a request using the ListJobsRequest method.
2276//    req, resp := client.ListJobsRequest(params)
2277//
2278//    err := req.Send()
2279//    if err == nil { // resp is now filled
2280//        fmt.Println(resp)
2281//    }
2282//
2283// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListJobs
2284func (c *Amplify) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) {
2285	op := &request.Operation{
2286		Name:       opListJobs,
2287		HTTPMethod: "GET",
2288		HTTPPath:   "/apps/{appId}/branches/{branchName}/jobs",
2289	}
2290
2291	if input == nil {
2292		input = &ListJobsInput{}
2293	}
2294
2295	output = &ListJobsOutput{}
2296	req = c.newRequest(op, input, output)
2297	return
2298}
2299
2300// ListJobs API operation for AWS Amplify.
2301//
2302// Lists the jobs for a branch of an Amplify app.
2303//
2304// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2305// with awserr.Error's Code and Message methods to get detailed information about
2306// the error.
2307//
2308// See the AWS API reference guide for AWS Amplify's
2309// API operation ListJobs for usage and error information.
2310//
2311// Returned Error Types:
2312//   * BadRequestException
2313//   A request contains unexpected data.
2314//
2315//   * UnauthorizedException
2316//   An operation failed due to a lack of access.
2317//
2318//   * InternalFailureException
2319//   The service failed to perform an operation due to an internal issue.
2320//
2321//   * LimitExceededException
2322//   A resource could not be created because service quotas were exceeded.
2323//
2324// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListJobs
2325func (c *Amplify) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) {
2326	req, out := c.ListJobsRequest(input)
2327	return out, req.Send()
2328}
2329
2330// ListJobsWithContext is the same as ListJobs with the addition of
2331// the ability to pass a context and additional request options.
2332//
2333// See ListJobs for details on how to use this API operation.
2334//
2335// The context must be non-nil and will be used for request cancellation. If
2336// the context is nil a panic will occur. In the future the SDK may create
2337// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2338// for more information on using Contexts.
2339func (c *Amplify) ListJobsWithContext(ctx aws.Context, input *ListJobsInput, opts ...request.Option) (*ListJobsOutput, error) {
2340	req, out := c.ListJobsRequest(input)
2341	req.SetContext(ctx)
2342	req.ApplyOptions(opts...)
2343	return out, req.Send()
2344}
2345
2346const opListTagsForResource = "ListTagsForResource"
2347
2348// ListTagsForResourceRequest generates a "aws/request.Request" representing the
2349// client's request for the ListTagsForResource operation. The "output" return
2350// value will be populated with the request's response once the request completes
2351// successfully.
2352//
2353// Use "Send" method on the returned Request to send the API call to the service.
2354// the "output" return value is not valid until after Send returns without error.
2355//
2356// See ListTagsForResource for more information on using the ListTagsForResource
2357// API call, and error handling.
2358//
2359// This method is useful when you want to inject custom logic or configuration
2360// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2361//
2362//
2363//    // Example sending a request using the ListTagsForResourceRequest method.
2364//    req, resp := client.ListTagsForResourceRequest(params)
2365//
2366//    err := req.Send()
2367//    if err == nil { // resp is now filled
2368//        fmt.Println(resp)
2369//    }
2370//
2371// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListTagsForResource
2372func (c *Amplify) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
2373	op := &request.Operation{
2374		Name:       opListTagsForResource,
2375		HTTPMethod: "GET",
2376		HTTPPath:   "/tags/{resourceArn}",
2377	}
2378
2379	if input == nil {
2380		input = &ListTagsForResourceInput{}
2381	}
2382
2383	output = &ListTagsForResourceOutput{}
2384	req = c.newRequest(op, input, output)
2385	return
2386}
2387
2388// ListTagsForResource API operation for AWS Amplify.
2389//
2390// Returns a list of tags for a specified Amazon Resource Name (ARN).
2391//
2392// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2393// with awserr.Error's Code and Message methods to get detailed information about
2394// the error.
2395//
2396// See the AWS API reference guide for AWS Amplify's
2397// API operation ListTagsForResource for usage and error information.
2398//
2399// Returned Error Types:
2400//   * InternalFailureException
2401//   The service failed to perform an operation due to an internal issue.
2402//
2403//   * BadRequestException
2404//   A request contains unexpected data.
2405//
2406//   * ResourceNotFoundException
2407//   An operation failed due to a non-existent resource.
2408//
2409// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListTagsForResource
2410func (c *Amplify) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
2411	req, out := c.ListTagsForResourceRequest(input)
2412	return out, req.Send()
2413}
2414
2415// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
2416// the ability to pass a context and additional request options.
2417//
2418// See ListTagsForResource for details on how to use this API operation.
2419//
2420// The context must be non-nil and will be used for request cancellation. If
2421// the context is nil a panic will occur. In the future the SDK may create
2422// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2423// for more information on using Contexts.
2424func (c *Amplify) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
2425	req, out := c.ListTagsForResourceRequest(input)
2426	req.SetContext(ctx)
2427	req.ApplyOptions(opts...)
2428	return out, req.Send()
2429}
2430
2431const opListWebhooks = "ListWebhooks"
2432
2433// ListWebhooksRequest generates a "aws/request.Request" representing the
2434// client's request for the ListWebhooks operation. The "output" return
2435// value will be populated with the request's response once the request completes
2436// successfully.
2437//
2438// Use "Send" method on the returned Request to send the API call to the service.
2439// the "output" return value is not valid until after Send returns without error.
2440//
2441// See ListWebhooks for more information on using the ListWebhooks
2442// API call, and error handling.
2443//
2444// This method is useful when you want to inject custom logic or configuration
2445// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2446//
2447//
2448//    // Example sending a request using the ListWebhooksRequest method.
2449//    req, resp := client.ListWebhooksRequest(params)
2450//
2451//    err := req.Send()
2452//    if err == nil { // resp is now filled
2453//        fmt.Println(resp)
2454//    }
2455//
2456// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListWebhooks
2457func (c *Amplify) ListWebhooksRequest(input *ListWebhooksInput) (req *request.Request, output *ListWebhooksOutput) {
2458	op := &request.Operation{
2459		Name:       opListWebhooks,
2460		HTTPMethod: "GET",
2461		HTTPPath:   "/apps/{appId}/webhooks",
2462	}
2463
2464	if input == nil {
2465		input = &ListWebhooksInput{}
2466	}
2467
2468	output = &ListWebhooksOutput{}
2469	req = c.newRequest(op, input, output)
2470	return
2471}
2472
2473// ListWebhooks API operation for AWS Amplify.
2474//
2475// Returns a list of webhooks for an Amplify app.
2476//
2477// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2478// with awserr.Error's Code and Message methods to get detailed information about
2479// the error.
2480//
2481// See the AWS API reference guide for AWS Amplify's
2482// API operation ListWebhooks for usage and error information.
2483//
2484// Returned Error Types:
2485//   * BadRequestException
2486//   A request contains unexpected data.
2487//
2488//   * UnauthorizedException
2489//   An operation failed due to a lack of access.
2490//
2491//   * InternalFailureException
2492//   The service failed to perform an operation due to an internal issue.
2493//
2494//   * LimitExceededException
2495//   A resource could not be created because service quotas were exceeded.
2496//
2497// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListWebhooks
2498func (c *Amplify) ListWebhooks(input *ListWebhooksInput) (*ListWebhooksOutput, error) {
2499	req, out := c.ListWebhooksRequest(input)
2500	return out, req.Send()
2501}
2502
2503// ListWebhooksWithContext is the same as ListWebhooks with the addition of
2504// the ability to pass a context and additional request options.
2505//
2506// See ListWebhooks for details on how to use this API operation.
2507//
2508// The context must be non-nil and will be used for request cancellation. If
2509// the context is nil a panic will occur. In the future the SDK may create
2510// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2511// for more information on using Contexts.
2512func (c *Amplify) ListWebhooksWithContext(ctx aws.Context, input *ListWebhooksInput, opts ...request.Option) (*ListWebhooksOutput, error) {
2513	req, out := c.ListWebhooksRequest(input)
2514	req.SetContext(ctx)
2515	req.ApplyOptions(opts...)
2516	return out, req.Send()
2517}
2518
2519const opStartDeployment = "StartDeployment"
2520
2521// StartDeploymentRequest generates a "aws/request.Request" representing the
2522// client's request for the StartDeployment operation. The "output" return
2523// value will be populated with the request's response once the request completes
2524// successfully.
2525//
2526// Use "Send" method on the returned Request to send the API call to the service.
2527// the "output" return value is not valid until after Send returns without error.
2528//
2529// See StartDeployment for more information on using the StartDeployment
2530// API call, and error handling.
2531//
2532// This method is useful when you want to inject custom logic or configuration
2533// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2534//
2535//
2536//    // Example sending a request using the StartDeploymentRequest method.
2537//    req, resp := client.StartDeploymentRequest(params)
2538//
2539//    err := req.Send()
2540//    if err == nil { // resp is now filled
2541//        fmt.Println(resp)
2542//    }
2543//
2544// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartDeployment
2545func (c *Amplify) StartDeploymentRequest(input *StartDeploymentInput) (req *request.Request, output *StartDeploymentOutput) {
2546	op := &request.Operation{
2547		Name:       opStartDeployment,
2548		HTTPMethod: "POST",
2549		HTTPPath:   "/apps/{appId}/branches/{branchName}/deployments/start",
2550	}
2551
2552	if input == nil {
2553		input = &StartDeploymentInput{}
2554	}
2555
2556	output = &StartDeploymentOutput{}
2557	req = c.newRequest(op, input, output)
2558	return
2559}
2560
2561// StartDeployment API operation for AWS Amplify.
2562//
2563// Starts a deployment for a manually deployed app. Manually deployed apps are
2564// not connected to a repository.
2565//
2566// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2567// with awserr.Error's Code and Message methods to get detailed information about
2568// the error.
2569//
2570// See the AWS API reference guide for AWS Amplify's
2571// API operation StartDeployment for usage and error information.
2572//
2573// Returned Error Types:
2574//   * BadRequestException
2575//   A request contains unexpected data.
2576//
2577//   * UnauthorizedException
2578//   An operation failed due to a lack of access.
2579//
2580//   * InternalFailureException
2581//   The service failed to perform an operation due to an internal issue.
2582//
2583//   * NotFoundException
2584//   An entity was not found during an operation.
2585//
2586//   * LimitExceededException
2587//   A resource could not be created because service quotas were exceeded.
2588//
2589// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartDeployment
2590func (c *Amplify) StartDeployment(input *StartDeploymentInput) (*StartDeploymentOutput, error) {
2591	req, out := c.StartDeploymentRequest(input)
2592	return out, req.Send()
2593}
2594
2595// StartDeploymentWithContext is the same as StartDeployment with the addition of
2596// the ability to pass a context and additional request options.
2597//
2598// See StartDeployment for details on how to use this API operation.
2599//
2600// The context must be non-nil and will be used for request cancellation. If
2601// the context is nil a panic will occur. In the future the SDK may create
2602// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2603// for more information on using Contexts.
2604func (c *Amplify) StartDeploymentWithContext(ctx aws.Context, input *StartDeploymentInput, opts ...request.Option) (*StartDeploymentOutput, error) {
2605	req, out := c.StartDeploymentRequest(input)
2606	req.SetContext(ctx)
2607	req.ApplyOptions(opts...)
2608	return out, req.Send()
2609}
2610
2611const opStartJob = "StartJob"
2612
2613// StartJobRequest generates a "aws/request.Request" representing the
2614// client's request for the StartJob operation. The "output" return
2615// value will be populated with the request's response once the request completes
2616// successfully.
2617//
2618// Use "Send" method on the returned Request to send the API call to the service.
2619// the "output" return value is not valid until after Send returns without error.
2620//
2621// See StartJob for more information on using the StartJob
2622// API call, and error handling.
2623//
2624// This method is useful when you want to inject custom logic or configuration
2625// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2626//
2627//
2628//    // Example sending a request using the StartJobRequest method.
2629//    req, resp := client.StartJobRequest(params)
2630//
2631//    err := req.Send()
2632//    if err == nil { // resp is now filled
2633//        fmt.Println(resp)
2634//    }
2635//
2636// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartJob
2637func (c *Amplify) StartJobRequest(input *StartJobInput) (req *request.Request, output *StartJobOutput) {
2638	op := &request.Operation{
2639		Name:       opStartJob,
2640		HTTPMethod: "POST",
2641		HTTPPath:   "/apps/{appId}/branches/{branchName}/jobs",
2642	}
2643
2644	if input == nil {
2645		input = &StartJobInput{}
2646	}
2647
2648	output = &StartJobOutput{}
2649	req = c.newRequest(op, input, output)
2650	return
2651}
2652
2653// StartJob API operation for AWS Amplify.
2654//
2655// Starts a new job for a branch of an Amplify app.
2656//
2657// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2658// with awserr.Error's Code and Message methods to get detailed information about
2659// the error.
2660//
2661// See the AWS API reference guide for AWS Amplify's
2662// API operation StartJob for usage and error information.
2663//
2664// Returned Error Types:
2665//   * BadRequestException
2666//   A request contains unexpected data.
2667//
2668//   * UnauthorizedException
2669//   An operation failed due to a lack of access.
2670//
2671//   * InternalFailureException
2672//   The service failed to perform an operation due to an internal issue.
2673//
2674//   * NotFoundException
2675//   An entity was not found during an operation.
2676//
2677//   * LimitExceededException
2678//   A resource could not be created because service quotas were exceeded.
2679//
2680// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartJob
2681func (c *Amplify) StartJob(input *StartJobInput) (*StartJobOutput, error) {
2682	req, out := c.StartJobRequest(input)
2683	return out, req.Send()
2684}
2685
2686// StartJobWithContext is the same as StartJob with the addition of
2687// the ability to pass a context and additional request options.
2688//
2689// See StartJob for details on how to use this API operation.
2690//
2691// The context must be non-nil and will be used for request cancellation. If
2692// the context is nil a panic will occur. In the future the SDK may create
2693// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2694// for more information on using Contexts.
2695func (c *Amplify) StartJobWithContext(ctx aws.Context, input *StartJobInput, opts ...request.Option) (*StartJobOutput, error) {
2696	req, out := c.StartJobRequest(input)
2697	req.SetContext(ctx)
2698	req.ApplyOptions(opts...)
2699	return out, req.Send()
2700}
2701
2702const opStopJob = "StopJob"
2703
2704// StopJobRequest generates a "aws/request.Request" representing the
2705// client's request for the StopJob operation. The "output" return
2706// value will be populated with the request's response once the request completes
2707// successfully.
2708//
2709// Use "Send" method on the returned Request to send the API call to the service.
2710// the "output" return value is not valid until after Send returns without error.
2711//
2712// See StopJob for more information on using the StopJob
2713// API call, and error handling.
2714//
2715// This method is useful when you want to inject custom logic or configuration
2716// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2717//
2718//
2719//    // Example sending a request using the StopJobRequest method.
2720//    req, resp := client.StopJobRequest(params)
2721//
2722//    err := req.Send()
2723//    if err == nil { // resp is now filled
2724//        fmt.Println(resp)
2725//    }
2726//
2727// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StopJob
2728func (c *Amplify) StopJobRequest(input *StopJobInput) (req *request.Request, output *StopJobOutput) {
2729	op := &request.Operation{
2730		Name:       opStopJob,
2731		HTTPMethod: "DELETE",
2732		HTTPPath:   "/apps/{appId}/branches/{branchName}/jobs/{jobId}/stop",
2733	}
2734
2735	if input == nil {
2736		input = &StopJobInput{}
2737	}
2738
2739	output = &StopJobOutput{}
2740	req = c.newRequest(op, input, output)
2741	return
2742}
2743
2744// StopJob API operation for AWS Amplify.
2745//
2746// Stops a job that is in progress for a branch of an Amplify app.
2747//
2748// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2749// with awserr.Error's Code and Message methods to get detailed information about
2750// the error.
2751//
2752// See the AWS API reference guide for AWS Amplify's
2753// API operation StopJob for usage and error information.
2754//
2755// Returned Error Types:
2756//   * BadRequestException
2757//   A request contains unexpected data.
2758//
2759//   * UnauthorizedException
2760//   An operation failed due to a lack of access.
2761//
2762//   * InternalFailureException
2763//   The service failed to perform an operation due to an internal issue.
2764//
2765//   * NotFoundException
2766//   An entity was not found during an operation.
2767//
2768//   * LimitExceededException
2769//   A resource could not be created because service quotas were exceeded.
2770//
2771// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StopJob
2772func (c *Amplify) StopJob(input *StopJobInput) (*StopJobOutput, error) {
2773	req, out := c.StopJobRequest(input)
2774	return out, req.Send()
2775}
2776
2777// StopJobWithContext is the same as StopJob with the addition of
2778// the ability to pass a context and additional request options.
2779//
2780// See StopJob for details on how to use this API operation.
2781//
2782// The context must be non-nil and will be used for request cancellation. If
2783// the context is nil a panic will occur. In the future the SDK may create
2784// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2785// for more information on using Contexts.
2786func (c *Amplify) StopJobWithContext(ctx aws.Context, input *StopJobInput, opts ...request.Option) (*StopJobOutput, error) {
2787	req, out := c.StopJobRequest(input)
2788	req.SetContext(ctx)
2789	req.ApplyOptions(opts...)
2790	return out, req.Send()
2791}
2792
2793const opTagResource = "TagResource"
2794
2795// TagResourceRequest generates a "aws/request.Request" representing the
2796// client's request for the TagResource operation. The "output" return
2797// value will be populated with the request's response once the request completes
2798// successfully.
2799//
2800// Use "Send" method on the returned Request to send the API call to the service.
2801// the "output" return value is not valid until after Send returns without error.
2802//
2803// See TagResource for more information on using the TagResource
2804// API call, and error handling.
2805//
2806// This method is useful when you want to inject custom logic or configuration
2807// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2808//
2809//
2810//    // Example sending a request using the TagResourceRequest method.
2811//    req, resp := client.TagResourceRequest(params)
2812//
2813//    err := req.Send()
2814//    if err == nil { // resp is now filled
2815//        fmt.Println(resp)
2816//    }
2817//
2818// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/TagResource
2819func (c *Amplify) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
2820	op := &request.Operation{
2821		Name:       opTagResource,
2822		HTTPMethod: "POST",
2823		HTTPPath:   "/tags/{resourceArn}",
2824	}
2825
2826	if input == nil {
2827		input = &TagResourceInput{}
2828	}
2829
2830	output = &TagResourceOutput{}
2831	req = c.newRequest(op, input, output)
2832	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
2833	return
2834}
2835
2836// TagResource API operation for AWS Amplify.
2837//
2838// Tags the resource with a tag key and value.
2839//
2840// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2841// with awserr.Error's Code and Message methods to get detailed information about
2842// the error.
2843//
2844// See the AWS API reference guide for AWS Amplify's
2845// API operation TagResource for usage and error information.
2846//
2847// Returned Error Types:
2848//   * InternalFailureException
2849//   The service failed to perform an operation due to an internal issue.
2850//
2851//   * BadRequestException
2852//   A request contains unexpected data.
2853//
2854//   * ResourceNotFoundException
2855//   An operation failed due to a non-existent resource.
2856//
2857// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/TagResource
2858func (c *Amplify) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
2859	req, out := c.TagResourceRequest(input)
2860	return out, req.Send()
2861}
2862
2863// TagResourceWithContext is the same as TagResource with the addition of
2864// the ability to pass a context and additional request options.
2865//
2866// See TagResource for details on how to use this API operation.
2867//
2868// The context must be non-nil and will be used for request cancellation. If
2869// the context is nil a panic will occur. In the future the SDK may create
2870// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2871// for more information on using Contexts.
2872func (c *Amplify) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
2873	req, out := c.TagResourceRequest(input)
2874	req.SetContext(ctx)
2875	req.ApplyOptions(opts...)
2876	return out, req.Send()
2877}
2878
2879const opUntagResource = "UntagResource"
2880
2881// UntagResourceRequest generates a "aws/request.Request" representing the
2882// client's request for the UntagResource operation. The "output" return
2883// value will be populated with the request's response once the request completes
2884// successfully.
2885//
2886// Use "Send" method on the returned Request to send the API call to the service.
2887// the "output" return value is not valid until after Send returns without error.
2888//
2889// See UntagResource for more information on using the UntagResource
2890// API call, and error handling.
2891//
2892// This method is useful when you want to inject custom logic or configuration
2893// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2894//
2895//
2896//    // Example sending a request using the UntagResourceRequest method.
2897//    req, resp := client.UntagResourceRequest(params)
2898//
2899//    err := req.Send()
2900//    if err == nil { // resp is now filled
2901//        fmt.Println(resp)
2902//    }
2903//
2904// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UntagResource
2905func (c *Amplify) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
2906	op := &request.Operation{
2907		Name:       opUntagResource,
2908		HTTPMethod: "DELETE",
2909		HTTPPath:   "/tags/{resourceArn}",
2910	}
2911
2912	if input == nil {
2913		input = &UntagResourceInput{}
2914	}
2915
2916	output = &UntagResourceOutput{}
2917	req = c.newRequest(op, input, output)
2918	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
2919	return
2920}
2921
2922// UntagResource API operation for AWS Amplify.
2923//
2924// Untags a resource with a specified Amazon Resource Name (ARN).
2925//
2926// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2927// with awserr.Error's Code and Message methods to get detailed information about
2928// the error.
2929//
2930// See the AWS API reference guide for AWS Amplify's
2931// API operation UntagResource for usage and error information.
2932//
2933// Returned Error Types:
2934//   * InternalFailureException
2935//   The service failed to perform an operation due to an internal issue.
2936//
2937//   * BadRequestException
2938//   A request contains unexpected data.
2939//
2940//   * ResourceNotFoundException
2941//   An operation failed due to a non-existent resource.
2942//
2943// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UntagResource
2944func (c *Amplify) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
2945	req, out := c.UntagResourceRequest(input)
2946	return out, req.Send()
2947}
2948
2949// UntagResourceWithContext is the same as UntagResource with the addition of
2950// the ability to pass a context and additional request options.
2951//
2952// See UntagResource for details on how to use this API operation.
2953//
2954// The context must be non-nil and will be used for request cancellation. If
2955// the context is nil a panic will occur. In the future the SDK may create
2956// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2957// for more information on using Contexts.
2958func (c *Amplify) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
2959	req, out := c.UntagResourceRequest(input)
2960	req.SetContext(ctx)
2961	req.ApplyOptions(opts...)
2962	return out, req.Send()
2963}
2964
2965const opUpdateApp = "UpdateApp"
2966
2967// UpdateAppRequest generates a "aws/request.Request" representing the
2968// client's request for the UpdateApp operation. The "output" return
2969// value will be populated with the request's response once the request completes
2970// successfully.
2971//
2972// Use "Send" method on the returned Request to send the API call to the service.
2973// the "output" return value is not valid until after Send returns without error.
2974//
2975// See UpdateApp for more information on using the UpdateApp
2976// API call, and error handling.
2977//
2978// This method is useful when you want to inject custom logic or configuration
2979// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2980//
2981//
2982//    // Example sending a request using the UpdateAppRequest method.
2983//    req, resp := client.UpdateAppRequest(params)
2984//
2985//    err := req.Send()
2986//    if err == nil { // resp is now filled
2987//        fmt.Println(resp)
2988//    }
2989//
2990// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateApp
2991func (c *Amplify) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, output *UpdateAppOutput) {
2992	op := &request.Operation{
2993		Name:       opUpdateApp,
2994		HTTPMethod: "POST",
2995		HTTPPath:   "/apps/{appId}",
2996	}
2997
2998	if input == nil {
2999		input = &UpdateAppInput{}
3000	}
3001
3002	output = &UpdateAppOutput{}
3003	req = c.newRequest(op, input, output)
3004	return
3005}
3006
3007// UpdateApp API operation for AWS Amplify.
3008//
3009// Updates an existing Amplify app.
3010//
3011// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3012// with awserr.Error's Code and Message methods to get detailed information about
3013// the error.
3014//
3015// See the AWS API reference guide for AWS Amplify's
3016// API operation UpdateApp for usage and error information.
3017//
3018// Returned Error Types:
3019//   * BadRequestException
3020//   A request contains unexpected data.
3021//
3022//   * NotFoundException
3023//   An entity was not found during an operation.
3024//
3025//   * UnauthorizedException
3026//   An operation failed due to a lack of access.
3027//
3028//   * InternalFailureException
3029//   The service failed to perform an operation due to an internal issue.
3030//
3031// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateApp
3032func (c *Amplify) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) {
3033	req, out := c.UpdateAppRequest(input)
3034	return out, req.Send()
3035}
3036
3037// UpdateAppWithContext is the same as UpdateApp with the addition of
3038// the ability to pass a context and additional request options.
3039//
3040// See UpdateApp for details on how to use this API operation.
3041//
3042// The context must be non-nil and will be used for request cancellation. If
3043// the context is nil a panic will occur. In the future the SDK may create
3044// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3045// for more information on using Contexts.
3046func (c *Amplify) UpdateAppWithContext(ctx aws.Context, input *UpdateAppInput, opts ...request.Option) (*UpdateAppOutput, error) {
3047	req, out := c.UpdateAppRequest(input)
3048	req.SetContext(ctx)
3049	req.ApplyOptions(opts...)
3050	return out, req.Send()
3051}
3052
3053const opUpdateBranch = "UpdateBranch"
3054
3055// UpdateBranchRequest generates a "aws/request.Request" representing the
3056// client's request for the UpdateBranch operation. The "output" return
3057// value will be populated with the request's response once the request completes
3058// successfully.
3059//
3060// Use "Send" method on the returned Request to send the API call to the service.
3061// the "output" return value is not valid until after Send returns without error.
3062//
3063// See UpdateBranch for more information on using the UpdateBranch
3064// API call, and error handling.
3065//
3066// This method is useful when you want to inject custom logic or configuration
3067// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3068//
3069//
3070//    // Example sending a request using the UpdateBranchRequest method.
3071//    req, resp := client.UpdateBranchRequest(params)
3072//
3073//    err := req.Send()
3074//    if err == nil { // resp is now filled
3075//        fmt.Println(resp)
3076//    }
3077//
3078// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateBranch
3079func (c *Amplify) UpdateBranchRequest(input *UpdateBranchInput) (req *request.Request, output *UpdateBranchOutput) {
3080	op := &request.Operation{
3081		Name:       opUpdateBranch,
3082		HTTPMethod: "POST",
3083		HTTPPath:   "/apps/{appId}/branches/{branchName}",
3084	}
3085
3086	if input == nil {
3087		input = &UpdateBranchInput{}
3088	}
3089
3090	output = &UpdateBranchOutput{}
3091	req = c.newRequest(op, input, output)
3092	return
3093}
3094
3095// UpdateBranch API operation for AWS Amplify.
3096//
3097// Updates a branch for an Amplify app.
3098//
3099// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3100// with awserr.Error's Code and Message methods to get detailed information about
3101// the error.
3102//
3103// See the AWS API reference guide for AWS Amplify's
3104// API operation UpdateBranch for usage and error information.
3105//
3106// Returned Error Types:
3107//   * BadRequestException
3108//   A request contains unexpected data.
3109//
3110//   * UnauthorizedException
3111//   An operation failed due to a lack of access.
3112//
3113//   * NotFoundException
3114//   An entity was not found during an operation.
3115//
3116//   * InternalFailureException
3117//   The service failed to perform an operation due to an internal issue.
3118//
3119//   * DependentServiceFailureException
3120//   An operation failed because a dependent service threw an exception.
3121//
3122// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateBranch
3123func (c *Amplify) UpdateBranch(input *UpdateBranchInput) (*UpdateBranchOutput, error) {
3124	req, out := c.UpdateBranchRequest(input)
3125	return out, req.Send()
3126}
3127
3128// UpdateBranchWithContext is the same as UpdateBranch with the addition of
3129// the ability to pass a context and additional request options.
3130//
3131// See UpdateBranch for details on how to use this API operation.
3132//
3133// The context must be non-nil and will be used for request cancellation. If
3134// the context is nil a panic will occur. In the future the SDK may create
3135// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3136// for more information on using Contexts.
3137func (c *Amplify) UpdateBranchWithContext(ctx aws.Context, input *UpdateBranchInput, opts ...request.Option) (*UpdateBranchOutput, error) {
3138	req, out := c.UpdateBranchRequest(input)
3139	req.SetContext(ctx)
3140	req.ApplyOptions(opts...)
3141	return out, req.Send()
3142}
3143
3144const opUpdateDomainAssociation = "UpdateDomainAssociation"
3145
3146// UpdateDomainAssociationRequest generates a "aws/request.Request" representing the
3147// client's request for the UpdateDomainAssociation operation. The "output" return
3148// value will be populated with the request's response once the request completes
3149// successfully.
3150//
3151// Use "Send" method on the returned Request to send the API call to the service.
3152// the "output" return value is not valid until after Send returns without error.
3153//
3154// See UpdateDomainAssociation for more information on using the UpdateDomainAssociation
3155// API call, and error handling.
3156//
3157// This method is useful when you want to inject custom logic or configuration
3158// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3159//
3160//
3161//    // Example sending a request using the UpdateDomainAssociationRequest method.
3162//    req, resp := client.UpdateDomainAssociationRequest(params)
3163//
3164//    err := req.Send()
3165//    if err == nil { // resp is now filled
3166//        fmt.Println(resp)
3167//    }
3168//
3169// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateDomainAssociation
3170func (c *Amplify) UpdateDomainAssociationRequest(input *UpdateDomainAssociationInput) (req *request.Request, output *UpdateDomainAssociationOutput) {
3171	op := &request.Operation{
3172		Name:       opUpdateDomainAssociation,
3173		HTTPMethod: "POST",
3174		HTTPPath:   "/apps/{appId}/domains/{domainName}",
3175	}
3176
3177	if input == nil {
3178		input = &UpdateDomainAssociationInput{}
3179	}
3180
3181	output = &UpdateDomainAssociationOutput{}
3182	req = c.newRequest(op, input, output)
3183	return
3184}
3185
3186// UpdateDomainAssociation API operation for AWS Amplify.
3187//
3188// Creates a new domain association for an Amplify app.
3189//
3190// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3191// with awserr.Error's Code and Message methods to get detailed information about
3192// the error.
3193//
3194// See the AWS API reference guide for AWS Amplify's
3195// API operation UpdateDomainAssociation for usage and error information.
3196//
3197// Returned Error Types:
3198//   * BadRequestException
3199//   A request contains unexpected data.
3200//
3201//   * UnauthorizedException
3202//   An operation failed due to a lack of access.
3203//
3204//   * NotFoundException
3205//   An entity was not found during an operation.
3206//
3207//   * InternalFailureException
3208//   The service failed to perform an operation due to an internal issue.
3209//
3210//   * DependentServiceFailureException
3211//   An operation failed because a dependent service threw an exception.
3212//
3213// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateDomainAssociation
3214func (c *Amplify) UpdateDomainAssociation(input *UpdateDomainAssociationInput) (*UpdateDomainAssociationOutput, error) {
3215	req, out := c.UpdateDomainAssociationRequest(input)
3216	return out, req.Send()
3217}
3218
3219// UpdateDomainAssociationWithContext is the same as UpdateDomainAssociation with the addition of
3220// the ability to pass a context and additional request options.
3221//
3222// See UpdateDomainAssociation for details on how to use this API operation.
3223//
3224// The context must be non-nil and will be used for request cancellation. If
3225// the context is nil a panic will occur. In the future the SDK may create
3226// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3227// for more information on using Contexts.
3228func (c *Amplify) UpdateDomainAssociationWithContext(ctx aws.Context, input *UpdateDomainAssociationInput, opts ...request.Option) (*UpdateDomainAssociationOutput, error) {
3229	req, out := c.UpdateDomainAssociationRequest(input)
3230	req.SetContext(ctx)
3231	req.ApplyOptions(opts...)
3232	return out, req.Send()
3233}
3234
3235const opUpdateWebhook = "UpdateWebhook"
3236
3237// UpdateWebhookRequest generates a "aws/request.Request" representing the
3238// client's request for the UpdateWebhook operation. The "output" return
3239// value will be populated with the request's response once the request completes
3240// successfully.
3241//
3242// Use "Send" method on the returned Request to send the API call to the service.
3243// the "output" return value is not valid until after Send returns without error.
3244//
3245// See UpdateWebhook for more information on using the UpdateWebhook
3246// API call, and error handling.
3247//
3248// This method is useful when you want to inject custom logic or configuration
3249// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3250//
3251//
3252//    // Example sending a request using the UpdateWebhookRequest method.
3253//    req, resp := client.UpdateWebhookRequest(params)
3254//
3255//    err := req.Send()
3256//    if err == nil { // resp is now filled
3257//        fmt.Println(resp)
3258//    }
3259//
3260// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateWebhook
3261func (c *Amplify) UpdateWebhookRequest(input *UpdateWebhookInput) (req *request.Request, output *UpdateWebhookOutput) {
3262	op := &request.Operation{
3263		Name:       opUpdateWebhook,
3264		HTTPMethod: "POST",
3265		HTTPPath:   "/webhooks/{webhookId}",
3266	}
3267
3268	if input == nil {
3269		input = &UpdateWebhookInput{}
3270	}
3271
3272	output = &UpdateWebhookOutput{}
3273	req = c.newRequest(op, input, output)
3274	return
3275}
3276
3277// UpdateWebhook API operation for AWS Amplify.
3278//
3279// Updates a webhook.
3280//
3281// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3282// with awserr.Error's Code and Message methods to get detailed information about
3283// the error.
3284//
3285// See the AWS API reference guide for AWS Amplify's
3286// API operation UpdateWebhook for usage and error information.
3287//
3288// Returned Error Types:
3289//   * BadRequestException
3290//   A request contains unexpected data.
3291//
3292//   * UnauthorizedException
3293//   An operation failed due to a lack of access.
3294//
3295//   * NotFoundException
3296//   An entity was not found during an operation.
3297//
3298//   * InternalFailureException
3299//   The service failed to perform an operation due to an internal issue.
3300//
3301//   * DependentServiceFailureException
3302//   An operation failed because a dependent service threw an exception.
3303//
3304// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateWebhook
3305func (c *Amplify) UpdateWebhook(input *UpdateWebhookInput) (*UpdateWebhookOutput, error) {
3306	req, out := c.UpdateWebhookRequest(input)
3307	return out, req.Send()
3308}
3309
3310// UpdateWebhookWithContext is the same as UpdateWebhook with the addition of
3311// the ability to pass a context and additional request options.
3312//
3313// See UpdateWebhook for details on how to use this API operation.
3314//
3315// The context must be non-nil and will be used for request cancellation. If
3316// the context is nil a panic will occur. In the future the SDK may create
3317// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3318// for more information on using Contexts.
3319func (c *Amplify) UpdateWebhookWithContext(ctx aws.Context, input *UpdateWebhookInput, opts ...request.Option) (*UpdateWebhookOutput, error) {
3320	req, out := c.UpdateWebhookRequest(input)
3321	req.SetContext(ctx)
3322	req.ApplyOptions(opts...)
3323	return out, req.Send()
3324}
3325
3326// Represents the different branches of a repository for building, deploying,
3327// and hosting an Amplify app.
3328type App struct {
3329	_ struct{} `type:"structure"`
3330
3331	// The Amazon Resource Name (ARN) of the Amplify app.
3332	//
3333	// AppArn is a required field
3334	AppArn *string `locationName:"appArn" type:"string" required:"true"`
3335
3336	// The unique ID of the Amplify app.
3337	//
3338	// AppId is a required field
3339	AppId *string `locationName:"appId" min:"1" type:"string" required:"true"`
3340
3341	// Describes the automated branch creation configuration for the Amplify app.
3342	AutoBranchCreationConfig *AutoBranchCreationConfig `locationName:"autoBranchCreationConfig" type:"structure"`
3343
3344	// Describes the automated branch creation glob patterns for the Amplify app.
3345	AutoBranchCreationPatterns []*string `locationName:"autoBranchCreationPatterns" type:"list"`
3346
3347	// The basic authorization credentials for branches for the Amplify app.
3348	BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
3349
3350	// Describes the content of the build specification (build spec) for the Amplify
3351	// app.
3352	BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
3353
3354	// Creates a date and time for the Amplify app.
3355	//
3356	// CreateTime is a required field
3357	CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"`
3358
3359	// Describes the custom redirect and rewrite rules for the Amplify app.
3360	CustomRules []*CustomRule `locationName:"customRules" type:"list"`
3361
3362	// The default domain for the Amplify app.
3363	//
3364	// DefaultDomain is a required field
3365	DefaultDomain *string `locationName:"defaultDomain" min:"1" type:"string" required:"true"`
3366
3367	// The description for the Amplify app.
3368	//
3369	// Description is a required field
3370	Description *string `locationName:"description" type:"string" required:"true"`
3371
3372	// Enables automated branch creation for the Amplify app.
3373	EnableAutoBranchCreation *bool `locationName:"enableAutoBranchCreation" type:"boolean"`
3374
3375	// Enables basic authorization for the Amplify app's branches.
3376	//
3377	// EnableBasicAuth is a required field
3378	EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean" required:"true"`
3379
3380	// Enables the auto-building of branches for the Amplify app.
3381	//
3382	// EnableBranchAutoBuild is a required field
3383	EnableBranchAutoBuild *bool `locationName:"enableBranchAutoBuild" type:"boolean" required:"true"`
3384
3385	// Automatically disconnect a branch in the Amplify Console when you delete
3386	// a branch from your Git repository.
3387	EnableBranchAutoDeletion *bool `locationName:"enableBranchAutoDeletion" type:"boolean"`
3388
3389	// The environment variables for the Amplify app.
3390	//
3391	// EnvironmentVariables is a required field
3392	EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map" required:"true"`
3393
3394	// The AWS Identity and Access Management (IAM) service role for the Amazon
3395	// Resource Name (ARN) of the Amplify app.
3396	IamServiceRoleArn *string `locationName:"iamServiceRoleArn" min:"1" type:"string"`
3397
3398	// The name for the Amplify app.
3399	//
3400	// Name is a required field
3401	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
3402
3403	// The platform for the Amplify app.
3404	//
3405	// Platform is a required field
3406	Platform *string `locationName:"platform" type:"string" required:"true" enum:"Platform"`
3407
3408	// Describes the information about a production branch of the Amplify app.
3409	ProductionBranch *ProductionBranch `locationName:"productionBranch" type:"structure"`
3410
3411	// The repository for the Amplify app.
3412	//
3413	// Repository is a required field
3414	Repository *string `locationName:"repository" type:"string" required:"true"`
3415
3416	// The tag for the Amplify app.
3417	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
3418
3419	// Updates the date and time for the Amplify app.
3420	//
3421	// UpdateTime is a required field
3422	UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"`
3423}
3424
3425// String returns the string representation
3426func (s App) String() string {
3427	return awsutil.Prettify(s)
3428}
3429
3430// GoString returns the string representation
3431func (s App) GoString() string {
3432	return s.String()
3433}
3434
3435// SetAppArn sets the AppArn field's value.
3436func (s *App) SetAppArn(v string) *App {
3437	s.AppArn = &v
3438	return s
3439}
3440
3441// SetAppId sets the AppId field's value.
3442func (s *App) SetAppId(v string) *App {
3443	s.AppId = &v
3444	return s
3445}
3446
3447// SetAutoBranchCreationConfig sets the AutoBranchCreationConfig field's value.
3448func (s *App) SetAutoBranchCreationConfig(v *AutoBranchCreationConfig) *App {
3449	s.AutoBranchCreationConfig = v
3450	return s
3451}
3452
3453// SetAutoBranchCreationPatterns sets the AutoBranchCreationPatterns field's value.
3454func (s *App) SetAutoBranchCreationPatterns(v []*string) *App {
3455	s.AutoBranchCreationPatterns = v
3456	return s
3457}
3458
3459// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
3460func (s *App) SetBasicAuthCredentials(v string) *App {
3461	s.BasicAuthCredentials = &v
3462	return s
3463}
3464
3465// SetBuildSpec sets the BuildSpec field's value.
3466func (s *App) SetBuildSpec(v string) *App {
3467	s.BuildSpec = &v
3468	return s
3469}
3470
3471// SetCreateTime sets the CreateTime field's value.
3472func (s *App) SetCreateTime(v time.Time) *App {
3473	s.CreateTime = &v
3474	return s
3475}
3476
3477// SetCustomRules sets the CustomRules field's value.
3478func (s *App) SetCustomRules(v []*CustomRule) *App {
3479	s.CustomRules = v
3480	return s
3481}
3482
3483// SetDefaultDomain sets the DefaultDomain field's value.
3484func (s *App) SetDefaultDomain(v string) *App {
3485	s.DefaultDomain = &v
3486	return s
3487}
3488
3489// SetDescription sets the Description field's value.
3490func (s *App) SetDescription(v string) *App {
3491	s.Description = &v
3492	return s
3493}
3494
3495// SetEnableAutoBranchCreation sets the EnableAutoBranchCreation field's value.
3496func (s *App) SetEnableAutoBranchCreation(v bool) *App {
3497	s.EnableAutoBranchCreation = &v
3498	return s
3499}
3500
3501// SetEnableBasicAuth sets the EnableBasicAuth field's value.
3502func (s *App) SetEnableBasicAuth(v bool) *App {
3503	s.EnableBasicAuth = &v
3504	return s
3505}
3506
3507// SetEnableBranchAutoBuild sets the EnableBranchAutoBuild field's value.
3508func (s *App) SetEnableBranchAutoBuild(v bool) *App {
3509	s.EnableBranchAutoBuild = &v
3510	return s
3511}
3512
3513// SetEnableBranchAutoDeletion sets the EnableBranchAutoDeletion field's value.
3514func (s *App) SetEnableBranchAutoDeletion(v bool) *App {
3515	s.EnableBranchAutoDeletion = &v
3516	return s
3517}
3518
3519// SetEnvironmentVariables sets the EnvironmentVariables field's value.
3520func (s *App) SetEnvironmentVariables(v map[string]*string) *App {
3521	s.EnvironmentVariables = v
3522	return s
3523}
3524
3525// SetIamServiceRoleArn sets the IamServiceRoleArn field's value.
3526func (s *App) SetIamServiceRoleArn(v string) *App {
3527	s.IamServiceRoleArn = &v
3528	return s
3529}
3530
3531// SetName sets the Name field's value.
3532func (s *App) SetName(v string) *App {
3533	s.Name = &v
3534	return s
3535}
3536
3537// SetPlatform sets the Platform field's value.
3538func (s *App) SetPlatform(v string) *App {
3539	s.Platform = &v
3540	return s
3541}
3542
3543// SetProductionBranch sets the ProductionBranch field's value.
3544func (s *App) SetProductionBranch(v *ProductionBranch) *App {
3545	s.ProductionBranch = v
3546	return s
3547}
3548
3549// SetRepository sets the Repository field's value.
3550func (s *App) SetRepository(v string) *App {
3551	s.Repository = &v
3552	return s
3553}
3554
3555// SetTags sets the Tags field's value.
3556func (s *App) SetTags(v map[string]*string) *App {
3557	s.Tags = v
3558	return s
3559}
3560
3561// SetUpdateTime sets the UpdateTime field's value.
3562func (s *App) SetUpdateTime(v time.Time) *App {
3563	s.UpdateTime = &v
3564	return s
3565}
3566
3567// Describes an artifact.
3568type Artifact struct {
3569	_ struct{} `type:"structure"`
3570
3571	// The file name for the artifact.
3572	//
3573	// ArtifactFileName is a required field
3574	ArtifactFileName *string `locationName:"artifactFileName" type:"string" required:"true"`
3575
3576	// The unique ID for the artifact.
3577	//
3578	// ArtifactId is a required field
3579	ArtifactId *string `locationName:"artifactId" type:"string" required:"true"`
3580}
3581
3582// String returns the string representation
3583func (s Artifact) String() string {
3584	return awsutil.Prettify(s)
3585}
3586
3587// GoString returns the string representation
3588func (s Artifact) GoString() string {
3589	return s.String()
3590}
3591
3592// SetArtifactFileName sets the ArtifactFileName field's value.
3593func (s *Artifact) SetArtifactFileName(v string) *Artifact {
3594	s.ArtifactFileName = &v
3595	return s
3596}
3597
3598// SetArtifactId sets the ArtifactId field's value.
3599func (s *Artifact) SetArtifactId(v string) *Artifact {
3600	s.ArtifactId = &v
3601	return s
3602}
3603
3604// Describes the automated branch creation configuration.
3605type AutoBranchCreationConfig struct {
3606	_ struct{} `type:"structure"`
3607
3608	// The basic authorization credentials for the autocreated branch.
3609	BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
3610
3611	// The build specification (build spec) for the autocreated branch.
3612	BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
3613
3614	// Enables auto building for the autocreated branch.
3615	EnableAutoBuild *bool `locationName:"enableAutoBuild" type:"boolean"`
3616
3617	// Enables basic authorization for the autocreated branch.
3618	EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"`
3619
3620	// Enables pull request preview for the autocreated branch.
3621	EnablePullRequestPreview *bool `locationName:"enablePullRequestPreview" type:"boolean"`
3622
3623	// The environment variables for the autocreated branch.
3624	EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"`
3625
3626	// The framework for the autocreated branch.
3627	Framework *string `locationName:"framework" type:"string"`
3628
3629	// The Amplify environment name for the pull request.
3630	PullRequestEnvironmentName *string `locationName:"pullRequestEnvironmentName" type:"string"`
3631
3632	// Describes the current stage for the autocreated branch.
3633	Stage *string `locationName:"stage" type:"string" enum:"Stage"`
3634}
3635
3636// String returns the string representation
3637func (s AutoBranchCreationConfig) String() string {
3638	return awsutil.Prettify(s)
3639}
3640
3641// GoString returns the string representation
3642func (s AutoBranchCreationConfig) GoString() string {
3643	return s.String()
3644}
3645
3646// Validate inspects the fields of the type to determine if they are valid.
3647func (s *AutoBranchCreationConfig) Validate() error {
3648	invalidParams := request.ErrInvalidParams{Context: "AutoBranchCreationConfig"}
3649	if s.BuildSpec != nil && len(*s.BuildSpec) < 1 {
3650		invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1))
3651	}
3652
3653	if invalidParams.Len() > 0 {
3654		return invalidParams
3655	}
3656	return nil
3657}
3658
3659// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
3660func (s *AutoBranchCreationConfig) SetBasicAuthCredentials(v string) *AutoBranchCreationConfig {
3661	s.BasicAuthCredentials = &v
3662	return s
3663}
3664
3665// SetBuildSpec sets the BuildSpec field's value.
3666func (s *AutoBranchCreationConfig) SetBuildSpec(v string) *AutoBranchCreationConfig {
3667	s.BuildSpec = &v
3668	return s
3669}
3670
3671// SetEnableAutoBuild sets the EnableAutoBuild field's value.
3672func (s *AutoBranchCreationConfig) SetEnableAutoBuild(v bool) *AutoBranchCreationConfig {
3673	s.EnableAutoBuild = &v
3674	return s
3675}
3676
3677// SetEnableBasicAuth sets the EnableBasicAuth field's value.
3678func (s *AutoBranchCreationConfig) SetEnableBasicAuth(v bool) *AutoBranchCreationConfig {
3679	s.EnableBasicAuth = &v
3680	return s
3681}
3682
3683// SetEnablePullRequestPreview sets the EnablePullRequestPreview field's value.
3684func (s *AutoBranchCreationConfig) SetEnablePullRequestPreview(v bool) *AutoBranchCreationConfig {
3685	s.EnablePullRequestPreview = &v
3686	return s
3687}
3688
3689// SetEnvironmentVariables sets the EnvironmentVariables field's value.
3690func (s *AutoBranchCreationConfig) SetEnvironmentVariables(v map[string]*string) *AutoBranchCreationConfig {
3691	s.EnvironmentVariables = v
3692	return s
3693}
3694
3695// SetFramework sets the Framework field's value.
3696func (s *AutoBranchCreationConfig) SetFramework(v string) *AutoBranchCreationConfig {
3697	s.Framework = &v
3698	return s
3699}
3700
3701// SetPullRequestEnvironmentName sets the PullRequestEnvironmentName field's value.
3702func (s *AutoBranchCreationConfig) SetPullRequestEnvironmentName(v string) *AutoBranchCreationConfig {
3703	s.PullRequestEnvironmentName = &v
3704	return s
3705}
3706
3707// SetStage sets the Stage field's value.
3708func (s *AutoBranchCreationConfig) SetStage(v string) *AutoBranchCreationConfig {
3709	s.Stage = &v
3710	return s
3711}
3712
3713// Describes the backend environment for an Amplify app.
3714type BackendEnvironment struct {
3715	_ struct{} `type:"structure"`
3716
3717	// The Amazon Resource Name (ARN) for a backend environment that is part of
3718	// an Amplify app.
3719	//
3720	// BackendEnvironmentArn is a required field
3721	BackendEnvironmentArn *string `locationName:"backendEnvironmentArn" min:"1" type:"string" required:"true"`
3722
3723	// The creation date and time for a backend environment that is part of an Amplify
3724	// app.
3725	//
3726	// CreateTime is a required field
3727	CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"`
3728
3729	// The name of deployment artifacts.
3730	DeploymentArtifacts *string `locationName:"deploymentArtifacts" min:"1" type:"string"`
3731
3732	// The name for a backend environment that is part of an Amplify app.
3733	//
3734	// EnvironmentName is a required field
3735	EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"`
3736
3737	// The AWS CloudFormation stack name of a backend environment.
3738	StackName *string `locationName:"stackName" min:"1" type:"string"`
3739
3740	// The last updated date and time for a backend environment that is part of
3741	// an Amplify app.
3742	//
3743	// UpdateTime is a required field
3744	UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"`
3745}
3746
3747// String returns the string representation
3748func (s BackendEnvironment) String() string {
3749	return awsutil.Prettify(s)
3750}
3751
3752// GoString returns the string representation
3753func (s BackendEnvironment) GoString() string {
3754	return s.String()
3755}
3756
3757// SetBackendEnvironmentArn sets the BackendEnvironmentArn field's value.
3758func (s *BackendEnvironment) SetBackendEnvironmentArn(v string) *BackendEnvironment {
3759	s.BackendEnvironmentArn = &v
3760	return s
3761}
3762
3763// SetCreateTime sets the CreateTime field's value.
3764func (s *BackendEnvironment) SetCreateTime(v time.Time) *BackendEnvironment {
3765	s.CreateTime = &v
3766	return s
3767}
3768
3769// SetDeploymentArtifacts sets the DeploymentArtifacts field's value.
3770func (s *BackendEnvironment) SetDeploymentArtifacts(v string) *BackendEnvironment {
3771	s.DeploymentArtifacts = &v
3772	return s
3773}
3774
3775// SetEnvironmentName sets the EnvironmentName field's value.
3776func (s *BackendEnvironment) SetEnvironmentName(v string) *BackendEnvironment {
3777	s.EnvironmentName = &v
3778	return s
3779}
3780
3781// SetStackName sets the StackName field's value.
3782func (s *BackendEnvironment) SetStackName(v string) *BackendEnvironment {
3783	s.StackName = &v
3784	return s
3785}
3786
3787// SetUpdateTime sets the UpdateTime field's value.
3788func (s *BackendEnvironment) SetUpdateTime(v time.Time) *BackendEnvironment {
3789	s.UpdateTime = &v
3790	return s
3791}
3792
3793// A request contains unexpected data.
3794type BadRequestException struct {
3795	_            struct{}                  `type:"structure"`
3796	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
3797
3798	Message_ *string `locationName:"message" type:"string"`
3799}
3800
3801// String returns the string representation
3802func (s BadRequestException) String() string {
3803	return awsutil.Prettify(s)
3804}
3805
3806// GoString returns the string representation
3807func (s BadRequestException) GoString() string {
3808	return s.String()
3809}
3810
3811func newErrorBadRequestException(v protocol.ResponseMetadata) error {
3812	return &BadRequestException{
3813		RespMetadata: v,
3814	}
3815}
3816
3817// Code returns the exception type name.
3818func (s *BadRequestException) Code() string {
3819	return "BadRequestException"
3820}
3821
3822// Message returns the exception's message.
3823func (s *BadRequestException) Message() string {
3824	if s.Message_ != nil {
3825		return *s.Message_
3826	}
3827	return ""
3828}
3829
3830// OrigErr always returns nil, satisfies awserr.Error interface.
3831func (s *BadRequestException) OrigErr() error {
3832	return nil
3833}
3834
3835func (s *BadRequestException) Error() string {
3836	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
3837}
3838
3839// Status code returns the HTTP status code for the request's response error.
3840func (s *BadRequestException) StatusCode() int {
3841	return s.RespMetadata.StatusCode
3842}
3843
3844// RequestID returns the service's response RequestID for request.
3845func (s *BadRequestException) RequestID() string {
3846	return s.RespMetadata.RequestID
3847}
3848
3849// The branch for an Amplify app, which maps to a third-party repository branch.
3850type Branch struct {
3851	_ struct{} `type:"structure"`
3852
3853	// The ID of the active job for a branch of an Amplify app.
3854	//
3855	// ActiveJobId is a required field
3856	ActiveJobId *string `locationName:"activeJobId" type:"string" required:"true"`
3857
3858	// A list of custom resources that are linked to this branch.
3859	AssociatedResources []*string `locationName:"associatedResources" type:"list"`
3860
3861	// The Amazon Resource Name (ARN) for a backend environment that is part of
3862	// an Amplify app.
3863	BackendEnvironmentArn *string `locationName:"backendEnvironmentArn" min:"1" type:"string"`
3864
3865	// The basic authorization credentials for a branch of an Amplify app.
3866	BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
3867
3868	// The Amazon Resource Name (ARN) for a branch that is part of an Amplify app.
3869	//
3870	// BranchArn is a required field
3871	BranchArn *string `locationName:"branchArn" type:"string" required:"true"`
3872
3873	// The name for the branch that is part of an Amplify app.
3874	//
3875	// BranchName is a required field
3876	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
3877
3878	// The build specification (build spec) content for the branch of an Amplify
3879	// app.
3880	BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
3881
3882	// The creation date and time for a branch that is part of an Amplify app.
3883	//
3884	// CreateTime is a required field
3885	CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"`
3886
3887	// The custom domains for a branch of an Amplify app.
3888	//
3889	// CustomDomains is a required field
3890	CustomDomains []*string `locationName:"customDomains" type:"list" required:"true"`
3891
3892	// The description for the branch that is part of an Amplify app.
3893	//
3894	// Description is a required field
3895	Description *string `locationName:"description" type:"string" required:"true"`
3896
3897	// The destination branch if the branch is a pull request branch.
3898	DestinationBranch *string `locationName:"destinationBranch" min:"1" type:"string"`
3899
3900	// The display name for the branch. This is used as the default domain prefix.
3901	//
3902	// DisplayName is a required field
3903	DisplayName *string `locationName:"displayName" type:"string" required:"true"`
3904
3905	// Enables auto-building on push for a branch of an Amplify app.
3906	//
3907	// EnableAutoBuild is a required field
3908	EnableAutoBuild *bool `locationName:"enableAutoBuild" type:"boolean" required:"true"`
3909
3910	// Enables basic authorization for a branch of an Amplify app.
3911	//
3912	// EnableBasicAuth is a required field
3913	EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean" required:"true"`
3914
3915	// Enables notifications for a branch that is part of an Amplify app.
3916	//
3917	// EnableNotification is a required field
3918	EnableNotification *bool `locationName:"enableNotification" type:"boolean" required:"true"`
3919
3920	// Enables pull request preview for the branch.
3921	//
3922	// EnablePullRequestPreview is a required field
3923	EnablePullRequestPreview *bool `locationName:"enablePullRequestPreview" type:"boolean" required:"true"`
3924
3925	// The environment variables specific to a branch of an Amplify app.
3926	//
3927	// EnvironmentVariables is a required field
3928	EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map" required:"true"`
3929
3930	// The framework for a branch of an Amplify app.
3931	//
3932	// Framework is a required field
3933	Framework *string `locationName:"framework" type:"string" required:"true"`
3934
3935	// The Amplify environment name for the pull request.
3936	PullRequestEnvironmentName *string `locationName:"pullRequestEnvironmentName" type:"string"`
3937
3938	// The source branch if the branch is a pull request branch.
3939	SourceBranch *string `locationName:"sourceBranch" min:"1" type:"string"`
3940
3941	// The current stage for the branch that is part of an Amplify app.
3942	//
3943	// Stage is a required field
3944	Stage *string `locationName:"stage" type:"string" required:"true" enum:"Stage"`
3945
3946	// The tag for the branch of an Amplify app.
3947	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
3948
3949	// The thumbnail URL for the branch of an Amplify app.
3950	ThumbnailUrl *string `locationName:"thumbnailUrl" min:"1" type:"string"`
3951
3952	// The total number of jobs that are part of an Amplify app.
3953	//
3954	// TotalNumberOfJobs is a required field
3955	TotalNumberOfJobs *string `locationName:"totalNumberOfJobs" type:"string" required:"true"`
3956
3957	// The content Time to Live (TTL) for the website in seconds.
3958	//
3959	// Ttl is a required field
3960	Ttl *string `locationName:"ttl" type:"string" required:"true"`
3961
3962	// The last updated date and time for a branch that is part of an Amplify app.
3963	//
3964	// UpdateTime is a required field
3965	UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"`
3966}
3967
3968// String returns the string representation
3969func (s Branch) String() string {
3970	return awsutil.Prettify(s)
3971}
3972
3973// GoString returns the string representation
3974func (s Branch) GoString() string {
3975	return s.String()
3976}
3977
3978// SetActiveJobId sets the ActiveJobId field's value.
3979func (s *Branch) SetActiveJobId(v string) *Branch {
3980	s.ActiveJobId = &v
3981	return s
3982}
3983
3984// SetAssociatedResources sets the AssociatedResources field's value.
3985func (s *Branch) SetAssociatedResources(v []*string) *Branch {
3986	s.AssociatedResources = v
3987	return s
3988}
3989
3990// SetBackendEnvironmentArn sets the BackendEnvironmentArn field's value.
3991func (s *Branch) SetBackendEnvironmentArn(v string) *Branch {
3992	s.BackendEnvironmentArn = &v
3993	return s
3994}
3995
3996// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
3997func (s *Branch) SetBasicAuthCredentials(v string) *Branch {
3998	s.BasicAuthCredentials = &v
3999	return s
4000}
4001
4002// SetBranchArn sets the BranchArn field's value.
4003func (s *Branch) SetBranchArn(v string) *Branch {
4004	s.BranchArn = &v
4005	return s
4006}
4007
4008// SetBranchName sets the BranchName field's value.
4009func (s *Branch) SetBranchName(v string) *Branch {
4010	s.BranchName = &v
4011	return s
4012}
4013
4014// SetBuildSpec sets the BuildSpec field's value.
4015func (s *Branch) SetBuildSpec(v string) *Branch {
4016	s.BuildSpec = &v
4017	return s
4018}
4019
4020// SetCreateTime sets the CreateTime field's value.
4021func (s *Branch) SetCreateTime(v time.Time) *Branch {
4022	s.CreateTime = &v
4023	return s
4024}
4025
4026// SetCustomDomains sets the CustomDomains field's value.
4027func (s *Branch) SetCustomDomains(v []*string) *Branch {
4028	s.CustomDomains = v
4029	return s
4030}
4031
4032// SetDescription sets the Description field's value.
4033func (s *Branch) SetDescription(v string) *Branch {
4034	s.Description = &v
4035	return s
4036}
4037
4038// SetDestinationBranch sets the DestinationBranch field's value.
4039func (s *Branch) SetDestinationBranch(v string) *Branch {
4040	s.DestinationBranch = &v
4041	return s
4042}
4043
4044// SetDisplayName sets the DisplayName field's value.
4045func (s *Branch) SetDisplayName(v string) *Branch {
4046	s.DisplayName = &v
4047	return s
4048}
4049
4050// SetEnableAutoBuild sets the EnableAutoBuild field's value.
4051func (s *Branch) SetEnableAutoBuild(v bool) *Branch {
4052	s.EnableAutoBuild = &v
4053	return s
4054}
4055
4056// SetEnableBasicAuth sets the EnableBasicAuth field's value.
4057func (s *Branch) SetEnableBasicAuth(v bool) *Branch {
4058	s.EnableBasicAuth = &v
4059	return s
4060}
4061
4062// SetEnableNotification sets the EnableNotification field's value.
4063func (s *Branch) SetEnableNotification(v bool) *Branch {
4064	s.EnableNotification = &v
4065	return s
4066}
4067
4068// SetEnablePullRequestPreview sets the EnablePullRequestPreview field's value.
4069func (s *Branch) SetEnablePullRequestPreview(v bool) *Branch {
4070	s.EnablePullRequestPreview = &v
4071	return s
4072}
4073
4074// SetEnvironmentVariables sets the EnvironmentVariables field's value.
4075func (s *Branch) SetEnvironmentVariables(v map[string]*string) *Branch {
4076	s.EnvironmentVariables = v
4077	return s
4078}
4079
4080// SetFramework sets the Framework field's value.
4081func (s *Branch) SetFramework(v string) *Branch {
4082	s.Framework = &v
4083	return s
4084}
4085
4086// SetPullRequestEnvironmentName sets the PullRequestEnvironmentName field's value.
4087func (s *Branch) SetPullRequestEnvironmentName(v string) *Branch {
4088	s.PullRequestEnvironmentName = &v
4089	return s
4090}
4091
4092// SetSourceBranch sets the SourceBranch field's value.
4093func (s *Branch) SetSourceBranch(v string) *Branch {
4094	s.SourceBranch = &v
4095	return s
4096}
4097
4098// SetStage sets the Stage field's value.
4099func (s *Branch) SetStage(v string) *Branch {
4100	s.Stage = &v
4101	return s
4102}
4103
4104// SetTags sets the Tags field's value.
4105func (s *Branch) SetTags(v map[string]*string) *Branch {
4106	s.Tags = v
4107	return s
4108}
4109
4110// SetThumbnailUrl sets the ThumbnailUrl field's value.
4111func (s *Branch) SetThumbnailUrl(v string) *Branch {
4112	s.ThumbnailUrl = &v
4113	return s
4114}
4115
4116// SetTotalNumberOfJobs sets the TotalNumberOfJobs field's value.
4117func (s *Branch) SetTotalNumberOfJobs(v string) *Branch {
4118	s.TotalNumberOfJobs = &v
4119	return s
4120}
4121
4122// SetTtl sets the Ttl field's value.
4123func (s *Branch) SetTtl(v string) *Branch {
4124	s.Ttl = &v
4125	return s
4126}
4127
4128// SetUpdateTime sets the UpdateTime field's value.
4129func (s *Branch) SetUpdateTime(v time.Time) *Branch {
4130	s.UpdateTime = &v
4131	return s
4132}
4133
4134// The request structure used to create apps in Amplify.
4135type CreateAppInput struct {
4136	_ struct{} `type:"structure"`
4137
4138	// The personal access token for a third-party source control system for an
4139	// Amplify app. The personal access token is used to create a webhook and a
4140	// read-only deploy key. The token is not stored.
4141	AccessToken *string `locationName:"accessToken" min:"1" type:"string" sensitive:"true"`
4142
4143	// The automated branch creation configuration for the Amplify app.
4144	AutoBranchCreationConfig *AutoBranchCreationConfig `locationName:"autoBranchCreationConfig" type:"structure"`
4145
4146	// The automated branch creation glob patterns for the Amplify app.
4147	AutoBranchCreationPatterns []*string `locationName:"autoBranchCreationPatterns" type:"list"`
4148
4149	// The credentials for basic authorization for an Amplify app.
4150	BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
4151
4152	// The build specification (build spec) for an Amplify app.
4153	BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
4154
4155	// The custom rewrite and redirect rules for an Amplify app.
4156	CustomRules []*CustomRule `locationName:"customRules" type:"list"`
4157
4158	// The description for an Amplify app.
4159	Description *string `locationName:"description" type:"string"`
4160
4161	// Enables automated branch creation for the Amplify app.
4162	EnableAutoBranchCreation *bool `locationName:"enableAutoBranchCreation" type:"boolean"`
4163
4164	// Enables basic authorization for an Amplify app. This will apply to all branches
4165	// that are part of this app.
4166	EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"`
4167
4168	// Enables the auto building of branches for an Amplify app.
4169	EnableBranchAutoBuild *bool `locationName:"enableBranchAutoBuild" type:"boolean"`
4170
4171	// Automatically disconnects a branch in the Amplify Console when you delete
4172	// a branch from your Git repository.
4173	EnableBranchAutoDeletion *bool `locationName:"enableBranchAutoDeletion" type:"boolean"`
4174
4175	// The environment variables map for an Amplify app.
4176	EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"`
4177
4178	// The AWS Identity and Access Management (IAM) service role for an Amplify
4179	// app.
4180	IamServiceRoleArn *string `locationName:"iamServiceRoleArn" min:"1" type:"string"`
4181
4182	// The name for the Amplify app.
4183	//
4184	// Name is a required field
4185	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
4186
4187	// The OAuth token for a third-party source control system for an Amplify app.
4188	// The OAuth token is used to create a webhook and a read-only deploy key. The
4189	// OAuth token is not stored.
4190	OauthToken *string `locationName:"oauthToken" type:"string" sensitive:"true"`
4191
4192	// The platform or framework for an Amplify app.
4193	Platform *string `locationName:"platform" type:"string" enum:"Platform"`
4194
4195	// The repository for an Amplify app.
4196	Repository *string `locationName:"repository" type:"string"`
4197
4198	// The tag for an Amplify app.
4199	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
4200}
4201
4202// String returns the string representation
4203func (s CreateAppInput) String() string {
4204	return awsutil.Prettify(s)
4205}
4206
4207// GoString returns the string representation
4208func (s CreateAppInput) GoString() string {
4209	return s.String()
4210}
4211
4212// Validate inspects the fields of the type to determine if they are valid.
4213func (s *CreateAppInput) Validate() error {
4214	invalidParams := request.ErrInvalidParams{Context: "CreateAppInput"}
4215	if s.AccessToken != nil && len(*s.AccessToken) < 1 {
4216		invalidParams.Add(request.NewErrParamMinLen("AccessToken", 1))
4217	}
4218	if s.BuildSpec != nil && len(*s.BuildSpec) < 1 {
4219		invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1))
4220	}
4221	if s.IamServiceRoleArn != nil && len(*s.IamServiceRoleArn) < 1 {
4222		invalidParams.Add(request.NewErrParamMinLen("IamServiceRoleArn", 1))
4223	}
4224	if s.Name == nil {
4225		invalidParams.Add(request.NewErrParamRequired("Name"))
4226	}
4227	if s.Name != nil && len(*s.Name) < 1 {
4228		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
4229	}
4230	if s.Tags != nil && len(s.Tags) < 1 {
4231		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
4232	}
4233	if s.AutoBranchCreationConfig != nil {
4234		if err := s.AutoBranchCreationConfig.Validate(); err != nil {
4235			invalidParams.AddNested("AutoBranchCreationConfig", err.(request.ErrInvalidParams))
4236		}
4237	}
4238	if s.CustomRules != nil {
4239		for i, v := range s.CustomRules {
4240			if v == nil {
4241				continue
4242			}
4243			if err := v.Validate(); err != nil {
4244				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CustomRules", i), err.(request.ErrInvalidParams))
4245			}
4246		}
4247	}
4248
4249	if invalidParams.Len() > 0 {
4250		return invalidParams
4251	}
4252	return nil
4253}
4254
4255// SetAccessToken sets the AccessToken field's value.
4256func (s *CreateAppInput) SetAccessToken(v string) *CreateAppInput {
4257	s.AccessToken = &v
4258	return s
4259}
4260
4261// SetAutoBranchCreationConfig sets the AutoBranchCreationConfig field's value.
4262func (s *CreateAppInput) SetAutoBranchCreationConfig(v *AutoBranchCreationConfig) *CreateAppInput {
4263	s.AutoBranchCreationConfig = v
4264	return s
4265}
4266
4267// SetAutoBranchCreationPatterns sets the AutoBranchCreationPatterns field's value.
4268func (s *CreateAppInput) SetAutoBranchCreationPatterns(v []*string) *CreateAppInput {
4269	s.AutoBranchCreationPatterns = v
4270	return s
4271}
4272
4273// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
4274func (s *CreateAppInput) SetBasicAuthCredentials(v string) *CreateAppInput {
4275	s.BasicAuthCredentials = &v
4276	return s
4277}
4278
4279// SetBuildSpec sets the BuildSpec field's value.
4280func (s *CreateAppInput) SetBuildSpec(v string) *CreateAppInput {
4281	s.BuildSpec = &v
4282	return s
4283}
4284
4285// SetCustomRules sets the CustomRules field's value.
4286func (s *CreateAppInput) SetCustomRules(v []*CustomRule) *CreateAppInput {
4287	s.CustomRules = v
4288	return s
4289}
4290
4291// SetDescription sets the Description field's value.
4292func (s *CreateAppInput) SetDescription(v string) *CreateAppInput {
4293	s.Description = &v
4294	return s
4295}
4296
4297// SetEnableAutoBranchCreation sets the EnableAutoBranchCreation field's value.
4298func (s *CreateAppInput) SetEnableAutoBranchCreation(v bool) *CreateAppInput {
4299	s.EnableAutoBranchCreation = &v
4300	return s
4301}
4302
4303// SetEnableBasicAuth sets the EnableBasicAuth field's value.
4304func (s *CreateAppInput) SetEnableBasicAuth(v bool) *CreateAppInput {
4305	s.EnableBasicAuth = &v
4306	return s
4307}
4308
4309// SetEnableBranchAutoBuild sets the EnableBranchAutoBuild field's value.
4310func (s *CreateAppInput) SetEnableBranchAutoBuild(v bool) *CreateAppInput {
4311	s.EnableBranchAutoBuild = &v
4312	return s
4313}
4314
4315// SetEnableBranchAutoDeletion sets the EnableBranchAutoDeletion field's value.
4316func (s *CreateAppInput) SetEnableBranchAutoDeletion(v bool) *CreateAppInput {
4317	s.EnableBranchAutoDeletion = &v
4318	return s
4319}
4320
4321// SetEnvironmentVariables sets the EnvironmentVariables field's value.
4322func (s *CreateAppInput) SetEnvironmentVariables(v map[string]*string) *CreateAppInput {
4323	s.EnvironmentVariables = v
4324	return s
4325}
4326
4327// SetIamServiceRoleArn sets the IamServiceRoleArn field's value.
4328func (s *CreateAppInput) SetIamServiceRoleArn(v string) *CreateAppInput {
4329	s.IamServiceRoleArn = &v
4330	return s
4331}
4332
4333// SetName sets the Name field's value.
4334func (s *CreateAppInput) SetName(v string) *CreateAppInput {
4335	s.Name = &v
4336	return s
4337}
4338
4339// SetOauthToken sets the OauthToken field's value.
4340func (s *CreateAppInput) SetOauthToken(v string) *CreateAppInput {
4341	s.OauthToken = &v
4342	return s
4343}
4344
4345// SetPlatform sets the Platform field's value.
4346func (s *CreateAppInput) SetPlatform(v string) *CreateAppInput {
4347	s.Platform = &v
4348	return s
4349}
4350
4351// SetRepository sets the Repository field's value.
4352func (s *CreateAppInput) SetRepository(v string) *CreateAppInput {
4353	s.Repository = &v
4354	return s
4355}
4356
4357// SetTags sets the Tags field's value.
4358func (s *CreateAppInput) SetTags(v map[string]*string) *CreateAppInput {
4359	s.Tags = v
4360	return s
4361}
4362
4363type CreateAppOutput struct {
4364	_ struct{} `type:"structure"`
4365
4366	// Represents the different branches of a repository for building, deploying,
4367	// and hosting an Amplify app.
4368	//
4369	// App is a required field
4370	App *App `locationName:"app" type:"structure" required:"true"`
4371}
4372
4373// String returns the string representation
4374func (s CreateAppOutput) String() string {
4375	return awsutil.Prettify(s)
4376}
4377
4378// GoString returns the string representation
4379func (s CreateAppOutput) GoString() string {
4380	return s.String()
4381}
4382
4383// SetApp sets the App field's value.
4384func (s *CreateAppOutput) SetApp(v *App) *CreateAppOutput {
4385	s.App = v
4386	return s
4387}
4388
4389// The request structure for the backend environment create request.
4390type CreateBackendEnvironmentInput struct {
4391	_ struct{} `type:"structure"`
4392
4393	// The unique ID for an Amplify app.
4394	//
4395	// AppId is a required field
4396	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
4397
4398	// The name of deployment artifacts.
4399	DeploymentArtifacts *string `locationName:"deploymentArtifacts" min:"1" type:"string"`
4400
4401	// The name for the backend environment.
4402	//
4403	// EnvironmentName is a required field
4404	EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"`
4405
4406	// The AWS CloudFormation stack name of a backend environment.
4407	StackName *string `locationName:"stackName" min:"1" type:"string"`
4408}
4409
4410// String returns the string representation
4411func (s CreateBackendEnvironmentInput) String() string {
4412	return awsutil.Prettify(s)
4413}
4414
4415// GoString returns the string representation
4416func (s CreateBackendEnvironmentInput) GoString() string {
4417	return s.String()
4418}
4419
4420// Validate inspects the fields of the type to determine if they are valid.
4421func (s *CreateBackendEnvironmentInput) Validate() error {
4422	invalidParams := request.ErrInvalidParams{Context: "CreateBackendEnvironmentInput"}
4423	if s.AppId == nil {
4424		invalidParams.Add(request.NewErrParamRequired("AppId"))
4425	}
4426	if s.AppId != nil && len(*s.AppId) < 1 {
4427		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4428	}
4429	if s.DeploymentArtifacts != nil && len(*s.DeploymentArtifacts) < 1 {
4430		invalidParams.Add(request.NewErrParamMinLen("DeploymentArtifacts", 1))
4431	}
4432	if s.EnvironmentName == nil {
4433		invalidParams.Add(request.NewErrParamRequired("EnvironmentName"))
4434	}
4435	if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 {
4436		invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1))
4437	}
4438	if s.StackName != nil && len(*s.StackName) < 1 {
4439		invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
4440	}
4441
4442	if invalidParams.Len() > 0 {
4443		return invalidParams
4444	}
4445	return nil
4446}
4447
4448// SetAppId sets the AppId field's value.
4449func (s *CreateBackendEnvironmentInput) SetAppId(v string) *CreateBackendEnvironmentInput {
4450	s.AppId = &v
4451	return s
4452}
4453
4454// SetDeploymentArtifacts sets the DeploymentArtifacts field's value.
4455func (s *CreateBackendEnvironmentInput) SetDeploymentArtifacts(v string) *CreateBackendEnvironmentInput {
4456	s.DeploymentArtifacts = &v
4457	return s
4458}
4459
4460// SetEnvironmentName sets the EnvironmentName field's value.
4461func (s *CreateBackendEnvironmentInput) SetEnvironmentName(v string) *CreateBackendEnvironmentInput {
4462	s.EnvironmentName = &v
4463	return s
4464}
4465
4466// SetStackName sets the StackName field's value.
4467func (s *CreateBackendEnvironmentInput) SetStackName(v string) *CreateBackendEnvironmentInput {
4468	s.StackName = &v
4469	return s
4470}
4471
4472// The result structure for the create backend environment request.
4473type CreateBackendEnvironmentOutput struct {
4474	_ struct{} `type:"structure"`
4475
4476	// Describes the backend environment for an Amplify app.
4477	//
4478	// BackendEnvironment is a required field
4479	BackendEnvironment *BackendEnvironment `locationName:"backendEnvironment" type:"structure" required:"true"`
4480}
4481
4482// String returns the string representation
4483func (s CreateBackendEnvironmentOutput) String() string {
4484	return awsutil.Prettify(s)
4485}
4486
4487// GoString returns the string representation
4488func (s CreateBackendEnvironmentOutput) GoString() string {
4489	return s.String()
4490}
4491
4492// SetBackendEnvironment sets the BackendEnvironment field's value.
4493func (s *CreateBackendEnvironmentOutput) SetBackendEnvironment(v *BackendEnvironment) *CreateBackendEnvironmentOutput {
4494	s.BackendEnvironment = v
4495	return s
4496}
4497
4498// The request structure for the create branch request.
4499type CreateBranchInput struct {
4500	_ struct{} `type:"structure"`
4501
4502	// The unique ID for an Amplify app.
4503	//
4504	// AppId is a required field
4505	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
4506
4507	// The Amazon Resource Name (ARN) for a backend environment that is part of
4508	// an Amplify app.
4509	BackendEnvironmentArn *string `locationName:"backendEnvironmentArn" min:"1" type:"string"`
4510
4511	// The basic authorization credentials for the branch.
4512	BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
4513
4514	// The name for the branch.
4515	//
4516	// BranchName is a required field
4517	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
4518
4519	// The build specification (build spec) for the branch.
4520	BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
4521
4522	// The description for the branch.
4523	Description *string `locationName:"description" type:"string"`
4524
4525	// The display name for a branch. This is used as the default domain prefix.
4526	DisplayName *string `locationName:"displayName" type:"string"`
4527
4528	// Enables auto building for the branch.
4529	EnableAutoBuild *bool `locationName:"enableAutoBuild" type:"boolean"`
4530
4531	// Enables basic authorization for the branch.
4532	EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"`
4533
4534	// Enables notifications for the branch.
4535	EnableNotification *bool `locationName:"enableNotification" type:"boolean"`
4536
4537	// Enables pull request preview for this branch.
4538	EnablePullRequestPreview *bool `locationName:"enablePullRequestPreview" type:"boolean"`
4539
4540	// The environment variables for the branch.
4541	EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"`
4542
4543	// The framework for the branch.
4544	Framework *string `locationName:"framework" type:"string"`
4545
4546	// The Amplify environment name for the pull request.
4547	PullRequestEnvironmentName *string `locationName:"pullRequestEnvironmentName" type:"string"`
4548
4549	// Describes the current stage for the branch.
4550	Stage *string `locationName:"stage" type:"string" enum:"Stage"`
4551
4552	// The tag for the branch.
4553	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
4554
4555	// The content Time To Live (TTL) for the website in seconds.
4556	Ttl *string `locationName:"ttl" type:"string"`
4557}
4558
4559// String returns the string representation
4560func (s CreateBranchInput) String() string {
4561	return awsutil.Prettify(s)
4562}
4563
4564// GoString returns the string representation
4565func (s CreateBranchInput) GoString() string {
4566	return s.String()
4567}
4568
4569// Validate inspects the fields of the type to determine if they are valid.
4570func (s *CreateBranchInput) Validate() error {
4571	invalidParams := request.ErrInvalidParams{Context: "CreateBranchInput"}
4572	if s.AppId == nil {
4573		invalidParams.Add(request.NewErrParamRequired("AppId"))
4574	}
4575	if s.AppId != nil && len(*s.AppId) < 1 {
4576		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4577	}
4578	if s.BackendEnvironmentArn != nil && len(*s.BackendEnvironmentArn) < 1 {
4579		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentArn", 1))
4580	}
4581	if s.BranchName == nil {
4582		invalidParams.Add(request.NewErrParamRequired("BranchName"))
4583	}
4584	if s.BranchName != nil && len(*s.BranchName) < 1 {
4585		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
4586	}
4587	if s.BuildSpec != nil && len(*s.BuildSpec) < 1 {
4588		invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1))
4589	}
4590	if s.Tags != nil && len(s.Tags) < 1 {
4591		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
4592	}
4593
4594	if invalidParams.Len() > 0 {
4595		return invalidParams
4596	}
4597	return nil
4598}
4599
4600// SetAppId sets the AppId field's value.
4601func (s *CreateBranchInput) SetAppId(v string) *CreateBranchInput {
4602	s.AppId = &v
4603	return s
4604}
4605
4606// SetBackendEnvironmentArn sets the BackendEnvironmentArn field's value.
4607func (s *CreateBranchInput) SetBackendEnvironmentArn(v string) *CreateBranchInput {
4608	s.BackendEnvironmentArn = &v
4609	return s
4610}
4611
4612// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
4613func (s *CreateBranchInput) SetBasicAuthCredentials(v string) *CreateBranchInput {
4614	s.BasicAuthCredentials = &v
4615	return s
4616}
4617
4618// SetBranchName sets the BranchName field's value.
4619func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput {
4620	s.BranchName = &v
4621	return s
4622}
4623
4624// SetBuildSpec sets the BuildSpec field's value.
4625func (s *CreateBranchInput) SetBuildSpec(v string) *CreateBranchInput {
4626	s.BuildSpec = &v
4627	return s
4628}
4629
4630// SetDescription sets the Description field's value.
4631func (s *CreateBranchInput) SetDescription(v string) *CreateBranchInput {
4632	s.Description = &v
4633	return s
4634}
4635
4636// SetDisplayName sets the DisplayName field's value.
4637func (s *CreateBranchInput) SetDisplayName(v string) *CreateBranchInput {
4638	s.DisplayName = &v
4639	return s
4640}
4641
4642// SetEnableAutoBuild sets the EnableAutoBuild field's value.
4643func (s *CreateBranchInput) SetEnableAutoBuild(v bool) *CreateBranchInput {
4644	s.EnableAutoBuild = &v
4645	return s
4646}
4647
4648// SetEnableBasicAuth sets the EnableBasicAuth field's value.
4649func (s *CreateBranchInput) SetEnableBasicAuth(v bool) *CreateBranchInput {
4650	s.EnableBasicAuth = &v
4651	return s
4652}
4653
4654// SetEnableNotification sets the EnableNotification field's value.
4655func (s *CreateBranchInput) SetEnableNotification(v bool) *CreateBranchInput {
4656	s.EnableNotification = &v
4657	return s
4658}
4659
4660// SetEnablePullRequestPreview sets the EnablePullRequestPreview field's value.
4661func (s *CreateBranchInput) SetEnablePullRequestPreview(v bool) *CreateBranchInput {
4662	s.EnablePullRequestPreview = &v
4663	return s
4664}
4665
4666// SetEnvironmentVariables sets the EnvironmentVariables field's value.
4667func (s *CreateBranchInput) SetEnvironmentVariables(v map[string]*string) *CreateBranchInput {
4668	s.EnvironmentVariables = v
4669	return s
4670}
4671
4672// SetFramework sets the Framework field's value.
4673func (s *CreateBranchInput) SetFramework(v string) *CreateBranchInput {
4674	s.Framework = &v
4675	return s
4676}
4677
4678// SetPullRequestEnvironmentName sets the PullRequestEnvironmentName field's value.
4679func (s *CreateBranchInput) SetPullRequestEnvironmentName(v string) *CreateBranchInput {
4680	s.PullRequestEnvironmentName = &v
4681	return s
4682}
4683
4684// SetStage sets the Stage field's value.
4685func (s *CreateBranchInput) SetStage(v string) *CreateBranchInput {
4686	s.Stage = &v
4687	return s
4688}
4689
4690// SetTags sets the Tags field's value.
4691func (s *CreateBranchInput) SetTags(v map[string]*string) *CreateBranchInput {
4692	s.Tags = v
4693	return s
4694}
4695
4696// SetTtl sets the Ttl field's value.
4697func (s *CreateBranchInput) SetTtl(v string) *CreateBranchInput {
4698	s.Ttl = &v
4699	return s
4700}
4701
4702// The result structure for create branch request.
4703type CreateBranchOutput struct {
4704	_ struct{} `type:"structure"`
4705
4706	// Describes the branch for an Amplify app, which maps to a third-party repository
4707	// branch.
4708	//
4709	// Branch is a required field
4710	Branch *Branch `locationName:"branch" type:"structure" required:"true"`
4711}
4712
4713// String returns the string representation
4714func (s CreateBranchOutput) String() string {
4715	return awsutil.Prettify(s)
4716}
4717
4718// GoString returns the string representation
4719func (s CreateBranchOutput) GoString() string {
4720	return s.String()
4721}
4722
4723// SetBranch sets the Branch field's value.
4724func (s *CreateBranchOutput) SetBranch(v *Branch) *CreateBranchOutput {
4725	s.Branch = v
4726	return s
4727}
4728
4729// The request structure for the create a new deployment request.
4730type CreateDeploymentInput struct {
4731	_ struct{} `type:"structure"`
4732
4733	// The unique ID for an Amplify app.
4734	//
4735	// AppId is a required field
4736	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
4737
4738	// The name for the branch, for the job.
4739	//
4740	// BranchName is a required field
4741	BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
4742
4743	// An optional file map that contains the file name as the key and the file
4744	// content md5 hash as the value. If this argument is provided, the service
4745	// will generate a unique upload URL per file. Otherwise, the service will only
4746	// generate a single upload URL for the zipped files.
4747	FileMap map[string]*string `locationName:"fileMap" type:"map"`
4748}
4749
4750// String returns the string representation
4751func (s CreateDeploymentInput) String() string {
4752	return awsutil.Prettify(s)
4753}
4754
4755// GoString returns the string representation
4756func (s CreateDeploymentInput) GoString() string {
4757	return s.String()
4758}
4759
4760// Validate inspects the fields of the type to determine if they are valid.
4761func (s *CreateDeploymentInput) Validate() error {
4762	invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"}
4763	if s.AppId == nil {
4764		invalidParams.Add(request.NewErrParamRequired("AppId"))
4765	}
4766	if s.AppId != nil && len(*s.AppId) < 1 {
4767		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4768	}
4769	if s.BranchName == nil {
4770		invalidParams.Add(request.NewErrParamRequired("BranchName"))
4771	}
4772	if s.BranchName != nil && len(*s.BranchName) < 1 {
4773		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
4774	}
4775
4776	if invalidParams.Len() > 0 {
4777		return invalidParams
4778	}
4779	return nil
4780}
4781
4782// SetAppId sets the AppId field's value.
4783func (s *CreateDeploymentInput) SetAppId(v string) *CreateDeploymentInput {
4784	s.AppId = &v
4785	return s
4786}
4787
4788// SetBranchName sets the BranchName field's value.
4789func (s *CreateDeploymentInput) SetBranchName(v string) *CreateDeploymentInput {
4790	s.BranchName = &v
4791	return s
4792}
4793
4794// SetFileMap sets the FileMap field's value.
4795func (s *CreateDeploymentInput) SetFileMap(v map[string]*string) *CreateDeploymentInput {
4796	s.FileMap = v
4797	return s
4798}
4799
4800// The result structure for the create a new deployment request.
4801type CreateDeploymentOutput struct {
4802	_ struct{} `type:"structure"`
4803
4804	// When the fileMap argument is provided in the request, fileUploadUrls will
4805	// contain a map of file names to upload URLs.
4806	//
4807	// FileUploadUrls is a required field
4808	FileUploadUrls map[string]*string `locationName:"fileUploadUrls" type:"map" required:"true"`
4809
4810	// The job ID for this deployment. will supply to start deployment api.
4811	JobId *string `locationName:"jobId" type:"string"`
4812
4813	// When the fileMap argument is not provided in the request, this zipUploadUrl
4814	// is returned.
4815	//
4816	// ZipUploadUrl is a required field
4817	ZipUploadUrl *string `locationName:"zipUploadUrl" type:"string" required:"true"`
4818}
4819
4820// String returns the string representation
4821func (s CreateDeploymentOutput) String() string {
4822	return awsutil.Prettify(s)
4823}
4824
4825// GoString returns the string representation
4826func (s CreateDeploymentOutput) GoString() string {
4827	return s.String()
4828}
4829
4830// SetFileUploadUrls sets the FileUploadUrls field's value.
4831func (s *CreateDeploymentOutput) SetFileUploadUrls(v map[string]*string) *CreateDeploymentOutput {
4832	s.FileUploadUrls = v
4833	return s
4834}
4835
4836// SetJobId sets the JobId field's value.
4837func (s *CreateDeploymentOutput) SetJobId(v string) *CreateDeploymentOutput {
4838	s.JobId = &v
4839	return s
4840}
4841
4842// SetZipUploadUrl sets the ZipUploadUrl field's value.
4843func (s *CreateDeploymentOutput) SetZipUploadUrl(v string) *CreateDeploymentOutput {
4844	s.ZipUploadUrl = &v
4845	return s
4846}
4847
4848// The request structure for the create domain association request.
4849type CreateDomainAssociationInput struct {
4850	_ struct{} `type:"structure"`
4851
4852	// The unique ID for an Amplify app.
4853	//
4854	// AppId is a required field
4855	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
4856
4857	// Sets the branch patterns for automatic subdomain creation.
4858	AutoSubDomainCreationPatterns []*string `locationName:"autoSubDomainCreationPatterns" type:"list"`
4859
4860	// The required AWS Identity and Access Management (IAM) service role for the
4861	// Amazon Resource Name (ARN) for automatically creating subdomains.
4862	AutoSubDomainIAMRole *string `locationName:"autoSubDomainIAMRole" type:"string"`
4863
4864	// The domain name for the domain association.
4865	//
4866	// DomainName is a required field
4867	DomainName *string `locationName:"domainName" type:"string" required:"true"`
4868
4869	// Enables the automated creation of subdomains for branches.
4870	EnableAutoSubDomain *bool `locationName:"enableAutoSubDomain" type:"boolean"`
4871
4872	// The setting for the subdomain.
4873	//
4874	// SubDomainSettings is a required field
4875	SubDomainSettings []*SubDomainSetting `locationName:"subDomainSettings" type:"list" required:"true"`
4876}
4877
4878// String returns the string representation
4879func (s CreateDomainAssociationInput) String() string {
4880	return awsutil.Prettify(s)
4881}
4882
4883// GoString returns the string representation
4884func (s CreateDomainAssociationInput) GoString() string {
4885	return s.String()
4886}
4887
4888// Validate inspects the fields of the type to determine if they are valid.
4889func (s *CreateDomainAssociationInput) Validate() error {
4890	invalidParams := request.ErrInvalidParams{Context: "CreateDomainAssociationInput"}
4891	if s.AppId == nil {
4892		invalidParams.Add(request.NewErrParamRequired("AppId"))
4893	}
4894	if s.AppId != nil && len(*s.AppId) < 1 {
4895		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4896	}
4897	if s.DomainName == nil {
4898		invalidParams.Add(request.NewErrParamRequired("DomainName"))
4899	}
4900	if s.SubDomainSettings == nil {
4901		invalidParams.Add(request.NewErrParamRequired("SubDomainSettings"))
4902	}
4903	if s.SubDomainSettings != nil {
4904		for i, v := range s.SubDomainSettings {
4905			if v == nil {
4906				continue
4907			}
4908			if err := v.Validate(); err != nil {
4909				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SubDomainSettings", i), err.(request.ErrInvalidParams))
4910			}
4911		}
4912	}
4913
4914	if invalidParams.Len() > 0 {
4915		return invalidParams
4916	}
4917	return nil
4918}
4919
4920// SetAppId sets the AppId field's value.
4921func (s *CreateDomainAssociationInput) SetAppId(v string) *CreateDomainAssociationInput {
4922	s.AppId = &v
4923	return s
4924}
4925
4926// SetAutoSubDomainCreationPatterns sets the AutoSubDomainCreationPatterns field's value.
4927func (s *CreateDomainAssociationInput) SetAutoSubDomainCreationPatterns(v []*string) *CreateDomainAssociationInput {
4928	s.AutoSubDomainCreationPatterns = v
4929	return s
4930}
4931
4932// SetAutoSubDomainIAMRole sets the AutoSubDomainIAMRole field's value.
4933func (s *CreateDomainAssociationInput) SetAutoSubDomainIAMRole(v string) *CreateDomainAssociationInput {
4934	s.AutoSubDomainIAMRole = &v
4935	return s
4936}
4937
4938// SetDomainName sets the DomainName field's value.
4939func (s *CreateDomainAssociationInput) SetDomainName(v string) *CreateDomainAssociationInput {
4940	s.DomainName = &v
4941	return s
4942}
4943
4944// SetEnableAutoSubDomain sets the EnableAutoSubDomain field's value.
4945func (s *CreateDomainAssociationInput) SetEnableAutoSubDomain(v bool) *CreateDomainAssociationInput {
4946	s.EnableAutoSubDomain = &v
4947	return s
4948}
4949
4950// SetSubDomainSettings sets the SubDomainSettings field's value.
4951func (s *CreateDomainAssociationInput) SetSubDomainSettings(v []*SubDomainSetting) *CreateDomainAssociationInput {
4952	s.SubDomainSettings = v
4953	return s
4954}
4955
4956// The result structure for the create domain association request.
4957type CreateDomainAssociationOutput struct {
4958	_ struct{} `type:"structure"`
4959
4960	// Describes the structure of a domain association, which associates a custom
4961	// domain with an Amplify app.
4962	//
4963	// DomainAssociation is a required field
4964	DomainAssociation *DomainAssociation `locationName:"domainAssociation" type:"structure" required:"true"`
4965}
4966
4967// String returns the string representation
4968func (s CreateDomainAssociationOutput) String() string {
4969	return awsutil.Prettify(s)
4970}
4971
4972// GoString returns the string representation
4973func (s CreateDomainAssociationOutput) GoString() string {
4974	return s.String()
4975}
4976
4977// SetDomainAssociation sets the DomainAssociation field's value.
4978func (s *CreateDomainAssociationOutput) SetDomainAssociation(v *DomainAssociation) *CreateDomainAssociationOutput {
4979	s.DomainAssociation = v
4980	return s
4981}
4982
4983// The request structure for the create webhook request.
4984type CreateWebhookInput struct {
4985	_ struct{} `type:"structure"`
4986
4987	// The unique ID for an Amplify app.
4988	//
4989	// AppId is a required field
4990	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
4991
4992	// The name for a branch that is part of an Amplify app.
4993	//
4994	// BranchName is a required field
4995	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
4996
4997	// The description for a webhook.
4998	Description *string `locationName:"description" type:"string"`
4999}
5000
5001// String returns the string representation
5002func (s CreateWebhookInput) String() string {
5003	return awsutil.Prettify(s)
5004}
5005
5006// GoString returns the string representation
5007func (s CreateWebhookInput) GoString() string {
5008	return s.String()
5009}
5010
5011// Validate inspects the fields of the type to determine if they are valid.
5012func (s *CreateWebhookInput) Validate() error {
5013	invalidParams := request.ErrInvalidParams{Context: "CreateWebhookInput"}
5014	if s.AppId == nil {
5015		invalidParams.Add(request.NewErrParamRequired("AppId"))
5016	}
5017	if s.AppId != nil && len(*s.AppId) < 1 {
5018		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5019	}
5020	if s.BranchName == nil {
5021		invalidParams.Add(request.NewErrParamRequired("BranchName"))
5022	}
5023	if s.BranchName != nil && len(*s.BranchName) < 1 {
5024		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
5025	}
5026
5027	if invalidParams.Len() > 0 {
5028		return invalidParams
5029	}
5030	return nil
5031}
5032
5033// SetAppId sets the AppId field's value.
5034func (s *CreateWebhookInput) SetAppId(v string) *CreateWebhookInput {
5035	s.AppId = &v
5036	return s
5037}
5038
5039// SetBranchName sets the BranchName field's value.
5040func (s *CreateWebhookInput) SetBranchName(v string) *CreateWebhookInput {
5041	s.BranchName = &v
5042	return s
5043}
5044
5045// SetDescription sets the Description field's value.
5046func (s *CreateWebhookInput) SetDescription(v string) *CreateWebhookInput {
5047	s.Description = &v
5048	return s
5049}
5050
5051// The result structure for the create webhook request.
5052type CreateWebhookOutput struct {
5053	_ struct{} `type:"structure"`
5054
5055	// Describes a webhook that connects repository events to an Amplify app.
5056	//
5057	// Webhook is a required field
5058	Webhook *Webhook `locationName:"webhook" type:"structure" required:"true"`
5059}
5060
5061// String returns the string representation
5062func (s CreateWebhookOutput) String() string {
5063	return awsutil.Prettify(s)
5064}
5065
5066// GoString returns the string representation
5067func (s CreateWebhookOutput) GoString() string {
5068	return s.String()
5069}
5070
5071// SetWebhook sets the Webhook field's value.
5072func (s *CreateWebhookOutput) SetWebhook(v *Webhook) *CreateWebhookOutput {
5073	s.Webhook = v
5074	return s
5075}
5076
5077// Describes a custom rewrite or redirect rule.
5078type CustomRule struct {
5079	_ struct{} `type:"structure"`
5080
5081	// The condition for a URL rewrite or redirect rule, such as a country code.
5082	Condition *string `locationName:"condition" min:"1" type:"string"`
5083
5084	// The source pattern for a URL rewrite or redirect rule.
5085	//
5086	// Source is a required field
5087	Source *string `locationName:"source" min:"1" type:"string" required:"true"`
5088
5089	// The status code for a URL rewrite or redirect rule.
5090	Status *string `locationName:"status" min:"3" type:"string"`
5091
5092	// The target pattern for a URL rewrite or redirect rule.
5093	//
5094	// Target is a required field
5095	Target *string `locationName:"target" min:"1" type:"string" required:"true"`
5096}
5097
5098// String returns the string representation
5099func (s CustomRule) String() string {
5100	return awsutil.Prettify(s)
5101}
5102
5103// GoString returns the string representation
5104func (s CustomRule) GoString() string {
5105	return s.String()
5106}
5107
5108// Validate inspects the fields of the type to determine if they are valid.
5109func (s *CustomRule) Validate() error {
5110	invalidParams := request.ErrInvalidParams{Context: "CustomRule"}
5111	if s.Condition != nil && len(*s.Condition) < 1 {
5112		invalidParams.Add(request.NewErrParamMinLen("Condition", 1))
5113	}
5114	if s.Source == nil {
5115		invalidParams.Add(request.NewErrParamRequired("Source"))
5116	}
5117	if s.Source != nil && len(*s.Source) < 1 {
5118		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
5119	}
5120	if s.Status != nil && len(*s.Status) < 3 {
5121		invalidParams.Add(request.NewErrParamMinLen("Status", 3))
5122	}
5123	if s.Target == nil {
5124		invalidParams.Add(request.NewErrParamRequired("Target"))
5125	}
5126	if s.Target != nil && len(*s.Target) < 1 {
5127		invalidParams.Add(request.NewErrParamMinLen("Target", 1))
5128	}
5129
5130	if invalidParams.Len() > 0 {
5131		return invalidParams
5132	}
5133	return nil
5134}
5135
5136// SetCondition sets the Condition field's value.
5137func (s *CustomRule) SetCondition(v string) *CustomRule {
5138	s.Condition = &v
5139	return s
5140}
5141
5142// SetSource sets the Source field's value.
5143func (s *CustomRule) SetSource(v string) *CustomRule {
5144	s.Source = &v
5145	return s
5146}
5147
5148// SetStatus sets the Status field's value.
5149func (s *CustomRule) SetStatus(v string) *CustomRule {
5150	s.Status = &v
5151	return s
5152}
5153
5154// SetTarget sets the Target field's value.
5155func (s *CustomRule) SetTarget(v string) *CustomRule {
5156	s.Target = &v
5157	return s
5158}
5159
5160// Describes the request structure for the delete app request.
5161type DeleteAppInput struct {
5162	_ struct{} `type:"structure"`
5163
5164	// The unique ID for an Amplify app.
5165	//
5166	// AppId is a required field
5167	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
5168}
5169
5170// String returns the string representation
5171func (s DeleteAppInput) String() string {
5172	return awsutil.Prettify(s)
5173}
5174
5175// GoString returns the string representation
5176func (s DeleteAppInput) GoString() string {
5177	return s.String()
5178}
5179
5180// Validate inspects the fields of the type to determine if they are valid.
5181func (s *DeleteAppInput) Validate() error {
5182	invalidParams := request.ErrInvalidParams{Context: "DeleteAppInput"}
5183	if s.AppId == nil {
5184		invalidParams.Add(request.NewErrParamRequired("AppId"))
5185	}
5186	if s.AppId != nil && len(*s.AppId) < 1 {
5187		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5188	}
5189
5190	if invalidParams.Len() > 0 {
5191		return invalidParams
5192	}
5193	return nil
5194}
5195
5196// SetAppId sets the AppId field's value.
5197func (s *DeleteAppInput) SetAppId(v string) *DeleteAppInput {
5198	s.AppId = &v
5199	return s
5200}
5201
5202// The result structure for the delete app request.
5203type DeleteAppOutput struct {
5204	_ struct{} `type:"structure"`
5205
5206	// Represents the different branches of a repository for building, deploying,
5207	// and hosting an Amplify app.
5208	//
5209	// App is a required field
5210	App *App `locationName:"app" type:"structure" required:"true"`
5211}
5212
5213// String returns the string representation
5214func (s DeleteAppOutput) String() string {
5215	return awsutil.Prettify(s)
5216}
5217
5218// GoString returns the string representation
5219func (s DeleteAppOutput) GoString() string {
5220	return s.String()
5221}
5222
5223// SetApp sets the App field's value.
5224func (s *DeleteAppOutput) SetApp(v *App) *DeleteAppOutput {
5225	s.App = v
5226	return s
5227}
5228
5229// The request structure for the delete backend environment request.
5230type DeleteBackendEnvironmentInput struct {
5231	_ struct{} `type:"structure"`
5232
5233	// The unique ID of an Amplify app.
5234	//
5235	// AppId is a required field
5236	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
5237
5238	// The name of a backend environment of an Amplify app.
5239	//
5240	// EnvironmentName is a required field
5241	EnvironmentName *string `location:"uri" locationName:"environmentName" min:"1" type:"string" required:"true"`
5242}
5243
5244// String returns the string representation
5245func (s DeleteBackendEnvironmentInput) String() string {
5246	return awsutil.Prettify(s)
5247}
5248
5249// GoString returns the string representation
5250func (s DeleteBackendEnvironmentInput) GoString() string {
5251	return s.String()
5252}
5253
5254// Validate inspects the fields of the type to determine if they are valid.
5255func (s *DeleteBackendEnvironmentInput) Validate() error {
5256	invalidParams := request.ErrInvalidParams{Context: "DeleteBackendEnvironmentInput"}
5257	if s.AppId == nil {
5258		invalidParams.Add(request.NewErrParamRequired("AppId"))
5259	}
5260	if s.AppId != nil && len(*s.AppId) < 1 {
5261		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5262	}
5263	if s.EnvironmentName == nil {
5264		invalidParams.Add(request.NewErrParamRequired("EnvironmentName"))
5265	}
5266	if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 {
5267		invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1))
5268	}
5269
5270	if invalidParams.Len() > 0 {
5271		return invalidParams
5272	}
5273	return nil
5274}
5275
5276// SetAppId sets the AppId field's value.
5277func (s *DeleteBackendEnvironmentInput) SetAppId(v string) *DeleteBackendEnvironmentInput {
5278	s.AppId = &v
5279	return s
5280}
5281
5282// SetEnvironmentName sets the EnvironmentName field's value.
5283func (s *DeleteBackendEnvironmentInput) SetEnvironmentName(v string) *DeleteBackendEnvironmentInput {
5284	s.EnvironmentName = &v
5285	return s
5286}
5287
5288// The result structure of the delete backend environment result.
5289type DeleteBackendEnvironmentOutput struct {
5290	_ struct{} `type:"structure"`
5291
5292	// Describes the backend environment for an Amplify app.
5293	//
5294	// BackendEnvironment is a required field
5295	BackendEnvironment *BackendEnvironment `locationName:"backendEnvironment" type:"structure" required:"true"`
5296}
5297
5298// String returns the string representation
5299func (s DeleteBackendEnvironmentOutput) String() string {
5300	return awsutil.Prettify(s)
5301}
5302
5303// GoString returns the string representation
5304func (s DeleteBackendEnvironmentOutput) GoString() string {
5305	return s.String()
5306}
5307
5308// SetBackendEnvironment sets the BackendEnvironment field's value.
5309func (s *DeleteBackendEnvironmentOutput) SetBackendEnvironment(v *BackendEnvironment) *DeleteBackendEnvironmentOutput {
5310	s.BackendEnvironment = v
5311	return s
5312}
5313
5314// The request structure for the delete branch request.
5315type DeleteBranchInput struct {
5316	_ struct{} `type:"structure"`
5317
5318	// The unique ID for an Amplify app.
5319	//
5320	// AppId is a required field
5321	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
5322
5323	// The name for the branch.
5324	//
5325	// BranchName is a required field
5326	BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
5327}
5328
5329// String returns the string representation
5330func (s DeleteBranchInput) String() string {
5331	return awsutil.Prettify(s)
5332}
5333
5334// GoString returns the string representation
5335func (s DeleteBranchInput) GoString() string {
5336	return s.String()
5337}
5338
5339// Validate inspects the fields of the type to determine if they are valid.
5340func (s *DeleteBranchInput) Validate() error {
5341	invalidParams := request.ErrInvalidParams{Context: "DeleteBranchInput"}
5342	if s.AppId == nil {
5343		invalidParams.Add(request.NewErrParamRequired("AppId"))
5344	}
5345	if s.AppId != nil && len(*s.AppId) < 1 {
5346		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5347	}
5348	if s.BranchName == nil {
5349		invalidParams.Add(request.NewErrParamRequired("BranchName"))
5350	}
5351	if s.BranchName != nil && len(*s.BranchName) < 1 {
5352		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
5353	}
5354
5355	if invalidParams.Len() > 0 {
5356		return invalidParams
5357	}
5358	return nil
5359}
5360
5361// SetAppId sets the AppId field's value.
5362func (s *DeleteBranchInput) SetAppId(v string) *DeleteBranchInput {
5363	s.AppId = &v
5364	return s
5365}
5366
5367// SetBranchName sets the BranchName field's value.
5368func (s *DeleteBranchInput) SetBranchName(v string) *DeleteBranchInput {
5369	s.BranchName = &v
5370	return s
5371}
5372
5373// The result structure for the delete branch request.
5374type DeleteBranchOutput struct {
5375	_ struct{} `type:"structure"`
5376
5377	// The branch for an Amplify app, which maps to a third-party repository branch.
5378	//
5379	// Branch is a required field
5380	Branch *Branch `locationName:"branch" type:"structure" required:"true"`
5381}
5382
5383// String returns the string representation
5384func (s DeleteBranchOutput) String() string {
5385	return awsutil.Prettify(s)
5386}
5387
5388// GoString returns the string representation
5389func (s DeleteBranchOutput) GoString() string {
5390	return s.String()
5391}
5392
5393// SetBranch sets the Branch field's value.
5394func (s *DeleteBranchOutput) SetBranch(v *Branch) *DeleteBranchOutput {
5395	s.Branch = v
5396	return s
5397}
5398
5399// The request structure for the delete domain association request.
5400type DeleteDomainAssociationInput struct {
5401	_ struct{} `type:"structure"`
5402
5403	// The unique id for an Amplify app.
5404	//
5405	// AppId is a required field
5406	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
5407
5408	// The name of the domain.
5409	//
5410	// DomainName is a required field
5411	DomainName *string `location:"uri" locationName:"domainName" type:"string" required:"true"`
5412}
5413
5414// String returns the string representation
5415func (s DeleteDomainAssociationInput) String() string {
5416	return awsutil.Prettify(s)
5417}
5418
5419// GoString returns the string representation
5420func (s DeleteDomainAssociationInput) GoString() string {
5421	return s.String()
5422}
5423
5424// Validate inspects the fields of the type to determine if they are valid.
5425func (s *DeleteDomainAssociationInput) Validate() error {
5426	invalidParams := request.ErrInvalidParams{Context: "DeleteDomainAssociationInput"}
5427	if s.AppId == nil {
5428		invalidParams.Add(request.NewErrParamRequired("AppId"))
5429	}
5430	if s.AppId != nil && len(*s.AppId) < 1 {
5431		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5432	}
5433	if s.DomainName == nil {
5434		invalidParams.Add(request.NewErrParamRequired("DomainName"))
5435	}
5436	if s.DomainName != nil && len(*s.DomainName) < 1 {
5437		invalidParams.Add(request.NewErrParamMinLen("DomainName", 1))
5438	}
5439
5440	if invalidParams.Len() > 0 {
5441		return invalidParams
5442	}
5443	return nil
5444}
5445
5446// SetAppId sets the AppId field's value.
5447func (s *DeleteDomainAssociationInput) SetAppId(v string) *DeleteDomainAssociationInput {
5448	s.AppId = &v
5449	return s
5450}
5451
5452// SetDomainName sets the DomainName field's value.
5453func (s *DeleteDomainAssociationInput) SetDomainName(v string) *DeleteDomainAssociationInput {
5454	s.DomainName = &v
5455	return s
5456}
5457
5458type DeleteDomainAssociationOutput struct {
5459	_ struct{} `type:"structure"`
5460
5461	// Describes a domain association that associates a custom domain with an Amplify
5462	// app.
5463	//
5464	// DomainAssociation is a required field
5465	DomainAssociation *DomainAssociation `locationName:"domainAssociation" type:"structure" required:"true"`
5466}
5467
5468// String returns the string representation
5469func (s DeleteDomainAssociationOutput) String() string {
5470	return awsutil.Prettify(s)
5471}
5472
5473// GoString returns the string representation
5474func (s DeleteDomainAssociationOutput) GoString() string {
5475	return s.String()
5476}
5477
5478// SetDomainAssociation sets the DomainAssociation field's value.
5479func (s *DeleteDomainAssociationOutput) SetDomainAssociation(v *DomainAssociation) *DeleteDomainAssociationOutput {
5480	s.DomainAssociation = v
5481	return s
5482}
5483
5484// The request structure for the delete job request.
5485type DeleteJobInput struct {
5486	_ struct{} `type:"structure"`
5487
5488	// The unique ID for an Amplify app.
5489	//
5490	// AppId is a required field
5491	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
5492
5493	// The name for the branch, for the job.
5494	//
5495	// BranchName is a required field
5496	BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
5497
5498	// The unique ID for the job.
5499	//
5500	// JobId is a required field
5501	JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
5502}
5503
5504// String returns the string representation
5505func (s DeleteJobInput) String() string {
5506	return awsutil.Prettify(s)
5507}
5508
5509// GoString returns the string representation
5510func (s DeleteJobInput) GoString() string {
5511	return s.String()
5512}
5513
5514// Validate inspects the fields of the type to determine if they are valid.
5515func (s *DeleteJobInput) Validate() error {
5516	invalidParams := request.ErrInvalidParams{Context: "DeleteJobInput"}
5517	if s.AppId == nil {
5518		invalidParams.Add(request.NewErrParamRequired("AppId"))
5519	}
5520	if s.AppId != nil && len(*s.AppId) < 1 {
5521		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5522	}
5523	if s.BranchName == nil {
5524		invalidParams.Add(request.NewErrParamRequired("BranchName"))
5525	}
5526	if s.BranchName != nil && len(*s.BranchName) < 1 {
5527		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
5528	}
5529	if s.JobId == nil {
5530		invalidParams.Add(request.NewErrParamRequired("JobId"))
5531	}
5532	if s.JobId != nil && len(*s.JobId) < 1 {
5533		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
5534	}
5535
5536	if invalidParams.Len() > 0 {
5537		return invalidParams
5538	}
5539	return nil
5540}
5541
5542// SetAppId sets the AppId field's value.
5543func (s *DeleteJobInput) SetAppId(v string) *DeleteJobInput {
5544	s.AppId = &v
5545	return s
5546}
5547
5548// SetBranchName sets the BranchName field's value.
5549func (s *DeleteJobInput) SetBranchName(v string) *DeleteJobInput {
5550	s.BranchName = &v
5551	return s
5552}
5553
5554// SetJobId sets the JobId field's value.
5555func (s *DeleteJobInput) SetJobId(v string) *DeleteJobInput {
5556	s.JobId = &v
5557	return s
5558}
5559
5560// The result structure for the delete job request.
5561type DeleteJobOutput struct {
5562	_ struct{} `type:"structure"`
5563
5564	// Describes the summary for an execution job for an Amplify app.
5565	//
5566	// JobSummary is a required field
5567	JobSummary *JobSummary `locationName:"jobSummary" type:"structure" required:"true"`
5568}
5569
5570// String returns the string representation
5571func (s DeleteJobOutput) String() string {
5572	return awsutil.Prettify(s)
5573}
5574
5575// GoString returns the string representation
5576func (s DeleteJobOutput) GoString() string {
5577	return s.String()
5578}
5579
5580// SetJobSummary sets the JobSummary field's value.
5581func (s *DeleteJobOutput) SetJobSummary(v *JobSummary) *DeleteJobOutput {
5582	s.JobSummary = v
5583	return s
5584}
5585
5586// The request structure for the delete webhook request.
5587type DeleteWebhookInput struct {
5588	_ struct{} `type:"structure"`
5589
5590	// The unique ID for a webhook.
5591	//
5592	// WebhookId is a required field
5593	WebhookId *string `location:"uri" locationName:"webhookId" type:"string" required:"true"`
5594}
5595
5596// String returns the string representation
5597func (s DeleteWebhookInput) String() string {
5598	return awsutil.Prettify(s)
5599}
5600
5601// GoString returns the string representation
5602func (s DeleteWebhookInput) GoString() string {
5603	return s.String()
5604}
5605
5606// Validate inspects the fields of the type to determine if they are valid.
5607func (s *DeleteWebhookInput) Validate() error {
5608	invalidParams := request.ErrInvalidParams{Context: "DeleteWebhookInput"}
5609	if s.WebhookId == nil {
5610		invalidParams.Add(request.NewErrParamRequired("WebhookId"))
5611	}
5612	if s.WebhookId != nil && len(*s.WebhookId) < 1 {
5613		invalidParams.Add(request.NewErrParamMinLen("WebhookId", 1))
5614	}
5615
5616	if invalidParams.Len() > 0 {
5617		return invalidParams
5618	}
5619	return nil
5620}
5621
5622// SetWebhookId sets the WebhookId field's value.
5623func (s *DeleteWebhookInput) SetWebhookId(v string) *DeleteWebhookInput {
5624	s.WebhookId = &v
5625	return s
5626}
5627
5628// The result structure for the delete webhook request.
5629type DeleteWebhookOutput struct {
5630	_ struct{} `type:"structure"`
5631
5632	// Describes a webhook that connects repository events to an Amplify app.
5633	//
5634	// Webhook is a required field
5635	Webhook *Webhook `locationName:"webhook" type:"structure" required:"true"`
5636}
5637
5638// String returns the string representation
5639func (s DeleteWebhookOutput) String() string {
5640	return awsutil.Prettify(s)
5641}
5642
5643// GoString returns the string representation
5644func (s DeleteWebhookOutput) GoString() string {
5645	return s.String()
5646}
5647
5648// SetWebhook sets the Webhook field's value.
5649func (s *DeleteWebhookOutput) SetWebhook(v *Webhook) *DeleteWebhookOutput {
5650	s.Webhook = v
5651	return s
5652}
5653
5654// An operation failed because a dependent service threw an exception.
5655type DependentServiceFailureException struct {
5656	_            struct{}                  `type:"structure"`
5657	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
5658
5659	Message_ *string `locationName:"message" type:"string"`
5660}
5661
5662// String returns the string representation
5663func (s DependentServiceFailureException) String() string {
5664	return awsutil.Prettify(s)
5665}
5666
5667// GoString returns the string representation
5668func (s DependentServiceFailureException) GoString() string {
5669	return s.String()
5670}
5671
5672func newErrorDependentServiceFailureException(v protocol.ResponseMetadata) error {
5673	return &DependentServiceFailureException{
5674		RespMetadata: v,
5675	}
5676}
5677
5678// Code returns the exception type name.
5679func (s *DependentServiceFailureException) Code() string {
5680	return "DependentServiceFailureException"
5681}
5682
5683// Message returns the exception's message.
5684func (s *DependentServiceFailureException) Message() string {
5685	if s.Message_ != nil {
5686		return *s.Message_
5687	}
5688	return ""
5689}
5690
5691// OrigErr always returns nil, satisfies awserr.Error interface.
5692func (s *DependentServiceFailureException) OrigErr() error {
5693	return nil
5694}
5695
5696func (s *DependentServiceFailureException) Error() string {
5697	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
5698}
5699
5700// Status code returns the HTTP status code for the request's response error.
5701func (s *DependentServiceFailureException) StatusCode() int {
5702	return s.RespMetadata.StatusCode
5703}
5704
5705// RequestID returns the service's response RequestID for request.
5706func (s *DependentServiceFailureException) RequestID() string {
5707	return s.RespMetadata.RequestID
5708}
5709
5710// Describes a domain association that associates a custom domain with an Amplify
5711// app.
5712type DomainAssociation struct {
5713	_ struct{} `type:"structure"`
5714
5715	// Sets branch patterns for automatic subdomain creation.
5716	AutoSubDomainCreationPatterns []*string `locationName:"autoSubDomainCreationPatterns" type:"list"`
5717
5718	// The required AWS Identity and Access Management (IAM) service role for the
5719	// Amazon Resource Name (ARN) for automatically creating subdomains.
5720	AutoSubDomainIAMRole *string `locationName:"autoSubDomainIAMRole" type:"string"`
5721
5722	// The DNS record for certificate verification.
5723	CertificateVerificationDNSRecord *string `locationName:"certificateVerificationDNSRecord" type:"string"`
5724
5725	// The Amazon Resource Name (ARN) for the domain association.
5726	//
5727	// DomainAssociationArn is a required field
5728	DomainAssociationArn *string `locationName:"domainAssociationArn" type:"string" required:"true"`
5729
5730	// The name of the domain.
5731	//
5732	// DomainName is a required field
5733	DomainName *string `locationName:"domainName" type:"string" required:"true"`
5734
5735	// The current status of the domain association.
5736	//
5737	// DomainStatus is a required field
5738	DomainStatus *string `locationName:"domainStatus" type:"string" required:"true" enum:"DomainStatus"`
5739
5740	// Enables the automated creation of subdomains for branches.
5741	//
5742	// EnableAutoSubDomain is a required field
5743	EnableAutoSubDomain *bool `locationName:"enableAutoSubDomain" type:"boolean" required:"true"`
5744
5745	// The reason for the current status of the domain association.
5746	//
5747	// StatusReason is a required field
5748	StatusReason *string `locationName:"statusReason" type:"string" required:"true"`
5749
5750	// The subdomains for the domain association.
5751	//
5752	// SubDomains is a required field
5753	SubDomains []*SubDomain `locationName:"subDomains" type:"list" required:"true"`
5754}
5755
5756// String returns the string representation
5757func (s DomainAssociation) String() string {
5758	return awsutil.Prettify(s)
5759}
5760
5761// GoString returns the string representation
5762func (s DomainAssociation) GoString() string {
5763	return s.String()
5764}
5765
5766// SetAutoSubDomainCreationPatterns sets the AutoSubDomainCreationPatterns field's value.
5767func (s *DomainAssociation) SetAutoSubDomainCreationPatterns(v []*string) *DomainAssociation {
5768	s.AutoSubDomainCreationPatterns = v
5769	return s
5770}
5771
5772// SetAutoSubDomainIAMRole sets the AutoSubDomainIAMRole field's value.
5773func (s *DomainAssociation) SetAutoSubDomainIAMRole(v string) *DomainAssociation {
5774	s.AutoSubDomainIAMRole = &v
5775	return s
5776}
5777
5778// SetCertificateVerificationDNSRecord sets the CertificateVerificationDNSRecord field's value.
5779func (s *DomainAssociation) SetCertificateVerificationDNSRecord(v string) *DomainAssociation {
5780	s.CertificateVerificationDNSRecord = &v
5781	return s
5782}
5783
5784// SetDomainAssociationArn sets the DomainAssociationArn field's value.
5785func (s *DomainAssociation) SetDomainAssociationArn(v string) *DomainAssociation {
5786	s.DomainAssociationArn = &v
5787	return s
5788}
5789
5790// SetDomainName sets the DomainName field's value.
5791func (s *DomainAssociation) SetDomainName(v string) *DomainAssociation {
5792	s.DomainName = &v
5793	return s
5794}
5795
5796// SetDomainStatus sets the DomainStatus field's value.
5797func (s *DomainAssociation) SetDomainStatus(v string) *DomainAssociation {
5798	s.DomainStatus = &v
5799	return s
5800}
5801
5802// SetEnableAutoSubDomain sets the EnableAutoSubDomain field's value.
5803func (s *DomainAssociation) SetEnableAutoSubDomain(v bool) *DomainAssociation {
5804	s.EnableAutoSubDomain = &v
5805	return s
5806}
5807
5808// SetStatusReason sets the StatusReason field's value.
5809func (s *DomainAssociation) SetStatusReason(v string) *DomainAssociation {
5810	s.StatusReason = &v
5811	return s
5812}
5813
5814// SetSubDomains sets the SubDomains field's value.
5815func (s *DomainAssociation) SetSubDomains(v []*SubDomain) *DomainAssociation {
5816	s.SubDomains = v
5817	return s
5818}
5819
5820// The request structure for the generate access logs request.
5821type GenerateAccessLogsInput struct {
5822	_ struct{} `type:"structure"`
5823
5824	// The unique ID for an Amplify app.
5825	//
5826	// AppId is a required field
5827	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
5828
5829	// The name of the domain.
5830	//
5831	// DomainName is a required field
5832	DomainName *string `locationName:"domainName" type:"string" required:"true"`
5833
5834	// The time at which the logs should end. The time range specified is inclusive
5835	// of the end time.
5836	EndTime *time.Time `locationName:"endTime" type:"timestamp"`
5837
5838	// The time at which the logs should start. The time range specified is inclusive
5839	// of the start time.
5840	StartTime *time.Time `locationName:"startTime" type:"timestamp"`
5841}
5842
5843// String returns the string representation
5844func (s GenerateAccessLogsInput) String() string {
5845	return awsutil.Prettify(s)
5846}
5847
5848// GoString returns the string representation
5849func (s GenerateAccessLogsInput) GoString() string {
5850	return s.String()
5851}
5852
5853// Validate inspects the fields of the type to determine if they are valid.
5854func (s *GenerateAccessLogsInput) Validate() error {
5855	invalidParams := request.ErrInvalidParams{Context: "GenerateAccessLogsInput"}
5856	if s.AppId == nil {
5857		invalidParams.Add(request.NewErrParamRequired("AppId"))
5858	}
5859	if s.AppId != nil && len(*s.AppId) < 1 {
5860		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5861	}
5862	if s.DomainName == nil {
5863		invalidParams.Add(request.NewErrParamRequired("DomainName"))
5864	}
5865
5866	if invalidParams.Len() > 0 {
5867		return invalidParams
5868	}
5869	return nil
5870}
5871
5872// SetAppId sets the AppId field's value.
5873func (s *GenerateAccessLogsInput) SetAppId(v string) *GenerateAccessLogsInput {
5874	s.AppId = &v
5875	return s
5876}
5877
5878// SetDomainName sets the DomainName field's value.
5879func (s *GenerateAccessLogsInput) SetDomainName(v string) *GenerateAccessLogsInput {
5880	s.DomainName = &v
5881	return s
5882}
5883
5884// SetEndTime sets the EndTime field's value.
5885func (s *GenerateAccessLogsInput) SetEndTime(v time.Time) *GenerateAccessLogsInput {
5886	s.EndTime = &v
5887	return s
5888}
5889
5890// SetStartTime sets the StartTime field's value.
5891func (s *GenerateAccessLogsInput) SetStartTime(v time.Time) *GenerateAccessLogsInput {
5892	s.StartTime = &v
5893	return s
5894}
5895
5896// The result structure for the generate access logs request.
5897type GenerateAccessLogsOutput struct {
5898	_ struct{} `type:"structure"`
5899
5900	// The pre-signed URL for the requested access logs.
5901	LogUrl *string `locationName:"logUrl" type:"string"`
5902}
5903
5904// String returns the string representation
5905func (s GenerateAccessLogsOutput) String() string {
5906	return awsutil.Prettify(s)
5907}
5908
5909// GoString returns the string representation
5910func (s GenerateAccessLogsOutput) GoString() string {
5911	return s.String()
5912}
5913
5914// SetLogUrl sets the LogUrl field's value.
5915func (s *GenerateAccessLogsOutput) SetLogUrl(v string) *GenerateAccessLogsOutput {
5916	s.LogUrl = &v
5917	return s
5918}
5919
5920// The request structure for the get app request.
5921type GetAppInput struct {
5922	_ struct{} `type:"structure"`
5923
5924	// The unique ID for an Amplify app.
5925	//
5926	// AppId is a required field
5927	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
5928}
5929
5930// String returns the string representation
5931func (s GetAppInput) String() string {
5932	return awsutil.Prettify(s)
5933}
5934
5935// GoString returns the string representation
5936func (s GetAppInput) GoString() string {
5937	return s.String()
5938}
5939
5940// Validate inspects the fields of the type to determine if they are valid.
5941func (s *GetAppInput) Validate() error {
5942	invalidParams := request.ErrInvalidParams{Context: "GetAppInput"}
5943	if s.AppId == nil {
5944		invalidParams.Add(request.NewErrParamRequired("AppId"))
5945	}
5946	if s.AppId != nil && len(*s.AppId) < 1 {
5947		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5948	}
5949
5950	if invalidParams.Len() > 0 {
5951		return invalidParams
5952	}
5953	return nil
5954}
5955
5956// SetAppId sets the AppId field's value.
5957func (s *GetAppInput) SetAppId(v string) *GetAppInput {
5958	s.AppId = &v
5959	return s
5960}
5961
5962type GetAppOutput struct {
5963	_ struct{} `type:"structure"`
5964
5965	// Represents the different branches of a repository for building, deploying,
5966	// and hosting an Amplify app.
5967	//
5968	// App is a required field
5969	App *App `locationName:"app" type:"structure" required:"true"`
5970}
5971
5972// String returns the string representation
5973func (s GetAppOutput) String() string {
5974	return awsutil.Prettify(s)
5975}
5976
5977// GoString returns the string representation
5978func (s GetAppOutput) GoString() string {
5979	return s.String()
5980}
5981
5982// SetApp sets the App field's value.
5983func (s *GetAppOutput) SetApp(v *App) *GetAppOutput {
5984	s.App = v
5985	return s
5986}
5987
5988// Returns the request structure for the get artifact request.
5989type GetArtifactUrlInput struct {
5990	_ struct{} `type:"structure"`
5991
5992	// The unique ID for an artifact.
5993	//
5994	// ArtifactId is a required field
5995	ArtifactId *string `location:"uri" locationName:"artifactId" type:"string" required:"true"`
5996}
5997
5998// String returns the string representation
5999func (s GetArtifactUrlInput) String() string {
6000	return awsutil.Prettify(s)
6001}
6002
6003// GoString returns the string representation
6004func (s GetArtifactUrlInput) GoString() string {
6005	return s.String()
6006}
6007
6008// Validate inspects the fields of the type to determine if they are valid.
6009func (s *GetArtifactUrlInput) Validate() error {
6010	invalidParams := request.ErrInvalidParams{Context: "GetArtifactUrlInput"}
6011	if s.ArtifactId == nil {
6012		invalidParams.Add(request.NewErrParamRequired("ArtifactId"))
6013	}
6014	if s.ArtifactId != nil && len(*s.ArtifactId) < 1 {
6015		invalidParams.Add(request.NewErrParamMinLen("ArtifactId", 1))
6016	}
6017
6018	if invalidParams.Len() > 0 {
6019		return invalidParams
6020	}
6021	return nil
6022}
6023
6024// SetArtifactId sets the ArtifactId field's value.
6025func (s *GetArtifactUrlInput) SetArtifactId(v string) *GetArtifactUrlInput {
6026	s.ArtifactId = &v
6027	return s
6028}
6029
6030// Returns the result structure for the get artifact request.
6031type GetArtifactUrlOutput struct {
6032	_ struct{} `type:"structure"`
6033
6034	// The unique ID for an artifact.
6035	//
6036	// ArtifactId is a required field
6037	ArtifactId *string `locationName:"artifactId" type:"string" required:"true"`
6038
6039	// The presigned URL for the artifact.
6040	//
6041	// ArtifactUrl is a required field
6042	ArtifactUrl *string `locationName:"artifactUrl" type:"string" required:"true"`
6043}
6044
6045// String returns the string representation
6046func (s GetArtifactUrlOutput) String() string {
6047	return awsutil.Prettify(s)
6048}
6049
6050// GoString returns the string representation
6051func (s GetArtifactUrlOutput) GoString() string {
6052	return s.String()
6053}
6054
6055// SetArtifactId sets the ArtifactId field's value.
6056func (s *GetArtifactUrlOutput) SetArtifactId(v string) *GetArtifactUrlOutput {
6057	s.ArtifactId = &v
6058	return s
6059}
6060
6061// SetArtifactUrl sets the ArtifactUrl field's value.
6062func (s *GetArtifactUrlOutput) SetArtifactUrl(v string) *GetArtifactUrlOutput {
6063	s.ArtifactUrl = &v
6064	return s
6065}
6066
6067// The request structure for the get backend environment request.
6068type GetBackendEnvironmentInput struct {
6069	_ struct{} `type:"structure"`
6070
6071	// The unique id for an Amplify app.
6072	//
6073	// AppId is a required field
6074	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
6075
6076	// The name for the backend environment.
6077	//
6078	// EnvironmentName is a required field
6079	EnvironmentName *string `location:"uri" locationName:"environmentName" min:"1" type:"string" required:"true"`
6080}
6081
6082// String returns the string representation
6083func (s GetBackendEnvironmentInput) String() string {
6084	return awsutil.Prettify(s)
6085}
6086
6087// GoString returns the string representation
6088func (s GetBackendEnvironmentInput) GoString() string {
6089	return s.String()
6090}
6091
6092// Validate inspects the fields of the type to determine if they are valid.
6093func (s *GetBackendEnvironmentInput) Validate() error {
6094	invalidParams := request.ErrInvalidParams{Context: "GetBackendEnvironmentInput"}
6095	if s.AppId == nil {
6096		invalidParams.Add(request.NewErrParamRequired("AppId"))
6097	}
6098	if s.AppId != nil && len(*s.AppId) < 1 {
6099		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6100	}
6101	if s.EnvironmentName == nil {
6102		invalidParams.Add(request.NewErrParamRequired("EnvironmentName"))
6103	}
6104	if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 {
6105		invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1))
6106	}
6107
6108	if invalidParams.Len() > 0 {
6109		return invalidParams
6110	}
6111	return nil
6112}
6113
6114// SetAppId sets the AppId field's value.
6115func (s *GetBackendEnvironmentInput) SetAppId(v string) *GetBackendEnvironmentInput {
6116	s.AppId = &v
6117	return s
6118}
6119
6120// SetEnvironmentName sets the EnvironmentName field's value.
6121func (s *GetBackendEnvironmentInput) SetEnvironmentName(v string) *GetBackendEnvironmentInput {
6122	s.EnvironmentName = &v
6123	return s
6124}
6125
6126// The result structure for the get backend environment result.
6127type GetBackendEnvironmentOutput struct {
6128	_ struct{} `type:"structure"`
6129
6130	// Describes the backend environment for an Amplify app.
6131	//
6132	// BackendEnvironment is a required field
6133	BackendEnvironment *BackendEnvironment `locationName:"backendEnvironment" type:"structure" required:"true"`
6134}
6135
6136// String returns the string representation
6137func (s GetBackendEnvironmentOutput) String() string {
6138	return awsutil.Prettify(s)
6139}
6140
6141// GoString returns the string representation
6142func (s GetBackendEnvironmentOutput) GoString() string {
6143	return s.String()
6144}
6145
6146// SetBackendEnvironment sets the BackendEnvironment field's value.
6147func (s *GetBackendEnvironmentOutput) SetBackendEnvironment(v *BackendEnvironment) *GetBackendEnvironmentOutput {
6148	s.BackendEnvironment = v
6149	return s
6150}
6151
6152// The request structure for the get branch request.
6153type GetBranchInput struct {
6154	_ struct{} `type:"structure"`
6155
6156	// The unique ID for an Amplify app.
6157	//
6158	// AppId is a required field
6159	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
6160
6161	// The name for the branch.
6162	//
6163	// BranchName is a required field
6164	BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
6165}
6166
6167// String returns the string representation
6168func (s GetBranchInput) String() string {
6169	return awsutil.Prettify(s)
6170}
6171
6172// GoString returns the string representation
6173func (s GetBranchInput) GoString() string {
6174	return s.String()
6175}
6176
6177// Validate inspects the fields of the type to determine if they are valid.
6178func (s *GetBranchInput) Validate() error {
6179	invalidParams := request.ErrInvalidParams{Context: "GetBranchInput"}
6180	if s.AppId == nil {
6181		invalidParams.Add(request.NewErrParamRequired("AppId"))
6182	}
6183	if s.AppId != nil && len(*s.AppId) < 1 {
6184		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6185	}
6186	if s.BranchName == nil {
6187		invalidParams.Add(request.NewErrParamRequired("BranchName"))
6188	}
6189	if s.BranchName != nil && len(*s.BranchName) < 1 {
6190		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
6191	}
6192
6193	if invalidParams.Len() > 0 {
6194		return invalidParams
6195	}
6196	return nil
6197}
6198
6199// SetAppId sets the AppId field's value.
6200func (s *GetBranchInput) SetAppId(v string) *GetBranchInput {
6201	s.AppId = &v
6202	return s
6203}
6204
6205// SetBranchName sets the BranchName field's value.
6206func (s *GetBranchInput) SetBranchName(v string) *GetBranchInput {
6207	s.BranchName = &v
6208	return s
6209}
6210
6211type GetBranchOutput struct {
6212	_ struct{} `type:"structure"`
6213
6214	// The branch for an Amplify app, which maps to a third-party repository branch.
6215	//
6216	// Branch is a required field
6217	Branch *Branch `locationName:"branch" type:"structure" required:"true"`
6218}
6219
6220// String returns the string representation
6221func (s GetBranchOutput) String() string {
6222	return awsutil.Prettify(s)
6223}
6224
6225// GoString returns the string representation
6226func (s GetBranchOutput) GoString() string {
6227	return s.String()
6228}
6229
6230// SetBranch sets the Branch field's value.
6231func (s *GetBranchOutput) SetBranch(v *Branch) *GetBranchOutput {
6232	s.Branch = v
6233	return s
6234}
6235
6236// The request structure for the get domain association request.
6237type GetDomainAssociationInput struct {
6238	_ struct{} `type:"structure"`
6239
6240	// The unique id for an Amplify app.
6241	//
6242	// AppId is a required field
6243	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
6244
6245	// The name of the domain.
6246	//
6247	// DomainName is a required field
6248	DomainName *string `location:"uri" locationName:"domainName" type:"string" required:"true"`
6249}
6250
6251// String returns the string representation
6252func (s GetDomainAssociationInput) String() string {
6253	return awsutil.Prettify(s)
6254}
6255
6256// GoString returns the string representation
6257func (s GetDomainAssociationInput) GoString() string {
6258	return s.String()
6259}
6260
6261// Validate inspects the fields of the type to determine if they are valid.
6262func (s *GetDomainAssociationInput) Validate() error {
6263	invalidParams := request.ErrInvalidParams{Context: "GetDomainAssociationInput"}
6264	if s.AppId == nil {
6265		invalidParams.Add(request.NewErrParamRequired("AppId"))
6266	}
6267	if s.AppId != nil && len(*s.AppId) < 1 {
6268		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6269	}
6270	if s.DomainName == nil {
6271		invalidParams.Add(request.NewErrParamRequired("DomainName"))
6272	}
6273	if s.DomainName != nil && len(*s.DomainName) < 1 {
6274		invalidParams.Add(request.NewErrParamMinLen("DomainName", 1))
6275	}
6276
6277	if invalidParams.Len() > 0 {
6278		return invalidParams
6279	}
6280	return nil
6281}
6282
6283// SetAppId sets the AppId field's value.
6284func (s *GetDomainAssociationInput) SetAppId(v string) *GetDomainAssociationInput {
6285	s.AppId = &v
6286	return s
6287}
6288
6289// SetDomainName sets the DomainName field's value.
6290func (s *GetDomainAssociationInput) SetDomainName(v string) *GetDomainAssociationInput {
6291	s.DomainName = &v
6292	return s
6293}
6294
6295// The result structure for the get domain association request.
6296type GetDomainAssociationOutput struct {
6297	_ struct{} `type:"structure"`
6298
6299	// Describes the structure of a domain association, which associates a custom
6300	// domain with an Amplify app.
6301	//
6302	// DomainAssociation is a required field
6303	DomainAssociation *DomainAssociation `locationName:"domainAssociation" type:"structure" required:"true"`
6304}
6305
6306// String returns the string representation
6307func (s GetDomainAssociationOutput) String() string {
6308	return awsutil.Prettify(s)
6309}
6310
6311// GoString returns the string representation
6312func (s GetDomainAssociationOutput) GoString() string {
6313	return s.String()
6314}
6315
6316// SetDomainAssociation sets the DomainAssociation field's value.
6317func (s *GetDomainAssociationOutput) SetDomainAssociation(v *DomainAssociation) *GetDomainAssociationOutput {
6318	s.DomainAssociation = v
6319	return s
6320}
6321
6322// The request structure for the get job request.
6323type GetJobInput struct {
6324	_ struct{} `type:"structure"`
6325
6326	// The unique ID for an Amplify app.
6327	//
6328	// AppId is a required field
6329	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
6330
6331	// The branch name for the job.
6332	//
6333	// BranchName is a required field
6334	BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
6335
6336	// The unique ID for the job.
6337	//
6338	// JobId is a required field
6339	JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
6340}
6341
6342// String returns the string representation
6343func (s GetJobInput) String() string {
6344	return awsutil.Prettify(s)
6345}
6346
6347// GoString returns the string representation
6348func (s GetJobInput) GoString() string {
6349	return s.String()
6350}
6351
6352// Validate inspects the fields of the type to determine if they are valid.
6353func (s *GetJobInput) Validate() error {
6354	invalidParams := request.ErrInvalidParams{Context: "GetJobInput"}
6355	if s.AppId == nil {
6356		invalidParams.Add(request.NewErrParamRequired("AppId"))
6357	}
6358	if s.AppId != nil && len(*s.AppId) < 1 {
6359		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6360	}
6361	if s.BranchName == nil {
6362		invalidParams.Add(request.NewErrParamRequired("BranchName"))
6363	}
6364	if s.BranchName != nil && len(*s.BranchName) < 1 {
6365		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
6366	}
6367	if s.JobId == nil {
6368		invalidParams.Add(request.NewErrParamRequired("JobId"))
6369	}
6370	if s.JobId != nil && len(*s.JobId) < 1 {
6371		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
6372	}
6373
6374	if invalidParams.Len() > 0 {
6375		return invalidParams
6376	}
6377	return nil
6378}
6379
6380// SetAppId sets the AppId field's value.
6381func (s *GetJobInput) SetAppId(v string) *GetJobInput {
6382	s.AppId = &v
6383	return s
6384}
6385
6386// SetBranchName sets the BranchName field's value.
6387func (s *GetJobInput) SetBranchName(v string) *GetJobInput {
6388	s.BranchName = &v
6389	return s
6390}
6391
6392// SetJobId sets the JobId field's value.
6393func (s *GetJobInput) SetJobId(v string) *GetJobInput {
6394	s.JobId = &v
6395	return s
6396}
6397
6398type GetJobOutput struct {
6399	_ struct{} `type:"structure"`
6400
6401	// Describes an execution job for an Amplify app.
6402	//
6403	// Job is a required field
6404	Job *Job `locationName:"job" type:"structure" required:"true"`
6405}
6406
6407// String returns the string representation
6408func (s GetJobOutput) String() string {
6409	return awsutil.Prettify(s)
6410}
6411
6412// GoString returns the string representation
6413func (s GetJobOutput) GoString() string {
6414	return s.String()
6415}
6416
6417// SetJob sets the Job field's value.
6418func (s *GetJobOutput) SetJob(v *Job) *GetJobOutput {
6419	s.Job = v
6420	return s
6421}
6422
6423// The request structure for the get webhook request.
6424type GetWebhookInput struct {
6425	_ struct{} `type:"structure"`
6426
6427	// The unique ID for a webhook.
6428	//
6429	// WebhookId is a required field
6430	WebhookId *string `location:"uri" locationName:"webhookId" type:"string" required:"true"`
6431}
6432
6433// String returns the string representation
6434func (s GetWebhookInput) String() string {
6435	return awsutil.Prettify(s)
6436}
6437
6438// GoString returns the string representation
6439func (s GetWebhookInput) GoString() string {
6440	return s.String()
6441}
6442
6443// Validate inspects the fields of the type to determine if they are valid.
6444func (s *GetWebhookInput) Validate() error {
6445	invalidParams := request.ErrInvalidParams{Context: "GetWebhookInput"}
6446	if s.WebhookId == nil {
6447		invalidParams.Add(request.NewErrParamRequired("WebhookId"))
6448	}
6449	if s.WebhookId != nil && len(*s.WebhookId) < 1 {
6450		invalidParams.Add(request.NewErrParamMinLen("WebhookId", 1))
6451	}
6452
6453	if invalidParams.Len() > 0 {
6454		return invalidParams
6455	}
6456	return nil
6457}
6458
6459// SetWebhookId sets the WebhookId field's value.
6460func (s *GetWebhookInput) SetWebhookId(v string) *GetWebhookInput {
6461	s.WebhookId = &v
6462	return s
6463}
6464
6465// The result structure for the get webhook request.
6466type GetWebhookOutput struct {
6467	_ struct{} `type:"structure"`
6468
6469	// Describes the structure of a webhook.
6470	//
6471	// Webhook is a required field
6472	Webhook *Webhook `locationName:"webhook" type:"structure" required:"true"`
6473}
6474
6475// String returns the string representation
6476func (s GetWebhookOutput) String() string {
6477	return awsutil.Prettify(s)
6478}
6479
6480// GoString returns the string representation
6481func (s GetWebhookOutput) GoString() string {
6482	return s.String()
6483}
6484
6485// SetWebhook sets the Webhook field's value.
6486func (s *GetWebhookOutput) SetWebhook(v *Webhook) *GetWebhookOutput {
6487	s.Webhook = v
6488	return s
6489}
6490
6491// The service failed to perform an operation due to an internal issue.
6492type InternalFailureException struct {
6493	_            struct{}                  `type:"structure"`
6494	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
6495
6496	Message_ *string `locationName:"message" type:"string"`
6497}
6498
6499// String returns the string representation
6500func (s InternalFailureException) String() string {
6501	return awsutil.Prettify(s)
6502}
6503
6504// GoString returns the string representation
6505func (s InternalFailureException) GoString() string {
6506	return s.String()
6507}
6508
6509func newErrorInternalFailureException(v protocol.ResponseMetadata) error {
6510	return &InternalFailureException{
6511		RespMetadata: v,
6512	}
6513}
6514
6515// Code returns the exception type name.
6516func (s *InternalFailureException) Code() string {
6517	return "InternalFailureException"
6518}
6519
6520// Message returns the exception's message.
6521func (s *InternalFailureException) Message() string {
6522	if s.Message_ != nil {
6523		return *s.Message_
6524	}
6525	return ""
6526}
6527
6528// OrigErr always returns nil, satisfies awserr.Error interface.
6529func (s *InternalFailureException) OrigErr() error {
6530	return nil
6531}
6532
6533func (s *InternalFailureException) Error() string {
6534	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
6535}
6536
6537// Status code returns the HTTP status code for the request's response error.
6538func (s *InternalFailureException) StatusCode() int {
6539	return s.RespMetadata.StatusCode
6540}
6541
6542// RequestID returns the service's response RequestID for request.
6543func (s *InternalFailureException) RequestID() string {
6544	return s.RespMetadata.RequestID
6545}
6546
6547// Describes an execution job for an Amplify app.
6548type Job struct {
6549	_ struct{} `type:"structure"`
6550
6551	// The execution steps for an execution job, for an Amplify app.
6552	//
6553	// Steps is a required field
6554	Steps []*Step `locationName:"steps" type:"list" required:"true"`
6555
6556	// Describes the summary for an execution job for an Amplify app.
6557	//
6558	// Summary is a required field
6559	Summary *JobSummary `locationName:"summary" type:"structure" required:"true"`
6560}
6561
6562// String returns the string representation
6563func (s Job) String() string {
6564	return awsutil.Prettify(s)
6565}
6566
6567// GoString returns the string representation
6568func (s Job) GoString() string {
6569	return s.String()
6570}
6571
6572// SetSteps sets the Steps field's value.
6573func (s *Job) SetSteps(v []*Step) *Job {
6574	s.Steps = v
6575	return s
6576}
6577
6578// SetSummary sets the Summary field's value.
6579func (s *Job) SetSummary(v *JobSummary) *Job {
6580	s.Summary = v
6581	return s
6582}
6583
6584// Describes the summary for an execution job for an Amplify app.
6585type JobSummary struct {
6586	_ struct{} `type:"structure"`
6587
6588	// The commit ID from a third-party repository provider for the job.
6589	//
6590	// CommitId is a required field
6591	CommitId *string `locationName:"commitId" type:"string" required:"true"`
6592
6593	// The commit message from a third-party repository provider for the job.
6594	//
6595	// CommitMessage is a required field
6596	CommitMessage *string `locationName:"commitMessage" type:"string" required:"true"`
6597
6598	// The commit date and time for the job.
6599	//
6600	// CommitTime is a required field
6601	CommitTime *time.Time `locationName:"commitTime" type:"timestamp" required:"true"`
6602
6603	// The end date and time for the job.
6604	EndTime *time.Time `locationName:"endTime" type:"timestamp"`
6605
6606	// The Amazon Resource Name (ARN) for the job.
6607	//
6608	// JobArn is a required field
6609	JobArn *string `locationName:"jobArn" type:"string" required:"true"`
6610
6611	// The unique ID for the job.
6612	//
6613	// JobId is a required field
6614	JobId *string `locationName:"jobId" type:"string" required:"true"`
6615
6616	// The type for the job. If the value is RELEASE, the job was manually released
6617	// from its source by using the StartJob API. If the value is RETRY, the job
6618	// was manually retried using the StartJob API. If the value is WEB_HOOK, the
6619	// job was automatically triggered by webhooks.
6620	//
6621	// JobType is a required field
6622	JobType *string `locationName:"jobType" type:"string" required:"true" enum:"JobType"`
6623
6624	// The start date and time for the job.
6625	//
6626	// StartTime is a required field
6627	StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
6628
6629	// The current status for the job.
6630	//
6631	// Status is a required field
6632	Status *string `locationName:"status" type:"string" required:"true" enum:"JobStatus"`
6633}
6634
6635// String returns the string representation
6636func (s JobSummary) String() string {
6637	return awsutil.Prettify(s)
6638}
6639
6640// GoString returns the string representation
6641func (s JobSummary) GoString() string {
6642	return s.String()
6643}
6644
6645// SetCommitId sets the CommitId field's value.
6646func (s *JobSummary) SetCommitId(v string) *JobSummary {
6647	s.CommitId = &v
6648	return s
6649}
6650
6651// SetCommitMessage sets the CommitMessage field's value.
6652func (s *JobSummary) SetCommitMessage(v string) *JobSummary {
6653	s.CommitMessage = &v
6654	return s
6655}
6656
6657// SetCommitTime sets the CommitTime field's value.
6658func (s *JobSummary) SetCommitTime(v time.Time) *JobSummary {
6659	s.CommitTime = &v
6660	return s
6661}
6662
6663// SetEndTime sets the EndTime field's value.
6664func (s *JobSummary) SetEndTime(v time.Time) *JobSummary {
6665	s.EndTime = &v
6666	return s
6667}
6668
6669// SetJobArn sets the JobArn field's value.
6670func (s *JobSummary) SetJobArn(v string) *JobSummary {
6671	s.JobArn = &v
6672	return s
6673}
6674
6675// SetJobId sets the JobId field's value.
6676func (s *JobSummary) SetJobId(v string) *JobSummary {
6677	s.JobId = &v
6678	return s
6679}
6680
6681// SetJobType sets the JobType field's value.
6682func (s *JobSummary) SetJobType(v string) *JobSummary {
6683	s.JobType = &v
6684	return s
6685}
6686
6687// SetStartTime sets the StartTime field's value.
6688func (s *JobSummary) SetStartTime(v time.Time) *JobSummary {
6689	s.StartTime = &v
6690	return s
6691}
6692
6693// SetStatus sets the Status field's value.
6694func (s *JobSummary) SetStatus(v string) *JobSummary {
6695	s.Status = &v
6696	return s
6697}
6698
6699// A resource could not be created because service quotas were exceeded.
6700type LimitExceededException struct {
6701	_            struct{}                  `type:"structure"`
6702	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
6703
6704	Message_ *string `locationName:"message" type:"string"`
6705}
6706
6707// String returns the string representation
6708func (s LimitExceededException) String() string {
6709	return awsutil.Prettify(s)
6710}
6711
6712// GoString returns the string representation
6713func (s LimitExceededException) GoString() string {
6714	return s.String()
6715}
6716
6717func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
6718	return &LimitExceededException{
6719		RespMetadata: v,
6720	}
6721}
6722
6723// Code returns the exception type name.
6724func (s *LimitExceededException) Code() string {
6725	return "LimitExceededException"
6726}
6727
6728// Message returns the exception's message.
6729func (s *LimitExceededException) Message() string {
6730	if s.Message_ != nil {
6731		return *s.Message_
6732	}
6733	return ""
6734}
6735
6736// OrigErr always returns nil, satisfies awserr.Error interface.
6737func (s *LimitExceededException) OrigErr() error {
6738	return nil
6739}
6740
6741func (s *LimitExceededException) Error() string {
6742	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
6743}
6744
6745// Status code returns the HTTP status code for the request's response error.
6746func (s *LimitExceededException) StatusCode() int {
6747	return s.RespMetadata.StatusCode
6748}
6749
6750// RequestID returns the service's response RequestID for request.
6751func (s *LimitExceededException) RequestID() string {
6752	return s.RespMetadata.RequestID
6753}
6754
6755// The request structure for the list apps request.
6756type ListAppsInput struct {
6757	_ struct{} `type:"structure"`
6758
6759	// The maximum number of records to list in a single response.
6760	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
6761
6762	// A pagination token. If non-null, the pagination token is returned in a result.
6763	// Pass its value in another request to retrieve more entries.
6764	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
6765}
6766
6767// String returns the string representation
6768func (s ListAppsInput) String() string {
6769	return awsutil.Prettify(s)
6770}
6771
6772// GoString returns the string representation
6773func (s ListAppsInput) GoString() string {
6774	return s.String()
6775}
6776
6777// Validate inspects the fields of the type to determine if they are valid.
6778func (s *ListAppsInput) Validate() error {
6779	invalidParams := request.ErrInvalidParams{Context: "ListAppsInput"}
6780	if s.MaxResults != nil && *s.MaxResults < 1 {
6781		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
6782	}
6783
6784	if invalidParams.Len() > 0 {
6785		return invalidParams
6786	}
6787	return nil
6788}
6789
6790// SetMaxResults sets the MaxResults field's value.
6791func (s *ListAppsInput) SetMaxResults(v int64) *ListAppsInput {
6792	s.MaxResults = &v
6793	return s
6794}
6795
6796// SetNextToken sets the NextToken field's value.
6797func (s *ListAppsInput) SetNextToken(v string) *ListAppsInput {
6798	s.NextToken = &v
6799	return s
6800}
6801
6802// The result structure for an Amplify app list request.
6803type ListAppsOutput struct {
6804	_ struct{} `type:"structure"`
6805
6806	// A list of Amplify apps.
6807	//
6808	// Apps is a required field
6809	Apps []*App `locationName:"apps" type:"list" required:"true"`
6810
6811	// A pagination token. Set to null to start listing apps from start. If non-null,
6812	// the pagination token is returned in a result. Pass its value in here to list
6813	// more projects.
6814	NextToken *string `locationName:"nextToken" type:"string"`
6815}
6816
6817// String returns the string representation
6818func (s ListAppsOutput) String() string {
6819	return awsutil.Prettify(s)
6820}
6821
6822// GoString returns the string representation
6823func (s ListAppsOutput) GoString() string {
6824	return s.String()
6825}
6826
6827// SetApps sets the Apps field's value.
6828func (s *ListAppsOutput) SetApps(v []*App) *ListAppsOutput {
6829	s.Apps = v
6830	return s
6831}
6832
6833// SetNextToken sets the NextToken field's value.
6834func (s *ListAppsOutput) SetNextToken(v string) *ListAppsOutput {
6835	s.NextToken = &v
6836	return s
6837}
6838
6839// Describes the request structure for the list artifacts request.
6840type ListArtifactsInput struct {
6841	_ struct{} `type:"structure"`
6842
6843	// The unique ID for an Amplify app.
6844	//
6845	// AppId is a required field
6846	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
6847
6848	// The name of a branch that is part of an Amplify app.
6849	//
6850	// BranchName is a required field
6851	BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
6852
6853	// The unique ID for a job.
6854	//
6855	// JobId is a required field
6856	JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
6857
6858	// The maximum number of records to list in a single response.
6859	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
6860
6861	// A pagination token. Set to null to start listing artifacts from start. If
6862	// a non-null pagination token is returned in a result, pass its value in here
6863	// to list more artifacts.
6864	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
6865}
6866
6867// String returns the string representation
6868func (s ListArtifactsInput) String() string {
6869	return awsutil.Prettify(s)
6870}
6871
6872// GoString returns the string representation
6873func (s ListArtifactsInput) GoString() string {
6874	return s.String()
6875}
6876
6877// Validate inspects the fields of the type to determine if they are valid.
6878func (s *ListArtifactsInput) Validate() error {
6879	invalidParams := request.ErrInvalidParams{Context: "ListArtifactsInput"}
6880	if s.AppId == nil {
6881		invalidParams.Add(request.NewErrParamRequired("AppId"))
6882	}
6883	if s.AppId != nil && len(*s.AppId) < 1 {
6884		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6885	}
6886	if s.BranchName == nil {
6887		invalidParams.Add(request.NewErrParamRequired("BranchName"))
6888	}
6889	if s.BranchName != nil && len(*s.BranchName) < 1 {
6890		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
6891	}
6892	if s.JobId == nil {
6893		invalidParams.Add(request.NewErrParamRequired("JobId"))
6894	}
6895	if s.JobId != nil && len(*s.JobId) < 1 {
6896		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
6897	}
6898	if s.MaxResults != nil && *s.MaxResults < 1 {
6899		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
6900	}
6901
6902	if invalidParams.Len() > 0 {
6903		return invalidParams
6904	}
6905	return nil
6906}
6907
6908// SetAppId sets the AppId field's value.
6909func (s *ListArtifactsInput) SetAppId(v string) *ListArtifactsInput {
6910	s.AppId = &v
6911	return s
6912}
6913
6914// SetBranchName sets the BranchName field's value.
6915func (s *ListArtifactsInput) SetBranchName(v string) *ListArtifactsInput {
6916	s.BranchName = &v
6917	return s
6918}
6919
6920// SetJobId sets the JobId field's value.
6921func (s *ListArtifactsInput) SetJobId(v string) *ListArtifactsInput {
6922	s.JobId = &v
6923	return s
6924}
6925
6926// SetMaxResults sets the MaxResults field's value.
6927func (s *ListArtifactsInput) SetMaxResults(v int64) *ListArtifactsInput {
6928	s.MaxResults = &v
6929	return s
6930}
6931
6932// SetNextToken sets the NextToken field's value.
6933func (s *ListArtifactsInput) SetNextToken(v string) *ListArtifactsInput {
6934	s.NextToken = &v
6935	return s
6936}
6937
6938// The result structure for the list artifacts request.
6939type ListArtifactsOutput struct {
6940	_ struct{} `type:"structure"`
6941
6942	// A list of artifacts.
6943	//
6944	// Artifacts is a required field
6945	Artifacts []*Artifact `locationName:"artifacts" type:"list" required:"true"`
6946
6947	// A pagination token. If a non-null pagination token is returned in a result,
6948	// pass its value in another request to retrieve more entries.
6949	NextToken *string `locationName:"nextToken" type:"string"`
6950}
6951
6952// String returns the string representation
6953func (s ListArtifactsOutput) String() string {
6954	return awsutil.Prettify(s)
6955}
6956
6957// GoString returns the string representation
6958func (s ListArtifactsOutput) GoString() string {
6959	return s.String()
6960}
6961
6962// SetArtifacts sets the Artifacts field's value.
6963func (s *ListArtifactsOutput) SetArtifacts(v []*Artifact) *ListArtifactsOutput {
6964	s.Artifacts = v
6965	return s
6966}
6967
6968// SetNextToken sets the NextToken field's value.
6969func (s *ListArtifactsOutput) SetNextToken(v string) *ListArtifactsOutput {
6970	s.NextToken = &v
6971	return s
6972}
6973
6974// The request structure for the list backend environments request.
6975type ListBackendEnvironmentsInput struct {
6976	_ struct{} `type:"structure"`
6977
6978	// The unique ID for an Amplify app.
6979	//
6980	// AppId is a required field
6981	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
6982
6983	// The name of the backend environment
6984	EnvironmentName *string `location:"querystring" locationName:"environmentName" min:"1" type:"string"`
6985
6986	// The maximum number of records to list in a single response.
6987	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
6988
6989	// A pagination token. Set to null to start listing backend environments from
6990	// the start. If a non-null pagination token is returned in a result, pass its
6991	// value in here to list more backend environments.
6992	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
6993}
6994
6995// String returns the string representation
6996func (s ListBackendEnvironmentsInput) String() string {
6997	return awsutil.Prettify(s)
6998}
6999
7000// GoString returns the string representation
7001func (s ListBackendEnvironmentsInput) GoString() string {
7002	return s.String()
7003}
7004
7005// Validate inspects the fields of the type to determine if they are valid.
7006func (s *ListBackendEnvironmentsInput) Validate() error {
7007	invalidParams := request.ErrInvalidParams{Context: "ListBackendEnvironmentsInput"}
7008	if s.AppId == nil {
7009		invalidParams.Add(request.NewErrParamRequired("AppId"))
7010	}
7011	if s.AppId != nil && len(*s.AppId) < 1 {
7012		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
7013	}
7014	if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 {
7015		invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1))
7016	}
7017	if s.MaxResults != nil && *s.MaxResults < 1 {
7018		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
7019	}
7020
7021	if invalidParams.Len() > 0 {
7022		return invalidParams
7023	}
7024	return nil
7025}
7026
7027// SetAppId sets the AppId field's value.
7028func (s *ListBackendEnvironmentsInput) SetAppId(v string) *ListBackendEnvironmentsInput {
7029	s.AppId = &v
7030	return s
7031}
7032
7033// SetEnvironmentName sets the EnvironmentName field's value.
7034func (s *ListBackendEnvironmentsInput) SetEnvironmentName(v string) *ListBackendEnvironmentsInput {
7035	s.EnvironmentName = &v
7036	return s
7037}
7038
7039// SetMaxResults sets the MaxResults field's value.
7040func (s *ListBackendEnvironmentsInput) SetMaxResults(v int64) *ListBackendEnvironmentsInput {
7041	s.MaxResults = &v
7042	return s
7043}
7044
7045// SetNextToken sets the NextToken field's value.
7046func (s *ListBackendEnvironmentsInput) SetNextToken(v string) *ListBackendEnvironmentsInput {
7047	s.NextToken = &v
7048	return s
7049}
7050
7051// The result structure for the list backend environments result.
7052type ListBackendEnvironmentsOutput struct {
7053	_ struct{} `type:"structure"`
7054
7055	// The list of backend environments for an Amplify app.
7056	//
7057	// BackendEnvironments is a required field
7058	BackendEnvironments []*BackendEnvironment `locationName:"backendEnvironments" type:"list" required:"true"`
7059
7060	// A pagination token. If a non-null pagination token is returned in a result,
7061	// pass its value in another request to retrieve more entries.
7062	NextToken *string `locationName:"nextToken" type:"string"`
7063}
7064
7065// String returns the string representation
7066func (s ListBackendEnvironmentsOutput) String() string {
7067	return awsutil.Prettify(s)
7068}
7069
7070// GoString returns the string representation
7071func (s ListBackendEnvironmentsOutput) GoString() string {
7072	return s.String()
7073}
7074
7075// SetBackendEnvironments sets the BackendEnvironments field's value.
7076func (s *ListBackendEnvironmentsOutput) SetBackendEnvironments(v []*BackendEnvironment) *ListBackendEnvironmentsOutput {
7077	s.BackendEnvironments = v
7078	return s
7079}
7080
7081// SetNextToken sets the NextToken field's value.
7082func (s *ListBackendEnvironmentsOutput) SetNextToken(v string) *ListBackendEnvironmentsOutput {
7083	s.NextToken = &v
7084	return s
7085}
7086
7087// The request structure for the list branches request.
7088type ListBranchesInput struct {
7089	_ struct{} `type:"structure"`
7090
7091	// The unique ID for an Amplify app.
7092	//
7093	// AppId is a required field
7094	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
7095
7096	// The maximum number of records to list in a single response.
7097	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
7098
7099	// A pagination token. Set to null to start listing branches from the start.
7100	// If a non-null pagination token is returned in a result, pass its value in
7101	// here to list more branches.
7102	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
7103}
7104
7105// String returns the string representation
7106func (s ListBranchesInput) String() string {
7107	return awsutil.Prettify(s)
7108}
7109
7110// GoString returns the string representation
7111func (s ListBranchesInput) GoString() string {
7112	return s.String()
7113}
7114
7115// Validate inspects the fields of the type to determine if they are valid.
7116func (s *ListBranchesInput) Validate() error {
7117	invalidParams := request.ErrInvalidParams{Context: "ListBranchesInput"}
7118	if s.AppId == nil {
7119		invalidParams.Add(request.NewErrParamRequired("AppId"))
7120	}
7121	if s.AppId != nil && len(*s.AppId) < 1 {
7122		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
7123	}
7124	if s.MaxResults != nil && *s.MaxResults < 1 {
7125		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
7126	}
7127
7128	if invalidParams.Len() > 0 {
7129		return invalidParams
7130	}
7131	return nil
7132}
7133
7134// SetAppId sets the AppId field's value.
7135func (s *ListBranchesInput) SetAppId(v string) *ListBranchesInput {
7136	s.AppId = &v
7137	return s
7138}
7139
7140// SetMaxResults sets the MaxResults field's value.
7141func (s *ListBranchesInput) SetMaxResults(v int64) *ListBranchesInput {
7142	s.MaxResults = &v
7143	return s
7144}
7145
7146// SetNextToken sets the NextToken field's value.
7147func (s *ListBranchesInput) SetNextToken(v string) *ListBranchesInput {
7148	s.NextToken = &v
7149	return s
7150}
7151
7152// The result structure for the list branches request.
7153type ListBranchesOutput struct {
7154	_ struct{} `type:"structure"`
7155
7156	// A list of branches for an Amplify app.
7157	//
7158	// Branches is a required field
7159	Branches []*Branch `locationName:"branches" type:"list" required:"true"`
7160
7161	// A pagination token. If a non-null pagination token is returned in a result,
7162	// pass its value in another request to retrieve more entries.
7163	NextToken *string `locationName:"nextToken" type:"string"`
7164}
7165
7166// String returns the string representation
7167func (s ListBranchesOutput) String() string {
7168	return awsutil.Prettify(s)
7169}
7170
7171// GoString returns the string representation
7172func (s ListBranchesOutput) GoString() string {
7173	return s.String()
7174}
7175
7176// SetBranches sets the Branches field's value.
7177func (s *ListBranchesOutput) SetBranches(v []*Branch) *ListBranchesOutput {
7178	s.Branches = v
7179	return s
7180}
7181
7182// SetNextToken sets the NextToken field's value.
7183func (s *ListBranchesOutput) SetNextToken(v string) *ListBranchesOutput {
7184	s.NextToken = &v
7185	return s
7186}
7187
7188// The request structure for the list domain associations request.
7189type ListDomainAssociationsInput struct {
7190	_ struct{} `type:"structure"`
7191
7192	// The unique ID for an Amplify app.
7193	//
7194	// AppId is a required field
7195	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
7196
7197	// The maximum number of records to list in a single response.
7198	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
7199
7200	// A pagination token. Set to null to start listing apps from the start. If
7201	// non-null, a pagination token is returned in a result. Pass its value in here
7202	// to list more projects.
7203	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
7204}
7205
7206// String returns the string representation
7207func (s ListDomainAssociationsInput) String() string {
7208	return awsutil.Prettify(s)
7209}
7210
7211// GoString returns the string representation
7212func (s ListDomainAssociationsInput) GoString() string {
7213	return s.String()
7214}
7215
7216// Validate inspects the fields of the type to determine if they are valid.
7217func (s *ListDomainAssociationsInput) Validate() error {
7218	invalidParams := request.ErrInvalidParams{Context: "ListDomainAssociationsInput"}
7219	if s.AppId == nil {
7220		invalidParams.Add(request.NewErrParamRequired("AppId"))
7221	}
7222	if s.AppId != nil && len(*s.AppId) < 1 {
7223		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
7224	}
7225	if s.MaxResults != nil && *s.MaxResults < 1 {
7226		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
7227	}
7228
7229	if invalidParams.Len() > 0 {
7230		return invalidParams
7231	}
7232	return nil
7233}
7234
7235// SetAppId sets the AppId field's value.
7236func (s *ListDomainAssociationsInput) SetAppId(v string) *ListDomainAssociationsInput {
7237	s.AppId = &v
7238	return s
7239}
7240
7241// SetMaxResults sets the MaxResults field's value.
7242func (s *ListDomainAssociationsInput) SetMaxResults(v int64) *ListDomainAssociationsInput {
7243	s.MaxResults = &v
7244	return s
7245}
7246
7247// SetNextToken sets the NextToken field's value.
7248func (s *ListDomainAssociationsInput) SetNextToken(v string) *ListDomainAssociationsInput {
7249	s.NextToken = &v
7250	return s
7251}
7252
7253// The result structure for the list domain association request.
7254type ListDomainAssociationsOutput struct {
7255	_ struct{} `type:"structure"`
7256
7257	// A list of domain associations.
7258	//
7259	// DomainAssociations is a required field
7260	DomainAssociations []*DomainAssociation `locationName:"domainAssociations" type:"list" required:"true"`
7261
7262	// A pagination token. If non-null, a pagination token is returned in a result.
7263	// Pass its value in another request to retrieve more entries.
7264	NextToken *string `locationName:"nextToken" type:"string"`
7265}
7266
7267// String returns the string representation
7268func (s ListDomainAssociationsOutput) String() string {
7269	return awsutil.Prettify(s)
7270}
7271
7272// GoString returns the string representation
7273func (s ListDomainAssociationsOutput) GoString() string {
7274	return s.String()
7275}
7276
7277// SetDomainAssociations sets the DomainAssociations field's value.
7278func (s *ListDomainAssociationsOutput) SetDomainAssociations(v []*DomainAssociation) *ListDomainAssociationsOutput {
7279	s.DomainAssociations = v
7280	return s
7281}
7282
7283// SetNextToken sets the NextToken field's value.
7284func (s *ListDomainAssociationsOutput) SetNextToken(v string) *ListDomainAssociationsOutput {
7285	s.NextToken = &v
7286	return s
7287}
7288
7289// The request structure for the list jobs request.
7290type ListJobsInput struct {
7291	_ struct{} `type:"structure"`
7292
7293	// The unique ID for an Amplify app.
7294	//
7295	// AppId is a required field
7296	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
7297
7298	// The name for a branch.
7299	//
7300	// BranchName is a required field
7301	BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
7302
7303	// The maximum number of records to list in a single response.
7304	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
7305
7306	// A pagination token. Set to null to start listing steps from the start. If
7307	// a non-null pagination token is returned in a result, pass its value in here
7308	// to list more steps.
7309	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
7310}
7311
7312// String returns the string representation
7313func (s ListJobsInput) String() string {
7314	return awsutil.Prettify(s)
7315}
7316
7317// GoString returns the string representation
7318func (s ListJobsInput) GoString() string {
7319	return s.String()
7320}
7321
7322// Validate inspects the fields of the type to determine if they are valid.
7323func (s *ListJobsInput) Validate() error {
7324	invalidParams := request.ErrInvalidParams{Context: "ListJobsInput"}
7325	if s.AppId == nil {
7326		invalidParams.Add(request.NewErrParamRequired("AppId"))
7327	}
7328	if s.AppId != nil && len(*s.AppId) < 1 {
7329		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
7330	}
7331	if s.BranchName == nil {
7332		invalidParams.Add(request.NewErrParamRequired("BranchName"))
7333	}
7334	if s.BranchName != nil && len(*s.BranchName) < 1 {
7335		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
7336	}
7337	if s.MaxResults != nil && *s.MaxResults < 1 {
7338		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
7339	}
7340
7341	if invalidParams.Len() > 0 {
7342		return invalidParams
7343	}
7344	return nil
7345}
7346
7347// SetAppId sets the AppId field's value.
7348func (s *ListJobsInput) SetAppId(v string) *ListJobsInput {
7349	s.AppId = &v
7350	return s
7351}
7352
7353// SetBranchName sets the BranchName field's value.
7354func (s *ListJobsInput) SetBranchName(v string) *ListJobsInput {
7355	s.BranchName = &v
7356	return s
7357}
7358
7359// SetMaxResults sets the MaxResults field's value.
7360func (s *ListJobsInput) SetMaxResults(v int64) *ListJobsInput {
7361	s.MaxResults = &v
7362	return s
7363}
7364
7365// SetNextToken sets the NextToken field's value.
7366func (s *ListJobsInput) SetNextToken(v string) *ListJobsInput {
7367	s.NextToken = &v
7368	return s
7369}
7370
7371// The maximum number of records to list in a single response.
7372type ListJobsOutput struct {
7373	_ struct{} `type:"structure"`
7374
7375	// The result structure for the list job result request.
7376	//
7377	// JobSummaries is a required field
7378	JobSummaries []*JobSummary `locationName:"jobSummaries" type:"list" required:"true"`
7379
7380	// A pagination token. If non-null the pagination token is returned in a result.
7381	// Pass its value in another request to retrieve more entries.
7382	NextToken *string `locationName:"nextToken" type:"string"`
7383}
7384
7385// String returns the string representation
7386func (s ListJobsOutput) String() string {
7387	return awsutil.Prettify(s)
7388}
7389
7390// GoString returns the string representation
7391func (s ListJobsOutput) GoString() string {
7392	return s.String()
7393}
7394
7395// SetJobSummaries sets the JobSummaries field's value.
7396func (s *ListJobsOutput) SetJobSummaries(v []*JobSummary) *ListJobsOutput {
7397	s.JobSummaries = v
7398	return s
7399}
7400
7401// SetNextToken sets the NextToken field's value.
7402func (s *ListJobsOutput) SetNextToken(v string) *ListJobsOutput {
7403	s.NextToken = &v
7404	return s
7405}
7406
7407// The request structure to use to list tags for a resource.
7408type ListTagsForResourceInput struct {
7409	_ struct{} `type:"structure"`
7410
7411	// The Amazon Resource Name (ARN) to use to list tags.
7412	//
7413	// ResourceArn is a required field
7414	ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
7415}
7416
7417// String returns the string representation
7418func (s ListTagsForResourceInput) String() string {
7419	return awsutil.Prettify(s)
7420}
7421
7422// GoString returns the string representation
7423func (s ListTagsForResourceInput) GoString() string {
7424	return s.String()
7425}
7426
7427// Validate inspects the fields of the type to determine if they are valid.
7428func (s *ListTagsForResourceInput) Validate() error {
7429	invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
7430	if s.ResourceArn == nil {
7431		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
7432	}
7433	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
7434		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
7435	}
7436
7437	if invalidParams.Len() > 0 {
7438		return invalidParams
7439	}
7440	return nil
7441}
7442
7443// SetResourceArn sets the ResourceArn field's value.
7444func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
7445	s.ResourceArn = &v
7446	return s
7447}
7448
7449// The response for the list tags for resource request.
7450type ListTagsForResourceOutput struct {
7451	_ struct{} `type:"structure"`
7452
7453	// A list of tags for the specified The Amazon Resource Name (ARN).
7454	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
7455}
7456
7457// String returns the string representation
7458func (s ListTagsForResourceOutput) String() string {
7459	return awsutil.Prettify(s)
7460}
7461
7462// GoString returns the string representation
7463func (s ListTagsForResourceOutput) GoString() string {
7464	return s.String()
7465}
7466
7467// SetTags sets the Tags field's value.
7468func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
7469	s.Tags = v
7470	return s
7471}
7472
7473// The request structure for the list webhooks request.
7474type ListWebhooksInput struct {
7475	_ struct{} `type:"structure"`
7476
7477	// The unique ID for an Amplify app.
7478	//
7479	// AppId is a required field
7480	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
7481
7482	// The maximum number of records to list in a single response.
7483	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
7484
7485	// A pagination token. Set to null to start listing webhooks from the start.
7486	// If non-null,the pagination token is returned in a result. Pass its value
7487	// in here to list more webhooks.
7488	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
7489}
7490
7491// String returns the string representation
7492func (s ListWebhooksInput) String() string {
7493	return awsutil.Prettify(s)
7494}
7495
7496// GoString returns the string representation
7497func (s ListWebhooksInput) GoString() string {
7498	return s.String()
7499}
7500
7501// Validate inspects the fields of the type to determine if they are valid.
7502func (s *ListWebhooksInput) Validate() error {
7503	invalidParams := request.ErrInvalidParams{Context: "ListWebhooksInput"}
7504	if s.AppId == nil {
7505		invalidParams.Add(request.NewErrParamRequired("AppId"))
7506	}
7507	if s.AppId != nil && len(*s.AppId) < 1 {
7508		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
7509	}
7510	if s.MaxResults != nil && *s.MaxResults < 1 {
7511		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
7512	}
7513
7514	if invalidParams.Len() > 0 {
7515		return invalidParams
7516	}
7517	return nil
7518}
7519
7520// SetAppId sets the AppId field's value.
7521func (s *ListWebhooksInput) SetAppId(v string) *ListWebhooksInput {
7522	s.AppId = &v
7523	return s
7524}
7525
7526// SetMaxResults sets the MaxResults field's value.
7527func (s *ListWebhooksInput) SetMaxResults(v int64) *ListWebhooksInput {
7528	s.MaxResults = &v
7529	return s
7530}
7531
7532// SetNextToken sets the NextToken field's value.
7533func (s *ListWebhooksInput) SetNextToken(v string) *ListWebhooksInput {
7534	s.NextToken = &v
7535	return s
7536}
7537
7538// The result structure for the list webhooks request.
7539type ListWebhooksOutput struct {
7540	_ struct{} `type:"structure"`
7541
7542	// A pagination token. If non-null, the pagination token is returned in a result.
7543	// Pass its value in another request to retrieve more entries.
7544	NextToken *string `locationName:"nextToken" type:"string"`
7545
7546	// A list of webhooks.
7547	//
7548	// Webhooks is a required field
7549	Webhooks []*Webhook `locationName:"webhooks" type:"list" required:"true"`
7550}
7551
7552// String returns the string representation
7553func (s ListWebhooksOutput) String() string {
7554	return awsutil.Prettify(s)
7555}
7556
7557// GoString returns the string representation
7558func (s ListWebhooksOutput) GoString() string {
7559	return s.String()
7560}
7561
7562// SetNextToken sets the NextToken field's value.
7563func (s *ListWebhooksOutput) SetNextToken(v string) *ListWebhooksOutput {
7564	s.NextToken = &v
7565	return s
7566}
7567
7568// SetWebhooks sets the Webhooks field's value.
7569func (s *ListWebhooksOutput) SetWebhooks(v []*Webhook) *ListWebhooksOutput {
7570	s.Webhooks = v
7571	return s
7572}
7573
7574// An entity was not found during an operation.
7575type NotFoundException struct {
7576	_            struct{}                  `type:"structure"`
7577	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
7578
7579	Message_ *string `locationName:"message" type:"string"`
7580}
7581
7582// String returns the string representation
7583func (s NotFoundException) String() string {
7584	return awsutil.Prettify(s)
7585}
7586
7587// GoString returns the string representation
7588func (s NotFoundException) GoString() string {
7589	return s.String()
7590}
7591
7592func newErrorNotFoundException(v protocol.ResponseMetadata) error {
7593	return &NotFoundException{
7594		RespMetadata: v,
7595	}
7596}
7597
7598// Code returns the exception type name.
7599func (s *NotFoundException) Code() string {
7600	return "NotFoundException"
7601}
7602
7603// Message returns the exception's message.
7604func (s *NotFoundException) Message() string {
7605	if s.Message_ != nil {
7606		return *s.Message_
7607	}
7608	return ""
7609}
7610
7611// OrigErr always returns nil, satisfies awserr.Error interface.
7612func (s *NotFoundException) OrigErr() error {
7613	return nil
7614}
7615
7616func (s *NotFoundException) Error() string {
7617	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
7618}
7619
7620// Status code returns the HTTP status code for the request's response error.
7621func (s *NotFoundException) StatusCode() int {
7622	return s.RespMetadata.StatusCode
7623}
7624
7625// RequestID returns the service's response RequestID for request.
7626func (s *NotFoundException) RequestID() string {
7627	return s.RespMetadata.RequestID
7628}
7629
7630// Describes the information about a production branch for an Amplify app.
7631type ProductionBranch struct {
7632	_ struct{} `type:"structure"`
7633
7634	// The branch name for the production branch.
7635	BranchName *string `locationName:"branchName" min:"1" type:"string"`
7636
7637	// The last deploy time of the production branch.
7638	LastDeployTime *time.Time `locationName:"lastDeployTime" type:"timestamp"`
7639
7640	// The status of the production branch.
7641	Status *string `locationName:"status" min:"3" type:"string"`
7642
7643	// The thumbnail URL for the production branch.
7644	ThumbnailUrl *string `locationName:"thumbnailUrl" min:"1" type:"string"`
7645}
7646
7647// String returns the string representation
7648func (s ProductionBranch) String() string {
7649	return awsutil.Prettify(s)
7650}
7651
7652// GoString returns the string representation
7653func (s ProductionBranch) GoString() string {
7654	return s.String()
7655}
7656
7657// SetBranchName sets the BranchName field's value.
7658func (s *ProductionBranch) SetBranchName(v string) *ProductionBranch {
7659	s.BranchName = &v
7660	return s
7661}
7662
7663// SetLastDeployTime sets the LastDeployTime field's value.
7664func (s *ProductionBranch) SetLastDeployTime(v time.Time) *ProductionBranch {
7665	s.LastDeployTime = &v
7666	return s
7667}
7668
7669// SetStatus sets the Status field's value.
7670func (s *ProductionBranch) SetStatus(v string) *ProductionBranch {
7671	s.Status = &v
7672	return s
7673}
7674
7675// SetThumbnailUrl sets the ThumbnailUrl field's value.
7676func (s *ProductionBranch) SetThumbnailUrl(v string) *ProductionBranch {
7677	s.ThumbnailUrl = &v
7678	return s
7679}
7680
7681// An operation failed due to a non-existent resource.
7682type ResourceNotFoundException struct {
7683	_            struct{}                  `type:"structure"`
7684	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
7685
7686	Code_ *string `locationName:"code" type:"string"`
7687
7688	Message_ *string `locationName:"message" type:"string"`
7689}
7690
7691// String returns the string representation
7692func (s ResourceNotFoundException) String() string {
7693	return awsutil.Prettify(s)
7694}
7695
7696// GoString returns the string representation
7697func (s ResourceNotFoundException) GoString() string {
7698	return s.String()
7699}
7700
7701func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
7702	return &ResourceNotFoundException{
7703		RespMetadata: v,
7704	}
7705}
7706
7707// Code returns the exception type name.
7708func (s *ResourceNotFoundException) Code() string {
7709	return "ResourceNotFoundException"
7710}
7711
7712// Message returns the exception's message.
7713func (s *ResourceNotFoundException) Message() string {
7714	if s.Message_ != nil {
7715		return *s.Message_
7716	}
7717	return ""
7718}
7719
7720// OrigErr always returns nil, satisfies awserr.Error interface.
7721func (s *ResourceNotFoundException) OrigErr() error {
7722	return nil
7723}
7724
7725func (s *ResourceNotFoundException) Error() string {
7726	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
7727}
7728
7729// Status code returns the HTTP status code for the request's response error.
7730func (s *ResourceNotFoundException) StatusCode() int {
7731	return s.RespMetadata.StatusCode
7732}
7733
7734// RequestID returns the service's response RequestID for request.
7735func (s *ResourceNotFoundException) RequestID() string {
7736	return s.RespMetadata.RequestID
7737}
7738
7739// The request structure for the start a deployment request.
7740type StartDeploymentInput struct {
7741	_ struct{} `type:"structure"`
7742
7743	// The unique ID for an Amplify app.
7744	//
7745	// AppId is a required field
7746	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
7747
7748	// The name for the branch, for the job.
7749	//
7750	// BranchName is a required field
7751	BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
7752
7753	// The job ID for this deployment, generated by the create deployment request.
7754	JobId *string `locationName:"jobId" type:"string"`
7755
7756	// The source URL for this deployment, used when calling start deployment without
7757	// create deployment. The source URL can be any HTTP GET URL that is publicly
7758	// accessible and downloads a single .zip file.
7759	SourceUrl *string `locationName:"sourceUrl" type:"string"`
7760}
7761
7762// String returns the string representation
7763func (s StartDeploymentInput) String() string {
7764	return awsutil.Prettify(s)
7765}
7766
7767// GoString returns the string representation
7768func (s StartDeploymentInput) GoString() string {
7769	return s.String()
7770}
7771
7772// Validate inspects the fields of the type to determine if they are valid.
7773func (s *StartDeploymentInput) Validate() error {
7774	invalidParams := request.ErrInvalidParams{Context: "StartDeploymentInput"}
7775	if s.AppId == nil {
7776		invalidParams.Add(request.NewErrParamRequired("AppId"))
7777	}
7778	if s.AppId != nil && len(*s.AppId) < 1 {
7779		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
7780	}
7781	if s.BranchName == nil {
7782		invalidParams.Add(request.NewErrParamRequired("BranchName"))
7783	}
7784	if s.BranchName != nil && len(*s.BranchName) < 1 {
7785		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
7786	}
7787
7788	if invalidParams.Len() > 0 {
7789		return invalidParams
7790	}
7791	return nil
7792}
7793
7794// SetAppId sets the AppId field's value.
7795func (s *StartDeploymentInput) SetAppId(v string) *StartDeploymentInput {
7796	s.AppId = &v
7797	return s
7798}
7799
7800// SetBranchName sets the BranchName field's value.
7801func (s *StartDeploymentInput) SetBranchName(v string) *StartDeploymentInput {
7802	s.BranchName = &v
7803	return s
7804}
7805
7806// SetJobId sets the JobId field's value.
7807func (s *StartDeploymentInput) SetJobId(v string) *StartDeploymentInput {
7808	s.JobId = &v
7809	return s
7810}
7811
7812// SetSourceUrl sets the SourceUrl field's value.
7813func (s *StartDeploymentInput) SetSourceUrl(v string) *StartDeploymentInput {
7814	s.SourceUrl = &v
7815	return s
7816}
7817
7818// The result structure for the start a deployment request.
7819type StartDeploymentOutput struct {
7820	_ struct{} `type:"structure"`
7821
7822	// The summary for the job.
7823	//
7824	// JobSummary is a required field
7825	JobSummary *JobSummary `locationName:"jobSummary" type:"structure" required:"true"`
7826}
7827
7828// String returns the string representation
7829func (s StartDeploymentOutput) String() string {
7830	return awsutil.Prettify(s)
7831}
7832
7833// GoString returns the string representation
7834func (s StartDeploymentOutput) GoString() string {
7835	return s.String()
7836}
7837
7838// SetJobSummary sets the JobSummary field's value.
7839func (s *StartDeploymentOutput) SetJobSummary(v *JobSummary) *StartDeploymentOutput {
7840	s.JobSummary = v
7841	return s
7842}
7843
7844// The request structure for the start job request.
7845type StartJobInput struct {
7846	_ struct{} `type:"structure"`
7847
7848	// The unique ID for an Amplify app.
7849	//
7850	// AppId is a required field
7851	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
7852
7853	// The branch name for the job.
7854	//
7855	// BranchName is a required field
7856	BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
7857
7858	// The commit ID from a third-party repository provider for the job.
7859	CommitId *string `locationName:"commitId" type:"string"`
7860
7861	// The commit message from a third-party repository provider for the job.
7862	CommitMessage *string `locationName:"commitMessage" type:"string"`
7863
7864	// The commit date and time for the job.
7865	CommitTime *time.Time `locationName:"commitTime" type:"timestamp"`
7866
7867	// The unique ID for an existing job. This is required if the value of jobType
7868	// is RETRY.
7869	JobId *string `locationName:"jobId" type:"string"`
7870
7871	// A descriptive reason for starting this job.
7872	JobReason *string `locationName:"jobReason" type:"string"`
7873
7874	// Describes the type for the job. The job type RELEASE starts a new job with
7875	// the latest change from the specified branch. This value is available only
7876	// for apps that are connected to a repository. The job type RETRY retries an
7877	// existing job. If the job type value is RETRY, the jobId is also required.
7878	//
7879	// JobType is a required field
7880	JobType *string `locationName:"jobType" type:"string" required:"true" enum:"JobType"`
7881}
7882
7883// String returns the string representation
7884func (s StartJobInput) String() string {
7885	return awsutil.Prettify(s)
7886}
7887
7888// GoString returns the string representation
7889func (s StartJobInput) GoString() string {
7890	return s.String()
7891}
7892
7893// Validate inspects the fields of the type to determine if they are valid.
7894func (s *StartJobInput) Validate() error {
7895	invalidParams := request.ErrInvalidParams{Context: "StartJobInput"}
7896	if s.AppId == nil {
7897		invalidParams.Add(request.NewErrParamRequired("AppId"))
7898	}
7899	if s.AppId != nil && len(*s.AppId) < 1 {
7900		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
7901	}
7902	if s.BranchName == nil {
7903		invalidParams.Add(request.NewErrParamRequired("BranchName"))
7904	}
7905	if s.BranchName != nil && len(*s.BranchName) < 1 {
7906		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
7907	}
7908	if s.JobType == nil {
7909		invalidParams.Add(request.NewErrParamRequired("JobType"))
7910	}
7911
7912	if invalidParams.Len() > 0 {
7913		return invalidParams
7914	}
7915	return nil
7916}
7917
7918// SetAppId sets the AppId field's value.
7919func (s *StartJobInput) SetAppId(v string) *StartJobInput {
7920	s.AppId = &v
7921	return s
7922}
7923
7924// SetBranchName sets the BranchName field's value.
7925func (s *StartJobInput) SetBranchName(v string) *StartJobInput {
7926	s.BranchName = &v
7927	return s
7928}
7929
7930// SetCommitId sets the CommitId field's value.
7931func (s *StartJobInput) SetCommitId(v string) *StartJobInput {
7932	s.CommitId = &v
7933	return s
7934}
7935
7936// SetCommitMessage sets the CommitMessage field's value.
7937func (s *StartJobInput) SetCommitMessage(v string) *StartJobInput {
7938	s.CommitMessage = &v
7939	return s
7940}
7941
7942// SetCommitTime sets the CommitTime field's value.
7943func (s *StartJobInput) SetCommitTime(v time.Time) *StartJobInput {
7944	s.CommitTime = &v
7945	return s
7946}
7947
7948// SetJobId sets the JobId field's value.
7949func (s *StartJobInput) SetJobId(v string) *StartJobInput {
7950	s.JobId = &v
7951	return s
7952}
7953
7954// SetJobReason sets the JobReason field's value.
7955func (s *StartJobInput) SetJobReason(v string) *StartJobInput {
7956	s.JobReason = &v
7957	return s
7958}
7959
7960// SetJobType sets the JobType field's value.
7961func (s *StartJobInput) SetJobType(v string) *StartJobInput {
7962	s.JobType = &v
7963	return s
7964}
7965
7966// The result structure for the run job request.
7967type StartJobOutput struct {
7968	_ struct{} `type:"structure"`
7969
7970	// The summary for the job.
7971	//
7972	// JobSummary is a required field
7973	JobSummary *JobSummary `locationName:"jobSummary" type:"structure" required:"true"`
7974}
7975
7976// String returns the string representation
7977func (s StartJobOutput) String() string {
7978	return awsutil.Prettify(s)
7979}
7980
7981// GoString returns the string representation
7982func (s StartJobOutput) GoString() string {
7983	return s.String()
7984}
7985
7986// SetJobSummary sets the JobSummary field's value.
7987func (s *StartJobOutput) SetJobSummary(v *JobSummary) *StartJobOutput {
7988	s.JobSummary = v
7989	return s
7990}
7991
7992// Describes an execution step, for an execution job, for an Amplify app.
7993type Step struct {
7994	_ struct{} `type:"structure"`
7995
7996	// The URL to the artifact for the execution step.
7997	ArtifactsUrl *string `locationName:"artifactsUrl" type:"string"`
7998
7999	// The context for the current step. Includes a build image if the step is build.
8000	Context *string `locationName:"context" type:"string"`
8001
8002	// The end date and time of the execution step.
8003	//
8004	// EndTime is a required field
8005	EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"`
8006
8007	// The URL to the logs for the execution step.
8008	LogUrl *string `locationName:"logUrl" type:"string"`
8009
8010	// The list of screenshot URLs for the execution step, if relevant.
8011	Screenshots map[string]*string `locationName:"screenshots" type:"map"`
8012
8013	// The start date and time of the execution step.
8014	//
8015	// StartTime is a required field
8016	StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
8017
8018	// The status of the execution step.
8019	//
8020	// Status is a required field
8021	Status *string `locationName:"status" type:"string" required:"true" enum:"JobStatus"`
8022
8023	// The reason for the current step status.
8024	StatusReason *string `locationName:"statusReason" type:"string"`
8025
8026	// The name of the execution step.
8027	//
8028	// StepName is a required field
8029	StepName *string `locationName:"stepName" type:"string" required:"true"`
8030
8031	// The URL to the test artifact for the execution step.
8032	TestArtifactsUrl *string `locationName:"testArtifactsUrl" type:"string"`
8033
8034	// The URL to the test configuration for the execution step.
8035	TestConfigUrl *string `locationName:"testConfigUrl" type:"string"`
8036}
8037
8038// String returns the string representation
8039func (s Step) String() string {
8040	return awsutil.Prettify(s)
8041}
8042
8043// GoString returns the string representation
8044func (s Step) GoString() string {
8045	return s.String()
8046}
8047
8048// SetArtifactsUrl sets the ArtifactsUrl field's value.
8049func (s *Step) SetArtifactsUrl(v string) *Step {
8050	s.ArtifactsUrl = &v
8051	return s
8052}
8053
8054// SetContext sets the Context field's value.
8055func (s *Step) SetContext(v string) *Step {
8056	s.Context = &v
8057	return s
8058}
8059
8060// SetEndTime sets the EndTime field's value.
8061func (s *Step) SetEndTime(v time.Time) *Step {
8062	s.EndTime = &v
8063	return s
8064}
8065
8066// SetLogUrl sets the LogUrl field's value.
8067func (s *Step) SetLogUrl(v string) *Step {
8068	s.LogUrl = &v
8069	return s
8070}
8071
8072// SetScreenshots sets the Screenshots field's value.
8073func (s *Step) SetScreenshots(v map[string]*string) *Step {
8074	s.Screenshots = v
8075	return s
8076}
8077
8078// SetStartTime sets the StartTime field's value.
8079func (s *Step) SetStartTime(v time.Time) *Step {
8080	s.StartTime = &v
8081	return s
8082}
8083
8084// SetStatus sets the Status field's value.
8085func (s *Step) SetStatus(v string) *Step {
8086	s.Status = &v
8087	return s
8088}
8089
8090// SetStatusReason sets the StatusReason field's value.
8091func (s *Step) SetStatusReason(v string) *Step {
8092	s.StatusReason = &v
8093	return s
8094}
8095
8096// SetStepName sets the StepName field's value.
8097func (s *Step) SetStepName(v string) *Step {
8098	s.StepName = &v
8099	return s
8100}
8101
8102// SetTestArtifactsUrl sets the TestArtifactsUrl field's value.
8103func (s *Step) SetTestArtifactsUrl(v string) *Step {
8104	s.TestArtifactsUrl = &v
8105	return s
8106}
8107
8108// SetTestConfigUrl sets the TestConfigUrl field's value.
8109func (s *Step) SetTestConfigUrl(v string) *Step {
8110	s.TestConfigUrl = &v
8111	return s
8112}
8113
8114// The request structure for the stop job request.
8115type StopJobInput struct {
8116	_ struct{} `type:"structure"`
8117
8118	// The unique ID for an Amplify app.
8119	//
8120	// AppId is a required field
8121	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
8122
8123	// The name for the branch, for the job.
8124	//
8125	// BranchName is a required field
8126	BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
8127
8128	// The unique id for the job.
8129	//
8130	// JobId is a required field
8131	JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
8132}
8133
8134// String returns the string representation
8135func (s StopJobInput) String() string {
8136	return awsutil.Prettify(s)
8137}
8138
8139// GoString returns the string representation
8140func (s StopJobInput) GoString() string {
8141	return s.String()
8142}
8143
8144// Validate inspects the fields of the type to determine if they are valid.
8145func (s *StopJobInput) Validate() error {
8146	invalidParams := request.ErrInvalidParams{Context: "StopJobInput"}
8147	if s.AppId == nil {
8148		invalidParams.Add(request.NewErrParamRequired("AppId"))
8149	}
8150	if s.AppId != nil && len(*s.AppId) < 1 {
8151		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
8152	}
8153	if s.BranchName == nil {
8154		invalidParams.Add(request.NewErrParamRequired("BranchName"))
8155	}
8156	if s.BranchName != nil && len(*s.BranchName) < 1 {
8157		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
8158	}
8159	if s.JobId == nil {
8160		invalidParams.Add(request.NewErrParamRequired("JobId"))
8161	}
8162	if s.JobId != nil && len(*s.JobId) < 1 {
8163		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
8164	}
8165
8166	if invalidParams.Len() > 0 {
8167		return invalidParams
8168	}
8169	return nil
8170}
8171
8172// SetAppId sets the AppId field's value.
8173func (s *StopJobInput) SetAppId(v string) *StopJobInput {
8174	s.AppId = &v
8175	return s
8176}
8177
8178// SetBranchName sets the BranchName field's value.
8179func (s *StopJobInput) SetBranchName(v string) *StopJobInput {
8180	s.BranchName = &v
8181	return s
8182}
8183
8184// SetJobId sets the JobId field's value.
8185func (s *StopJobInput) SetJobId(v string) *StopJobInput {
8186	s.JobId = &v
8187	return s
8188}
8189
8190// The result structure for the stop job request.
8191type StopJobOutput struct {
8192	_ struct{} `type:"structure"`
8193
8194	// The summary for the job.
8195	//
8196	// JobSummary is a required field
8197	JobSummary *JobSummary `locationName:"jobSummary" type:"structure" required:"true"`
8198}
8199
8200// String returns the string representation
8201func (s StopJobOutput) String() string {
8202	return awsutil.Prettify(s)
8203}
8204
8205// GoString returns the string representation
8206func (s StopJobOutput) GoString() string {
8207	return s.String()
8208}
8209
8210// SetJobSummary sets the JobSummary field's value.
8211func (s *StopJobOutput) SetJobSummary(v *JobSummary) *StopJobOutput {
8212	s.JobSummary = v
8213	return s
8214}
8215
8216// The subdomain for the domain association.
8217type SubDomain struct {
8218	_ struct{} `type:"structure"`
8219
8220	// The DNS record for the subdomain.
8221	//
8222	// DnsRecord is a required field
8223	DnsRecord *string `locationName:"dnsRecord" type:"string" required:"true"`
8224
8225	// Describes the settings for the subdomain.
8226	//
8227	// SubDomainSetting is a required field
8228	SubDomainSetting *SubDomainSetting `locationName:"subDomainSetting" type:"structure" required:"true"`
8229
8230	// The verified status of the subdomain
8231	//
8232	// Verified is a required field
8233	Verified *bool `locationName:"verified" type:"boolean" required:"true"`
8234}
8235
8236// String returns the string representation
8237func (s SubDomain) String() string {
8238	return awsutil.Prettify(s)
8239}
8240
8241// GoString returns the string representation
8242func (s SubDomain) GoString() string {
8243	return s.String()
8244}
8245
8246// SetDnsRecord sets the DnsRecord field's value.
8247func (s *SubDomain) SetDnsRecord(v string) *SubDomain {
8248	s.DnsRecord = &v
8249	return s
8250}
8251
8252// SetSubDomainSetting sets the SubDomainSetting field's value.
8253func (s *SubDomain) SetSubDomainSetting(v *SubDomainSetting) *SubDomain {
8254	s.SubDomainSetting = v
8255	return s
8256}
8257
8258// SetVerified sets the Verified field's value.
8259func (s *SubDomain) SetVerified(v bool) *SubDomain {
8260	s.Verified = &v
8261	return s
8262}
8263
8264// Describes the settings for the subdomain.
8265type SubDomainSetting struct {
8266	_ struct{} `type:"structure"`
8267
8268	// The branch name setting for the subdomain.
8269	//
8270	// BranchName is a required field
8271	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
8272
8273	// The prefix setting for the subdomain.
8274	//
8275	// Prefix is a required field
8276	Prefix *string `locationName:"prefix" type:"string" required:"true"`
8277}
8278
8279// String returns the string representation
8280func (s SubDomainSetting) String() string {
8281	return awsutil.Prettify(s)
8282}
8283
8284// GoString returns the string representation
8285func (s SubDomainSetting) GoString() string {
8286	return s.String()
8287}
8288
8289// Validate inspects the fields of the type to determine if they are valid.
8290func (s *SubDomainSetting) Validate() error {
8291	invalidParams := request.ErrInvalidParams{Context: "SubDomainSetting"}
8292	if s.BranchName == nil {
8293		invalidParams.Add(request.NewErrParamRequired("BranchName"))
8294	}
8295	if s.BranchName != nil && len(*s.BranchName) < 1 {
8296		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
8297	}
8298	if s.Prefix == nil {
8299		invalidParams.Add(request.NewErrParamRequired("Prefix"))
8300	}
8301
8302	if invalidParams.Len() > 0 {
8303		return invalidParams
8304	}
8305	return nil
8306}
8307
8308// SetBranchName sets the BranchName field's value.
8309func (s *SubDomainSetting) SetBranchName(v string) *SubDomainSetting {
8310	s.BranchName = &v
8311	return s
8312}
8313
8314// SetPrefix sets the Prefix field's value.
8315func (s *SubDomainSetting) SetPrefix(v string) *SubDomainSetting {
8316	s.Prefix = &v
8317	return s
8318}
8319
8320// The request structure to tag a resource with a tag key and value.
8321type TagResourceInput struct {
8322	_ struct{} `type:"structure"`
8323
8324	// The Amazon Resource Name (ARN) to use to tag a resource.
8325	//
8326	// ResourceArn is a required field
8327	ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
8328
8329	// The tags used to tag the resource.
8330	//
8331	// Tags is a required field
8332	Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"`
8333}
8334
8335// String returns the string representation
8336func (s TagResourceInput) String() string {
8337	return awsutil.Prettify(s)
8338}
8339
8340// GoString returns the string representation
8341func (s TagResourceInput) GoString() string {
8342	return s.String()
8343}
8344
8345// Validate inspects the fields of the type to determine if they are valid.
8346func (s *TagResourceInput) Validate() error {
8347	invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
8348	if s.ResourceArn == nil {
8349		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
8350	}
8351	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
8352		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
8353	}
8354	if s.Tags == nil {
8355		invalidParams.Add(request.NewErrParamRequired("Tags"))
8356	}
8357	if s.Tags != nil && len(s.Tags) < 1 {
8358		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
8359	}
8360
8361	if invalidParams.Len() > 0 {
8362		return invalidParams
8363	}
8364	return nil
8365}
8366
8367// SetResourceArn sets the ResourceArn field's value.
8368func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
8369	s.ResourceArn = &v
8370	return s
8371}
8372
8373// SetTags sets the Tags field's value.
8374func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
8375	s.Tags = v
8376	return s
8377}
8378
8379// The response for the tag resource request.
8380type TagResourceOutput struct {
8381	_ struct{} `type:"structure"`
8382}
8383
8384// String returns the string representation
8385func (s TagResourceOutput) String() string {
8386	return awsutil.Prettify(s)
8387}
8388
8389// GoString returns the string representation
8390func (s TagResourceOutput) GoString() string {
8391	return s.String()
8392}
8393
8394// An operation failed due to a lack of access.
8395type UnauthorizedException struct {
8396	_            struct{}                  `type:"structure"`
8397	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
8398
8399	Message_ *string `locationName:"message" type:"string"`
8400}
8401
8402// String returns the string representation
8403func (s UnauthorizedException) String() string {
8404	return awsutil.Prettify(s)
8405}
8406
8407// GoString returns the string representation
8408func (s UnauthorizedException) GoString() string {
8409	return s.String()
8410}
8411
8412func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
8413	return &UnauthorizedException{
8414		RespMetadata: v,
8415	}
8416}
8417
8418// Code returns the exception type name.
8419func (s *UnauthorizedException) Code() string {
8420	return "UnauthorizedException"
8421}
8422
8423// Message returns the exception's message.
8424func (s *UnauthorizedException) Message() string {
8425	if s.Message_ != nil {
8426		return *s.Message_
8427	}
8428	return ""
8429}
8430
8431// OrigErr always returns nil, satisfies awserr.Error interface.
8432func (s *UnauthorizedException) OrigErr() error {
8433	return nil
8434}
8435
8436func (s *UnauthorizedException) Error() string {
8437	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
8438}
8439
8440// Status code returns the HTTP status code for the request's response error.
8441func (s *UnauthorizedException) StatusCode() int {
8442	return s.RespMetadata.StatusCode
8443}
8444
8445// RequestID returns the service's response RequestID for request.
8446func (s *UnauthorizedException) RequestID() string {
8447	return s.RespMetadata.RequestID
8448}
8449
8450// The request structure for the untag resource request.
8451type UntagResourceInput struct {
8452	_ struct{} `type:"structure"`
8453
8454	// The Amazon Resource Name (ARN) to use to untag a resource.
8455	//
8456	// ResourceArn is a required field
8457	ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
8458
8459	// The tag keys to use to untag a resource.
8460	//
8461	// TagKeys is a required field
8462	TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"`
8463}
8464
8465// String returns the string representation
8466func (s UntagResourceInput) String() string {
8467	return awsutil.Prettify(s)
8468}
8469
8470// GoString returns the string representation
8471func (s UntagResourceInput) GoString() string {
8472	return s.String()
8473}
8474
8475// Validate inspects the fields of the type to determine if they are valid.
8476func (s *UntagResourceInput) Validate() error {
8477	invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
8478	if s.ResourceArn == nil {
8479		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
8480	}
8481	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
8482		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
8483	}
8484	if s.TagKeys == nil {
8485		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
8486	}
8487	if s.TagKeys != nil && len(s.TagKeys) < 1 {
8488		invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
8489	}
8490
8491	if invalidParams.Len() > 0 {
8492		return invalidParams
8493	}
8494	return nil
8495}
8496
8497// SetResourceArn sets the ResourceArn field's value.
8498func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
8499	s.ResourceArn = &v
8500	return s
8501}
8502
8503// SetTagKeys sets the TagKeys field's value.
8504func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
8505	s.TagKeys = v
8506	return s
8507}
8508
8509// The response for the untag resource request.
8510type UntagResourceOutput struct {
8511	_ struct{} `type:"structure"`
8512}
8513
8514// String returns the string representation
8515func (s UntagResourceOutput) String() string {
8516	return awsutil.Prettify(s)
8517}
8518
8519// GoString returns the string representation
8520func (s UntagResourceOutput) GoString() string {
8521	return s.String()
8522}
8523
8524// The request structure for the update app request.
8525type UpdateAppInput struct {
8526	_ struct{} `type:"structure"`
8527
8528	// The personal access token for a third-party source control system for an
8529	// Amplify app. The token is used to create webhook and a read-only deploy key.
8530	// The token is not stored.
8531	AccessToken *string `locationName:"accessToken" min:"1" type:"string" sensitive:"true"`
8532
8533	// The unique ID for an Amplify app.
8534	//
8535	// AppId is a required field
8536	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
8537
8538	// The automated branch creation configuration for the Amplify app.
8539	AutoBranchCreationConfig *AutoBranchCreationConfig `locationName:"autoBranchCreationConfig" type:"structure"`
8540
8541	// Describes the automated branch creation glob patterns for the Amplify app.
8542	AutoBranchCreationPatterns []*string `locationName:"autoBranchCreationPatterns" type:"list"`
8543
8544	// The basic authorization credentials for an Amplify app.
8545	BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
8546
8547	// The build specification (build spec) for an Amplify app.
8548	BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
8549
8550	// The custom redirect and rewrite rules for an Amplify app.
8551	CustomRules []*CustomRule `locationName:"customRules" type:"list"`
8552
8553	// The description for an Amplify app.
8554	Description *string `locationName:"description" type:"string"`
8555
8556	// Enables automated branch creation for the Amplify app.
8557	EnableAutoBranchCreation *bool `locationName:"enableAutoBranchCreation" type:"boolean"`
8558
8559	// Enables basic authorization for an Amplify app.
8560	EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"`
8561
8562	// Enables branch auto-building for an Amplify app.
8563	EnableBranchAutoBuild *bool `locationName:"enableBranchAutoBuild" type:"boolean"`
8564
8565	// Automatically disconnects a branch in the Amplify Console when you delete
8566	// a branch from your Git repository.
8567	EnableBranchAutoDeletion *bool `locationName:"enableBranchAutoDeletion" type:"boolean"`
8568
8569	// The environment variables for an Amplify app.
8570	EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"`
8571
8572	// The AWS Identity and Access Management (IAM) service role for an Amplify
8573	// app.
8574	IamServiceRoleArn *string `locationName:"iamServiceRoleArn" min:"1" type:"string"`
8575
8576	// The name for an Amplify app.
8577	Name *string `locationName:"name" min:"1" type:"string"`
8578
8579	// The OAuth token for a third-party source control system for an Amplify app.
8580	// The token is used to create a webhook and a read-only deploy key. The OAuth
8581	// token is not stored.
8582	OauthToken *string `locationName:"oauthToken" type:"string" sensitive:"true"`
8583
8584	// The platform for an Amplify app.
8585	Platform *string `locationName:"platform" type:"string" enum:"Platform"`
8586
8587	// The name of the repository for an Amplify app
8588	Repository *string `locationName:"repository" type:"string"`
8589}
8590
8591// String returns the string representation
8592func (s UpdateAppInput) String() string {
8593	return awsutil.Prettify(s)
8594}
8595
8596// GoString returns the string representation
8597func (s UpdateAppInput) GoString() string {
8598	return s.String()
8599}
8600
8601// Validate inspects the fields of the type to determine if they are valid.
8602func (s *UpdateAppInput) Validate() error {
8603	invalidParams := request.ErrInvalidParams{Context: "UpdateAppInput"}
8604	if s.AccessToken != nil && len(*s.AccessToken) < 1 {
8605		invalidParams.Add(request.NewErrParamMinLen("AccessToken", 1))
8606	}
8607	if s.AppId == nil {
8608		invalidParams.Add(request.NewErrParamRequired("AppId"))
8609	}
8610	if s.AppId != nil && len(*s.AppId) < 1 {
8611		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
8612	}
8613	if s.BuildSpec != nil && len(*s.BuildSpec) < 1 {
8614		invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1))
8615	}
8616	if s.IamServiceRoleArn != nil && len(*s.IamServiceRoleArn) < 1 {
8617		invalidParams.Add(request.NewErrParamMinLen("IamServiceRoleArn", 1))
8618	}
8619	if s.Name != nil && len(*s.Name) < 1 {
8620		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
8621	}
8622	if s.AutoBranchCreationConfig != nil {
8623		if err := s.AutoBranchCreationConfig.Validate(); err != nil {
8624			invalidParams.AddNested("AutoBranchCreationConfig", err.(request.ErrInvalidParams))
8625		}
8626	}
8627	if s.CustomRules != nil {
8628		for i, v := range s.CustomRules {
8629			if v == nil {
8630				continue
8631			}
8632			if err := v.Validate(); err != nil {
8633				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CustomRules", i), err.(request.ErrInvalidParams))
8634			}
8635		}
8636	}
8637
8638	if invalidParams.Len() > 0 {
8639		return invalidParams
8640	}
8641	return nil
8642}
8643
8644// SetAccessToken sets the AccessToken field's value.
8645func (s *UpdateAppInput) SetAccessToken(v string) *UpdateAppInput {
8646	s.AccessToken = &v
8647	return s
8648}
8649
8650// SetAppId sets the AppId field's value.
8651func (s *UpdateAppInput) SetAppId(v string) *UpdateAppInput {
8652	s.AppId = &v
8653	return s
8654}
8655
8656// SetAutoBranchCreationConfig sets the AutoBranchCreationConfig field's value.
8657func (s *UpdateAppInput) SetAutoBranchCreationConfig(v *AutoBranchCreationConfig) *UpdateAppInput {
8658	s.AutoBranchCreationConfig = v
8659	return s
8660}
8661
8662// SetAutoBranchCreationPatterns sets the AutoBranchCreationPatterns field's value.
8663func (s *UpdateAppInput) SetAutoBranchCreationPatterns(v []*string) *UpdateAppInput {
8664	s.AutoBranchCreationPatterns = v
8665	return s
8666}
8667
8668// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
8669func (s *UpdateAppInput) SetBasicAuthCredentials(v string) *UpdateAppInput {
8670	s.BasicAuthCredentials = &v
8671	return s
8672}
8673
8674// SetBuildSpec sets the BuildSpec field's value.
8675func (s *UpdateAppInput) SetBuildSpec(v string) *UpdateAppInput {
8676	s.BuildSpec = &v
8677	return s
8678}
8679
8680// SetCustomRules sets the CustomRules field's value.
8681func (s *UpdateAppInput) SetCustomRules(v []*CustomRule) *UpdateAppInput {
8682	s.CustomRules = v
8683	return s
8684}
8685
8686// SetDescription sets the Description field's value.
8687func (s *UpdateAppInput) SetDescription(v string) *UpdateAppInput {
8688	s.Description = &v
8689	return s
8690}
8691
8692// SetEnableAutoBranchCreation sets the EnableAutoBranchCreation field's value.
8693func (s *UpdateAppInput) SetEnableAutoBranchCreation(v bool) *UpdateAppInput {
8694	s.EnableAutoBranchCreation = &v
8695	return s
8696}
8697
8698// SetEnableBasicAuth sets the EnableBasicAuth field's value.
8699func (s *UpdateAppInput) SetEnableBasicAuth(v bool) *UpdateAppInput {
8700	s.EnableBasicAuth = &v
8701	return s
8702}
8703
8704// SetEnableBranchAutoBuild sets the EnableBranchAutoBuild field's value.
8705func (s *UpdateAppInput) SetEnableBranchAutoBuild(v bool) *UpdateAppInput {
8706	s.EnableBranchAutoBuild = &v
8707	return s
8708}
8709
8710// SetEnableBranchAutoDeletion sets the EnableBranchAutoDeletion field's value.
8711func (s *UpdateAppInput) SetEnableBranchAutoDeletion(v bool) *UpdateAppInput {
8712	s.EnableBranchAutoDeletion = &v
8713	return s
8714}
8715
8716// SetEnvironmentVariables sets the EnvironmentVariables field's value.
8717func (s *UpdateAppInput) SetEnvironmentVariables(v map[string]*string) *UpdateAppInput {
8718	s.EnvironmentVariables = v
8719	return s
8720}
8721
8722// SetIamServiceRoleArn sets the IamServiceRoleArn field's value.
8723func (s *UpdateAppInput) SetIamServiceRoleArn(v string) *UpdateAppInput {
8724	s.IamServiceRoleArn = &v
8725	return s
8726}
8727
8728// SetName sets the Name field's value.
8729func (s *UpdateAppInput) SetName(v string) *UpdateAppInput {
8730	s.Name = &v
8731	return s
8732}
8733
8734// SetOauthToken sets the OauthToken field's value.
8735func (s *UpdateAppInput) SetOauthToken(v string) *UpdateAppInput {
8736	s.OauthToken = &v
8737	return s
8738}
8739
8740// SetPlatform sets the Platform field's value.
8741func (s *UpdateAppInput) SetPlatform(v string) *UpdateAppInput {
8742	s.Platform = &v
8743	return s
8744}
8745
8746// SetRepository sets the Repository field's value.
8747func (s *UpdateAppInput) SetRepository(v string) *UpdateAppInput {
8748	s.Repository = &v
8749	return s
8750}
8751
8752// The result structure for an Amplify app update request.
8753type UpdateAppOutput struct {
8754	_ struct{} `type:"structure"`
8755
8756	// Represents the updated Amplify app.
8757	//
8758	// App is a required field
8759	App *App `locationName:"app" type:"structure" required:"true"`
8760}
8761
8762// String returns the string representation
8763func (s UpdateAppOutput) String() string {
8764	return awsutil.Prettify(s)
8765}
8766
8767// GoString returns the string representation
8768func (s UpdateAppOutput) GoString() string {
8769	return s.String()
8770}
8771
8772// SetApp sets the App field's value.
8773func (s *UpdateAppOutput) SetApp(v *App) *UpdateAppOutput {
8774	s.App = v
8775	return s
8776}
8777
8778// The request structure for the update branch request.
8779type UpdateBranchInput struct {
8780	_ struct{} `type:"structure"`
8781
8782	// The unique ID for an Amplify app.
8783	//
8784	// AppId is a required field
8785	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
8786
8787	// The Amazon Resource Name (ARN) for a backend environment that is part of
8788	// an Amplify app.
8789	BackendEnvironmentArn *string `locationName:"backendEnvironmentArn" min:"1" type:"string"`
8790
8791	// The basic authorization credentials for the branch.
8792	BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
8793
8794	// The name for the branch.
8795	//
8796	// BranchName is a required field
8797	BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
8798
8799	// The build specification (build spec) for the branch.
8800	BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
8801
8802	// The description for the branch.
8803	Description *string `locationName:"description" type:"string"`
8804
8805	// The display name for a branch. This is used as the default domain prefix.
8806	DisplayName *string `locationName:"displayName" type:"string"`
8807
8808	// Enables auto building for the branch.
8809	EnableAutoBuild *bool `locationName:"enableAutoBuild" type:"boolean"`
8810
8811	// Enables basic authorization for the branch.
8812	EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"`
8813
8814	// Enables notifications for the branch.
8815	EnableNotification *bool `locationName:"enableNotification" type:"boolean"`
8816
8817	// Enables pull request preview for this branch.
8818	EnablePullRequestPreview *bool `locationName:"enablePullRequestPreview" type:"boolean"`
8819
8820	// The environment variables for the branch.
8821	EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"`
8822
8823	// The framework for the branch.
8824	Framework *string `locationName:"framework" type:"string"`
8825
8826	// The Amplify environment name for the pull request.
8827	PullRequestEnvironmentName *string `locationName:"pullRequestEnvironmentName" type:"string"`
8828
8829	// Describes the current stage for the branch.
8830	Stage *string `locationName:"stage" type:"string" enum:"Stage"`
8831
8832	// The content Time to Live (TTL) for the website in seconds.
8833	Ttl *string `locationName:"ttl" type:"string"`
8834}
8835
8836// String returns the string representation
8837func (s UpdateBranchInput) String() string {
8838	return awsutil.Prettify(s)
8839}
8840
8841// GoString returns the string representation
8842func (s UpdateBranchInput) GoString() string {
8843	return s.String()
8844}
8845
8846// Validate inspects the fields of the type to determine if they are valid.
8847func (s *UpdateBranchInput) Validate() error {
8848	invalidParams := request.ErrInvalidParams{Context: "UpdateBranchInput"}
8849	if s.AppId == nil {
8850		invalidParams.Add(request.NewErrParamRequired("AppId"))
8851	}
8852	if s.AppId != nil && len(*s.AppId) < 1 {
8853		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
8854	}
8855	if s.BackendEnvironmentArn != nil && len(*s.BackendEnvironmentArn) < 1 {
8856		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentArn", 1))
8857	}
8858	if s.BranchName == nil {
8859		invalidParams.Add(request.NewErrParamRequired("BranchName"))
8860	}
8861	if s.BranchName != nil && len(*s.BranchName) < 1 {
8862		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
8863	}
8864	if s.BuildSpec != nil && len(*s.BuildSpec) < 1 {
8865		invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1))
8866	}
8867
8868	if invalidParams.Len() > 0 {
8869		return invalidParams
8870	}
8871	return nil
8872}
8873
8874// SetAppId sets the AppId field's value.
8875func (s *UpdateBranchInput) SetAppId(v string) *UpdateBranchInput {
8876	s.AppId = &v
8877	return s
8878}
8879
8880// SetBackendEnvironmentArn sets the BackendEnvironmentArn field's value.
8881func (s *UpdateBranchInput) SetBackendEnvironmentArn(v string) *UpdateBranchInput {
8882	s.BackendEnvironmentArn = &v
8883	return s
8884}
8885
8886// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
8887func (s *UpdateBranchInput) SetBasicAuthCredentials(v string) *UpdateBranchInput {
8888	s.BasicAuthCredentials = &v
8889	return s
8890}
8891
8892// SetBranchName sets the BranchName field's value.
8893func (s *UpdateBranchInput) SetBranchName(v string) *UpdateBranchInput {
8894	s.BranchName = &v
8895	return s
8896}
8897
8898// SetBuildSpec sets the BuildSpec field's value.
8899func (s *UpdateBranchInput) SetBuildSpec(v string) *UpdateBranchInput {
8900	s.BuildSpec = &v
8901	return s
8902}
8903
8904// SetDescription sets the Description field's value.
8905func (s *UpdateBranchInput) SetDescription(v string) *UpdateBranchInput {
8906	s.Description = &v
8907	return s
8908}
8909
8910// SetDisplayName sets the DisplayName field's value.
8911func (s *UpdateBranchInput) SetDisplayName(v string) *UpdateBranchInput {
8912	s.DisplayName = &v
8913	return s
8914}
8915
8916// SetEnableAutoBuild sets the EnableAutoBuild field's value.
8917func (s *UpdateBranchInput) SetEnableAutoBuild(v bool) *UpdateBranchInput {
8918	s.EnableAutoBuild = &v
8919	return s
8920}
8921
8922// SetEnableBasicAuth sets the EnableBasicAuth field's value.
8923func (s *UpdateBranchInput) SetEnableBasicAuth(v bool) *UpdateBranchInput {
8924	s.EnableBasicAuth = &v
8925	return s
8926}
8927
8928// SetEnableNotification sets the EnableNotification field's value.
8929func (s *UpdateBranchInput) SetEnableNotification(v bool) *UpdateBranchInput {
8930	s.EnableNotification = &v
8931	return s
8932}
8933
8934// SetEnablePullRequestPreview sets the EnablePullRequestPreview field's value.
8935func (s *UpdateBranchInput) SetEnablePullRequestPreview(v bool) *UpdateBranchInput {
8936	s.EnablePullRequestPreview = &v
8937	return s
8938}
8939
8940// SetEnvironmentVariables sets the EnvironmentVariables field's value.
8941func (s *UpdateBranchInput) SetEnvironmentVariables(v map[string]*string) *UpdateBranchInput {
8942	s.EnvironmentVariables = v
8943	return s
8944}
8945
8946// SetFramework sets the Framework field's value.
8947func (s *UpdateBranchInput) SetFramework(v string) *UpdateBranchInput {
8948	s.Framework = &v
8949	return s
8950}
8951
8952// SetPullRequestEnvironmentName sets the PullRequestEnvironmentName field's value.
8953func (s *UpdateBranchInput) SetPullRequestEnvironmentName(v string) *UpdateBranchInput {
8954	s.PullRequestEnvironmentName = &v
8955	return s
8956}
8957
8958// SetStage sets the Stage field's value.
8959func (s *UpdateBranchInput) SetStage(v string) *UpdateBranchInput {
8960	s.Stage = &v
8961	return s
8962}
8963
8964// SetTtl sets the Ttl field's value.
8965func (s *UpdateBranchInput) SetTtl(v string) *UpdateBranchInput {
8966	s.Ttl = &v
8967	return s
8968}
8969
8970// The result structure for the update branch request.
8971type UpdateBranchOutput struct {
8972	_ struct{} `type:"structure"`
8973
8974	// The branch for an Amplify app, which maps to a third-party repository branch.
8975	//
8976	// Branch is a required field
8977	Branch *Branch `locationName:"branch" type:"structure" required:"true"`
8978}
8979
8980// String returns the string representation
8981func (s UpdateBranchOutput) String() string {
8982	return awsutil.Prettify(s)
8983}
8984
8985// GoString returns the string representation
8986func (s UpdateBranchOutput) GoString() string {
8987	return s.String()
8988}
8989
8990// SetBranch sets the Branch field's value.
8991func (s *UpdateBranchOutput) SetBranch(v *Branch) *UpdateBranchOutput {
8992	s.Branch = v
8993	return s
8994}
8995
8996// The request structure for the update domain association request.
8997type UpdateDomainAssociationInput struct {
8998	_ struct{} `type:"structure"`
8999
9000	// The unique ID for an Amplify app.
9001	//
9002	// AppId is a required field
9003	AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
9004
9005	// Sets the branch patterns for automatic subdomain creation.
9006	AutoSubDomainCreationPatterns []*string `locationName:"autoSubDomainCreationPatterns" type:"list"`
9007
9008	// The required AWS Identity and Access Management (IAM) service role for the
9009	// Amazon Resource Name (ARN) for automatically creating subdomains.
9010	AutoSubDomainIAMRole *string `locationName:"autoSubDomainIAMRole" type:"string"`
9011
9012	// The name of the domain.
9013	//
9014	// DomainName is a required field
9015	DomainName *string `location:"uri" locationName:"domainName" type:"string" required:"true"`
9016
9017	// Enables the automated creation of subdomains for branches.
9018	EnableAutoSubDomain *bool `locationName:"enableAutoSubDomain" type:"boolean"`
9019
9020	// Describes the settings for the subdomain.
9021	//
9022	// SubDomainSettings is a required field
9023	SubDomainSettings []*SubDomainSetting `locationName:"subDomainSettings" type:"list" required:"true"`
9024}
9025
9026// String returns the string representation
9027func (s UpdateDomainAssociationInput) String() string {
9028	return awsutil.Prettify(s)
9029}
9030
9031// GoString returns the string representation
9032func (s UpdateDomainAssociationInput) GoString() string {
9033	return s.String()
9034}
9035
9036// Validate inspects the fields of the type to determine if they are valid.
9037func (s *UpdateDomainAssociationInput) Validate() error {
9038	invalidParams := request.ErrInvalidParams{Context: "UpdateDomainAssociationInput"}
9039	if s.AppId == nil {
9040		invalidParams.Add(request.NewErrParamRequired("AppId"))
9041	}
9042	if s.AppId != nil && len(*s.AppId) < 1 {
9043		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
9044	}
9045	if s.DomainName == nil {
9046		invalidParams.Add(request.NewErrParamRequired("DomainName"))
9047	}
9048	if s.DomainName != nil && len(*s.DomainName) < 1 {
9049		invalidParams.Add(request.NewErrParamMinLen("DomainName", 1))
9050	}
9051	if s.SubDomainSettings == nil {
9052		invalidParams.Add(request.NewErrParamRequired("SubDomainSettings"))
9053	}
9054	if s.SubDomainSettings != nil {
9055		for i, v := range s.SubDomainSettings {
9056			if v == nil {
9057				continue
9058			}
9059			if err := v.Validate(); err != nil {
9060				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SubDomainSettings", i), err.(request.ErrInvalidParams))
9061			}
9062		}
9063	}
9064
9065	if invalidParams.Len() > 0 {
9066		return invalidParams
9067	}
9068	return nil
9069}
9070
9071// SetAppId sets the AppId field's value.
9072func (s *UpdateDomainAssociationInput) SetAppId(v string) *UpdateDomainAssociationInput {
9073	s.AppId = &v
9074	return s
9075}
9076
9077// SetAutoSubDomainCreationPatterns sets the AutoSubDomainCreationPatterns field's value.
9078func (s *UpdateDomainAssociationInput) SetAutoSubDomainCreationPatterns(v []*string) *UpdateDomainAssociationInput {
9079	s.AutoSubDomainCreationPatterns = v
9080	return s
9081}
9082
9083// SetAutoSubDomainIAMRole sets the AutoSubDomainIAMRole field's value.
9084func (s *UpdateDomainAssociationInput) SetAutoSubDomainIAMRole(v string) *UpdateDomainAssociationInput {
9085	s.AutoSubDomainIAMRole = &v
9086	return s
9087}
9088
9089// SetDomainName sets the DomainName field's value.
9090func (s *UpdateDomainAssociationInput) SetDomainName(v string) *UpdateDomainAssociationInput {
9091	s.DomainName = &v
9092	return s
9093}
9094
9095// SetEnableAutoSubDomain sets the EnableAutoSubDomain field's value.
9096func (s *UpdateDomainAssociationInput) SetEnableAutoSubDomain(v bool) *UpdateDomainAssociationInput {
9097	s.EnableAutoSubDomain = &v
9098	return s
9099}
9100
9101// SetSubDomainSettings sets the SubDomainSettings field's value.
9102func (s *UpdateDomainAssociationInput) SetSubDomainSettings(v []*SubDomainSetting) *UpdateDomainAssociationInput {
9103	s.SubDomainSettings = v
9104	return s
9105}
9106
9107// The result structure for the update domain association request.
9108type UpdateDomainAssociationOutput struct {
9109	_ struct{} `type:"structure"`
9110
9111	// Describes a domain association, which associates a custom domain with an
9112	// Amplify app.
9113	//
9114	// DomainAssociation is a required field
9115	DomainAssociation *DomainAssociation `locationName:"domainAssociation" type:"structure" required:"true"`
9116}
9117
9118// String returns the string representation
9119func (s UpdateDomainAssociationOutput) String() string {
9120	return awsutil.Prettify(s)
9121}
9122
9123// GoString returns the string representation
9124func (s UpdateDomainAssociationOutput) GoString() string {
9125	return s.String()
9126}
9127
9128// SetDomainAssociation sets the DomainAssociation field's value.
9129func (s *UpdateDomainAssociationOutput) SetDomainAssociation(v *DomainAssociation) *UpdateDomainAssociationOutput {
9130	s.DomainAssociation = v
9131	return s
9132}
9133
9134// The request structure for the update webhook request.
9135type UpdateWebhookInput struct {
9136	_ struct{} `type:"structure"`
9137
9138	// The name for a branch that is part of an Amplify app.
9139	BranchName *string `locationName:"branchName" min:"1" type:"string"`
9140
9141	// The description for a webhook.
9142	Description *string `locationName:"description" type:"string"`
9143
9144	// The unique ID for a webhook.
9145	//
9146	// WebhookId is a required field
9147	WebhookId *string `location:"uri" locationName:"webhookId" type:"string" required:"true"`
9148}
9149
9150// String returns the string representation
9151func (s UpdateWebhookInput) String() string {
9152	return awsutil.Prettify(s)
9153}
9154
9155// GoString returns the string representation
9156func (s UpdateWebhookInput) GoString() string {
9157	return s.String()
9158}
9159
9160// Validate inspects the fields of the type to determine if they are valid.
9161func (s *UpdateWebhookInput) Validate() error {
9162	invalidParams := request.ErrInvalidParams{Context: "UpdateWebhookInput"}
9163	if s.BranchName != nil && len(*s.BranchName) < 1 {
9164		invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
9165	}
9166	if s.WebhookId == nil {
9167		invalidParams.Add(request.NewErrParamRequired("WebhookId"))
9168	}
9169	if s.WebhookId != nil && len(*s.WebhookId) < 1 {
9170		invalidParams.Add(request.NewErrParamMinLen("WebhookId", 1))
9171	}
9172
9173	if invalidParams.Len() > 0 {
9174		return invalidParams
9175	}
9176	return nil
9177}
9178
9179// SetBranchName sets the BranchName field's value.
9180func (s *UpdateWebhookInput) SetBranchName(v string) *UpdateWebhookInput {
9181	s.BranchName = &v
9182	return s
9183}
9184
9185// SetDescription sets the Description field's value.
9186func (s *UpdateWebhookInput) SetDescription(v string) *UpdateWebhookInput {
9187	s.Description = &v
9188	return s
9189}
9190
9191// SetWebhookId sets the WebhookId field's value.
9192func (s *UpdateWebhookInput) SetWebhookId(v string) *UpdateWebhookInput {
9193	s.WebhookId = &v
9194	return s
9195}
9196
9197// The result structure for the update webhook request.
9198type UpdateWebhookOutput struct {
9199	_ struct{} `type:"structure"`
9200
9201	// Describes a webhook that connects repository events to an Amplify app.
9202	//
9203	// Webhook is a required field
9204	Webhook *Webhook `locationName:"webhook" type:"structure" required:"true"`
9205}
9206
9207// String returns the string representation
9208func (s UpdateWebhookOutput) String() string {
9209	return awsutil.Prettify(s)
9210}
9211
9212// GoString returns the string representation
9213func (s UpdateWebhookOutput) GoString() string {
9214	return s.String()
9215}
9216
9217// SetWebhook sets the Webhook field's value.
9218func (s *UpdateWebhookOutput) SetWebhook(v *Webhook) *UpdateWebhookOutput {
9219	s.Webhook = v
9220	return s
9221}
9222
9223// Describes a webhook that connects repository events to an Amplify app.
9224type Webhook struct {
9225	_ struct{} `type:"structure"`
9226
9227	// The name for a branch that is part of an Amplify app.
9228	//
9229	// BranchName is a required field
9230	BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
9231
9232	// The create date and time for a webhook.
9233	//
9234	// CreateTime is a required field
9235	CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"`
9236
9237	// The description for a webhook.
9238	//
9239	// Description is a required field
9240	Description *string `locationName:"description" type:"string" required:"true"`
9241
9242	// Updates the date and time for a webhook.
9243	//
9244	// UpdateTime is a required field
9245	UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"`
9246
9247	// The Amazon Resource Name (ARN) for the webhook.
9248	//
9249	// WebhookArn is a required field
9250	WebhookArn *string `locationName:"webhookArn" type:"string" required:"true"`
9251
9252	// The ID of the webhook.
9253	//
9254	// WebhookId is a required field
9255	WebhookId *string `locationName:"webhookId" type:"string" required:"true"`
9256
9257	// The URL of the webhook.
9258	//
9259	// WebhookUrl is a required field
9260	WebhookUrl *string `locationName:"webhookUrl" type:"string" required:"true"`
9261}
9262
9263// String returns the string representation
9264func (s Webhook) String() string {
9265	return awsutil.Prettify(s)
9266}
9267
9268// GoString returns the string representation
9269func (s Webhook) GoString() string {
9270	return s.String()
9271}
9272
9273// SetBranchName sets the BranchName field's value.
9274func (s *Webhook) SetBranchName(v string) *Webhook {
9275	s.BranchName = &v
9276	return s
9277}
9278
9279// SetCreateTime sets the CreateTime field's value.
9280func (s *Webhook) SetCreateTime(v time.Time) *Webhook {
9281	s.CreateTime = &v
9282	return s
9283}
9284
9285// SetDescription sets the Description field's value.
9286func (s *Webhook) SetDescription(v string) *Webhook {
9287	s.Description = &v
9288	return s
9289}
9290
9291// SetUpdateTime sets the UpdateTime field's value.
9292func (s *Webhook) SetUpdateTime(v time.Time) *Webhook {
9293	s.UpdateTime = &v
9294	return s
9295}
9296
9297// SetWebhookArn sets the WebhookArn field's value.
9298func (s *Webhook) SetWebhookArn(v string) *Webhook {
9299	s.WebhookArn = &v
9300	return s
9301}
9302
9303// SetWebhookId sets the WebhookId field's value.
9304func (s *Webhook) SetWebhookId(v string) *Webhook {
9305	s.WebhookId = &v
9306	return s
9307}
9308
9309// SetWebhookUrl sets the WebhookUrl field's value.
9310func (s *Webhook) SetWebhookUrl(v string) *Webhook {
9311	s.WebhookUrl = &v
9312	return s
9313}
9314
9315const (
9316	// DomainStatusPendingVerification is a DomainStatus enum value
9317	DomainStatusPendingVerification = "PENDING_VERIFICATION"
9318
9319	// DomainStatusInProgress is a DomainStatus enum value
9320	DomainStatusInProgress = "IN_PROGRESS"
9321
9322	// DomainStatusAvailable is a DomainStatus enum value
9323	DomainStatusAvailable = "AVAILABLE"
9324
9325	// DomainStatusPendingDeployment is a DomainStatus enum value
9326	DomainStatusPendingDeployment = "PENDING_DEPLOYMENT"
9327
9328	// DomainStatusFailed is a DomainStatus enum value
9329	DomainStatusFailed = "FAILED"
9330
9331	// DomainStatusCreating is a DomainStatus enum value
9332	DomainStatusCreating = "CREATING"
9333
9334	// DomainStatusRequestingCertificate is a DomainStatus enum value
9335	DomainStatusRequestingCertificate = "REQUESTING_CERTIFICATE"
9336
9337	// DomainStatusUpdating is a DomainStatus enum value
9338	DomainStatusUpdating = "UPDATING"
9339)
9340
9341const (
9342	// JobStatusPending is a JobStatus enum value
9343	JobStatusPending = "PENDING"
9344
9345	// JobStatusProvisioning is a JobStatus enum value
9346	JobStatusProvisioning = "PROVISIONING"
9347
9348	// JobStatusRunning is a JobStatus enum value
9349	JobStatusRunning = "RUNNING"
9350
9351	// JobStatusFailed is a JobStatus enum value
9352	JobStatusFailed = "FAILED"
9353
9354	// JobStatusSucceed is a JobStatus enum value
9355	JobStatusSucceed = "SUCCEED"
9356
9357	// JobStatusCancelling is a JobStatus enum value
9358	JobStatusCancelling = "CANCELLING"
9359
9360	// JobStatusCancelled is a JobStatus enum value
9361	JobStatusCancelled = "CANCELLED"
9362)
9363
9364const (
9365	// JobTypeRelease is a JobType enum value
9366	JobTypeRelease = "RELEASE"
9367
9368	// JobTypeRetry is a JobType enum value
9369	JobTypeRetry = "RETRY"
9370
9371	// JobTypeManual is a JobType enum value
9372	JobTypeManual = "MANUAL"
9373
9374	// JobTypeWebHook is a JobType enum value
9375	JobTypeWebHook = "WEB_HOOK"
9376)
9377
9378const (
9379	// PlatformWeb is a Platform enum value
9380	PlatformWeb = "WEB"
9381)
9382
9383const (
9384	// StageProduction is a Stage enum value
9385	StageProduction = "PRODUCTION"
9386
9387	// StageBeta is a Stage enum value
9388	StageBeta = "BETA"
9389
9390	// StageDevelopment is a Stage enum value
9391	StageDevelopment = "DEVELOPMENT"
9392
9393	// StageExperimental is a Stage enum value
9394	StageExperimental = "EXPERIMENTAL"
9395
9396	// StagePullRequest is a Stage enum value
9397	StagePullRequest = "PULL_REQUEST"
9398)
9399