1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package amplifybackend
4
5import (
6	"fmt"
7
8	"github.com/aws/aws-sdk-go/aws"
9	"github.com/aws/aws-sdk-go/aws/awsutil"
10	"github.com/aws/aws-sdk-go/aws/request"
11	"github.com/aws/aws-sdk-go/private/protocol"
12)
13
14const opCloneBackend = "CloneBackend"
15
16// CloneBackendRequest generates a "aws/request.Request" representing the
17// client's request for the CloneBackend operation. The "output" return
18// value will be populated with the request's response once the request completes
19// successfully.
20//
21// Use "Send" method on the returned Request to send the API call to the service.
22// the "output" return value is not valid until after Send returns without error.
23//
24// See CloneBackend for more information on using the CloneBackend
25// API call, and error handling.
26//
27// This method is useful when you want to inject custom logic or configuration
28// into the SDK's request lifecycle. Such as custom headers, or retry logic.
29//
30//
31//    // Example sending a request using the CloneBackendRequest method.
32//    req, resp := client.CloneBackendRequest(params)
33//
34//    err := req.Send()
35//    if err == nil { // resp is now filled
36//        fmt.Println(resp)
37//    }
38//
39// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CloneBackend
40func (c *AmplifyBackend) CloneBackendRequest(input *CloneBackendInput) (req *request.Request, output *CloneBackendOutput) {
41	op := &request.Operation{
42		Name:       opCloneBackend,
43		HTTPMethod: "POST",
44		HTTPPath:   "/backend/{appId}/environments/{backendEnvironmentName}/clone",
45	}
46
47	if input == nil {
48		input = &CloneBackendInput{}
49	}
50
51	output = &CloneBackendOutput{}
52	req = c.newRequest(op, input, output)
53	return
54}
55
56// CloneBackend API operation for AmplifyBackend.
57//
58// This operation clones an existing backend.
59//
60// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
61// with awserr.Error's Code and Message methods to get detailed information about
62// the error.
63//
64// See the AWS API reference guide for AmplifyBackend's
65// API operation CloneBackend for usage and error information.
66//
67// Returned Error Types:
68//   * NotFoundException
69//   An error returned when a specific resource type is not found.
70//
71//   * GatewayTimeoutException
72//   An error returned if there's a temporary issue with the service.
73//
74//   * TooManyRequestsException
75//   An error that is returned when a limit of a specific type has been exceeded.
76//
77//   * BadRequestException
78//   An error returned if a request is not formed properly.
79//
80// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CloneBackend
81func (c *AmplifyBackend) CloneBackend(input *CloneBackendInput) (*CloneBackendOutput, error) {
82	req, out := c.CloneBackendRequest(input)
83	return out, req.Send()
84}
85
86// CloneBackendWithContext is the same as CloneBackend with the addition of
87// the ability to pass a context and additional request options.
88//
89// See CloneBackend for details on how to use this API operation.
90//
91// The context must be non-nil and will be used for request cancellation. If
92// the context is nil a panic will occur. In the future the SDK may create
93// sub-contexts for http.Requests. See https://golang.org/pkg/context/
94// for more information on using Contexts.
95func (c *AmplifyBackend) CloneBackendWithContext(ctx aws.Context, input *CloneBackendInput, opts ...request.Option) (*CloneBackendOutput, error) {
96	req, out := c.CloneBackendRequest(input)
97	req.SetContext(ctx)
98	req.ApplyOptions(opts...)
99	return out, req.Send()
100}
101
102const opCreateBackend = "CreateBackend"
103
104// CreateBackendRequest generates a "aws/request.Request" representing the
105// client's request for the CreateBackend operation. The "output" return
106// value will be populated with the request's response once the request completes
107// successfully.
108//
109// Use "Send" method on the returned Request to send the API call to the service.
110// the "output" return value is not valid until after Send returns without error.
111//
112// See CreateBackend for more information on using the CreateBackend
113// API call, and error handling.
114//
115// This method is useful when you want to inject custom logic or configuration
116// into the SDK's request lifecycle. Such as custom headers, or retry logic.
117//
118//
119//    // Example sending a request using the CreateBackendRequest method.
120//    req, resp := client.CreateBackendRequest(params)
121//
122//    err := req.Send()
123//    if err == nil { // resp is now filled
124//        fmt.Println(resp)
125//    }
126//
127// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackend
128func (c *AmplifyBackend) CreateBackendRequest(input *CreateBackendInput) (req *request.Request, output *CreateBackendOutput) {
129	op := &request.Operation{
130		Name:       opCreateBackend,
131		HTTPMethod: "POST",
132		HTTPPath:   "/backend",
133	}
134
135	if input == nil {
136		input = &CreateBackendInput{}
137	}
138
139	output = &CreateBackendOutput{}
140	req = c.newRequest(op, input, output)
141	return
142}
143
144// CreateBackend API operation for AmplifyBackend.
145//
146// This operation creates a backend for an Amplify app. Backends are automatically
147// created at the time of app creation.
148//
149// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
150// with awserr.Error's Code and Message methods to get detailed information about
151// the error.
152//
153// See the AWS API reference guide for AmplifyBackend's
154// API operation CreateBackend for usage and error information.
155//
156// Returned Error Types:
157//   * NotFoundException
158//   An error returned when a specific resource type is not found.
159//
160//   * GatewayTimeoutException
161//   An error returned if there's a temporary issue with the service.
162//
163//   * TooManyRequestsException
164//   An error that is returned when a limit of a specific type has been exceeded.
165//
166//   * BadRequestException
167//   An error returned if a request is not formed properly.
168//
169// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackend
170func (c *AmplifyBackend) CreateBackend(input *CreateBackendInput) (*CreateBackendOutput, error) {
171	req, out := c.CreateBackendRequest(input)
172	return out, req.Send()
173}
174
175// CreateBackendWithContext is the same as CreateBackend with the addition of
176// the ability to pass a context and additional request options.
177//
178// See CreateBackend for details on how to use this API operation.
179//
180// The context must be non-nil and will be used for request cancellation. If
181// the context is nil a panic will occur. In the future the SDK may create
182// sub-contexts for http.Requests. See https://golang.org/pkg/context/
183// for more information on using Contexts.
184func (c *AmplifyBackend) CreateBackendWithContext(ctx aws.Context, input *CreateBackendInput, opts ...request.Option) (*CreateBackendOutput, error) {
185	req, out := c.CreateBackendRequest(input)
186	req.SetContext(ctx)
187	req.ApplyOptions(opts...)
188	return out, req.Send()
189}
190
191const opCreateBackendAPI = "CreateBackendAPI"
192
193// CreateBackendAPIRequest generates a "aws/request.Request" representing the
194// client's request for the CreateBackendAPI operation. The "output" return
195// value will be populated with the request's response once the request completes
196// successfully.
197//
198// Use "Send" method on the returned Request to send the API call to the service.
199// the "output" return value is not valid until after Send returns without error.
200//
201// See CreateBackendAPI for more information on using the CreateBackendAPI
202// API call, and error handling.
203//
204// This method is useful when you want to inject custom logic or configuration
205// into the SDK's request lifecycle. Such as custom headers, or retry logic.
206//
207//
208//    // Example sending a request using the CreateBackendAPIRequest method.
209//    req, resp := client.CreateBackendAPIRequest(params)
210//
211//    err := req.Send()
212//    if err == nil { // resp is now filled
213//        fmt.Println(resp)
214//    }
215//
216// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendAPI
217func (c *AmplifyBackend) CreateBackendAPIRequest(input *CreateBackendAPIInput) (req *request.Request, output *CreateBackendAPIOutput) {
218	op := &request.Operation{
219		Name:       opCreateBackendAPI,
220		HTTPMethod: "POST",
221		HTTPPath:   "/backend/{appId}/api",
222	}
223
224	if input == nil {
225		input = &CreateBackendAPIInput{}
226	}
227
228	output = &CreateBackendAPIOutput{}
229	req = c.newRequest(op, input, output)
230	return
231}
232
233// CreateBackendAPI API operation for AmplifyBackend.
234//
235// Creates a new backend API resource.
236//
237// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
238// with awserr.Error's Code and Message methods to get detailed information about
239// the error.
240//
241// See the AWS API reference guide for AmplifyBackend's
242// API operation CreateBackendAPI for usage and error information.
243//
244// Returned Error Types:
245//   * NotFoundException
246//   An error returned when a specific resource type is not found.
247//
248//   * GatewayTimeoutException
249//   An error returned if there's a temporary issue with the service.
250//
251//   * TooManyRequestsException
252//   An error that is returned when a limit of a specific type has been exceeded.
253//
254//   * BadRequestException
255//   An error returned if a request is not formed properly.
256//
257// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendAPI
258func (c *AmplifyBackend) CreateBackendAPI(input *CreateBackendAPIInput) (*CreateBackendAPIOutput, error) {
259	req, out := c.CreateBackendAPIRequest(input)
260	return out, req.Send()
261}
262
263// CreateBackendAPIWithContext is the same as CreateBackendAPI with the addition of
264// the ability to pass a context and additional request options.
265//
266// See CreateBackendAPI for details on how to use this API operation.
267//
268// The context must be non-nil and will be used for request cancellation. If
269// the context is nil a panic will occur. In the future the SDK may create
270// sub-contexts for http.Requests. See https://golang.org/pkg/context/
271// for more information on using Contexts.
272func (c *AmplifyBackend) CreateBackendAPIWithContext(ctx aws.Context, input *CreateBackendAPIInput, opts ...request.Option) (*CreateBackendAPIOutput, error) {
273	req, out := c.CreateBackendAPIRequest(input)
274	req.SetContext(ctx)
275	req.ApplyOptions(opts...)
276	return out, req.Send()
277}
278
279const opCreateBackendAuth = "CreateBackendAuth"
280
281// CreateBackendAuthRequest generates a "aws/request.Request" representing the
282// client's request for the CreateBackendAuth operation. The "output" return
283// value will be populated with the request's response once the request completes
284// successfully.
285//
286// Use "Send" method on the returned Request to send the API call to the service.
287// the "output" return value is not valid until after Send returns without error.
288//
289// See CreateBackendAuth for more information on using the CreateBackendAuth
290// API call, and error handling.
291//
292// This method is useful when you want to inject custom logic or configuration
293// into the SDK's request lifecycle. Such as custom headers, or retry logic.
294//
295//
296//    // Example sending a request using the CreateBackendAuthRequest method.
297//    req, resp := client.CreateBackendAuthRequest(params)
298//
299//    err := req.Send()
300//    if err == nil { // resp is now filled
301//        fmt.Println(resp)
302//    }
303//
304// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendAuth
305func (c *AmplifyBackend) CreateBackendAuthRequest(input *CreateBackendAuthInput) (req *request.Request, output *CreateBackendAuthOutput) {
306	op := &request.Operation{
307		Name:       opCreateBackendAuth,
308		HTTPMethod: "POST",
309		HTTPPath:   "/backend/{appId}/auth",
310	}
311
312	if input == nil {
313		input = &CreateBackendAuthInput{}
314	}
315
316	output = &CreateBackendAuthOutput{}
317	req = c.newRequest(op, input, output)
318	return
319}
320
321// CreateBackendAuth API operation for AmplifyBackend.
322//
323// Creates a new backend authentication resource.
324//
325// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
326// with awserr.Error's Code and Message methods to get detailed information about
327// the error.
328//
329// See the AWS API reference guide for AmplifyBackend's
330// API operation CreateBackendAuth for usage and error information.
331//
332// Returned Error Types:
333//   * NotFoundException
334//   An error returned when a specific resource type is not found.
335//
336//   * GatewayTimeoutException
337//   An error returned if there's a temporary issue with the service.
338//
339//   * TooManyRequestsException
340//   An error that is returned when a limit of a specific type has been exceeded.
341//
342//   * BadRequestException
343//   An error returned if a request is not formed properly.
344//
345// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendAuth
346func (c *AmplifyBackend) CreateBackendAuth(input *CreateBackendAuthInput) (*CreateBackendAuthOutput, error) {
347	req, out := c.CreateBackendAuthRequest(input)
348	return out, req.Send()
349}
350
351// CreateBackendAuthWithContext is the same as CreateBackendAuth with the addition of
352// the ability to pass a context and additional request options.
353//
354// See CreateBackendAuth for details on how to use this API operation.
355//
356// The context must be non-nil and will be used for request cancellation. If
357// the context is nil a panic will occur. In the future the SDK may create
358// sub-contexts for http.Requests. See https://golang.org/pkg/context/
359// for more information on using Contexts.
360func (c *AmplifyBackend) CreateBackendAuthWithContext(ctx aws.Context, input *CreateBackendAuthInput, opts ...request.Option) (*CreateBackendAuthOutput, error) {
361	req, out := c.CreateBackendAuthRequest(input)
362	req.SetContext(ctx)
363	req.ApplyOptions(opts...)
364	return out, req.Send()
365}
366
367const opCreateBackendConfig = "CreateBackendConfig"
368
369// CreateBackendConfigRequest generates a "aws/request.Request" representing the
370// client's request for the CreateBackendConfig operation. The "output" return
371// value will be populated with the request's response once the request completes
372// successfully.
373//
374// Use "Send" method on the returned Request to send the API call to the service.
375// the "output" return value is not valid until after Send returns without error.
376//
377// See CreateBackendConfig for more information on using the CreateBackendConfig
378// API call, and error handling.
379//
380// This method is useful when you want to inject custom logic or configuration
381// into the SDK's request lifecycle. Such as custom headers, or retry logic.
382//
383//
384//    // Example sending a request using the CreateBackendConfigRequest method.
385//    req, resp := client.CreateBackendConfigRequest(params)
386//
387//    err := req.Send()
388//    if err == nil { // resp is now filled
389//        fmt.Println(resp)
390//    }
391//
392// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendConfig
393func (c *AmplifyBackend) CreateBackendConfigRequest(input *CreateBackendConfigInput) (req *request.Request, output *CreateBackendConfigOutput) {
394	op := &request.Operation{
395		Name:       opCreateBackendConfig,
396		HTTPMethod: "POST",
397		HTTPPath:   "/backend/{appId}/config",
398	}
399
400	if input == nil {
401		input = &CreateBackendConfigInput{}
402	}
403
404	output = &CreateBackendConfigOutput{}
405	req = c.newRequest(op, input, output)
406	return
407}
408
409// CreateBackendConfig API operation for AmplifyBackend.
410//
411// Creates a config object for a backend.
412//
413// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
414// with awserr.Error's Code and Message methods to get detailed information about
415// the error.
416//
417// See the AWS API reference guide for AmplifyBackend's
418// API operation CreateBackendConfig for usage and error information.
419//
420// Returned Error Types:
421//   * NotFoundException
422//   An error returned when a specific resource type is not found.
423//
424//   * GatewayTimeoutException
425//   An error returned if there's a temporary issue with the service.
426//
427//   * TooManyRequestsException
428//   An error that is returned when a limit of a specific type has been exceeded.
429//
430//   * BadRequestException
431//   An error returned if a request is not formed properly.
432//
433// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendConfig
434func (c *AmplifyBackend) CreateBackendConfig(input *CreateBackendConfigInput) (*CreateBackendConfigOutput, error) {
435	req, out := c.CreateBackendConfigRequest(input)
436	return out, req.Send()
437}
438
439// CreateBackendConfigWithContext is the same as CreateBackendConfig with the addition of
440// the ability to pass a context and additional request options.
441//
442// See CreateBackendConfig for details on how to use this API operation.
443//
444// The context must be non-nil and will be used for request cancellation. If
445// the context is nil a panic will occur. In the future the SDK may create
446// sub-contexts for http.Requests. See https://golang.org/pkg/context/
447// for more information on using Contexts.
448func (c *AmplifyBackend) CreateBackendConfigWithContext(ctx aws.Context, input *CreateBackendConfigInput, opts ...request.Option) (*CreateBackendConfigOutput, error) {
449	req, out := c.CreateBackendConfigRequest(input)
450	req.SetContext(ctx)
451	req.ApplyOptions(opts...)
452	return out, req.Send()
453}
454
455const opCreateToken = "CreateToken"
456
457// CreateTokenRequest generates a "aws/request.Request" representing the
458// client's request for the CreateToken operation. The "output" return
459// value will be populated with the request's response once the request completes
460// successfully.
461//
462// Use "Send" method on the returned Request to send the API call to the service.
463// the "output" return value is not valid until after Send returns without error.
464//
465// See CreateToken for more information on using the CreateToken
466// API call, and error handling.
467//
468// This method is useful when you want to inject custom logic or configuration
469// into the SDK's request lifecycle. Such as custom headers, or retry logic.
470//
471//
472//    // Example sending a request using the CreateTokenRequest method.
473//    req, resp := client.CreateTokenRequest(params)
474//
475//    err := req.Send()
476//    if err == nil { // resp is now filled
477//        fmt.Println(resp)
478//    }
479//
480// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateToken
481func (c *AmplifyBackend) CreateTokenRequest(input *CreateTokenInput) (req *request.Request, output *CreateTokenOutput) {
482	op := &request.Operation{
483		Name:       opCreateToken,
484		HTTPMethod: "POST",
485		HTTPPath:   "/backend/{appId}/challenge",
486	}
487
488	if input == nil {
489		input = &CreateTokenInput{}
490	}
491
492	output = &CreateTokenOutput{}
493	req = c.newRequest(op, input, output)
494	return
495}
496
497// CreateToken API operation for AmplifyBackend.
498//
499// Generates a one-time challenge code to authenticate a user into your Amplify
500// Admin UI.
501//
502// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
503// with awserr.Error's Code and Message methods to get detailed information about
504// the error.
505//
506// See the AWS API reference guide for AmplifyBackend's
507// API operation CreateToken for usage and error information.
508//
509// Returned Error Types:
510//   * NotFoundException
511//   An error returned when a specific resource type is not found.
512//
513//   * GatewayTimeoutException
514//   An error returned if there's a temporary issue with the service.
515//
516//   * TooManyRequestsException
517//   An error that is returned when a limit of a specific type has been exceeded.
518//
519//   * BadRequestException
520//   An error returned if a request is not formed properly.
521//
522// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateToken
523func (c *AmplifyBackend) CreateToken(input *CreateTokenInput) (*CreateTokenOutput, error) {
524	req, out := c.CreateTokenRequest(input)
525	return out, req.Send()
526}
527
528// CreateTokenWithContext is the same as CreateToken with the addition of
529// the ability to pass a context and additional request options.
530//
531// See CreateToken for details on how to use this API operation.
532//
533// The context must be non-nil and will be used for request cancellation. If
534// the context is nil a panic will occur. In the future the SDK may create
535// sub-contexts for http.Requests. See https://golang.org/pkg/context/
536// for more information on using Contexts.
537func (c *AmplifyBackend) CreateTokenWithContext(ctx aws.Context, input *CreateTokenInput, opts ...request.Option) (*CreateTokenOutput, error) {
538	req, out := c.CreateTokenRequest(input)
539	req.SetContext(ctx)
540	req.ApplyOptions(opts...)
541	return out, req.Send()
542}
543
544const opDeleteBackend = "DeleteBackend"
545
546// DeleteBackendRequest generates a "aws/request.Request" representing the
547// client's request for the DeleteBackend operation. The "output" return
548// value will be populated with the request's response once the request completes
549// successfully.
550//
551// Use "Send" method on the returned Request to send the API call to the service.
552// the "output" return value is not valid until after Send returns without error.
553//
554// See DeleteBackend for more information on using the DeleteBackend
555// API call, and error handling.
556//
557// This method is useful when you want to inject custom logic or configuration
558// into the SDK's request lifecycle. Such as custom headers, or retry logic.
559//
560//
561//    // Example sending a request using the DeleteBackendRequest method.
562//    req, resp := client.DeleteBackendRequest(params)
563//
564//    err := req.Send()
565//    if err == nil { // resp is now filled
566//        fmt.Println(resp)
567//    }
568//
569// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackend
570func (c *AmplifyBackend) DeleteBackendRequest(input *DeleteBackendInput) (req *request.Request, output *DeleteBackendOutput) {
571	op := &request.Operation{
572		Name:       opDeleteBackend,
573		HTTPMethod: "POST",
574		HTTPPath:   "/backend/{appId}/environments/{backendEnvironmentName}/remove",
575	}
576
577	if input == nil {
578		input = &DeleteBackendInput{}
579	}
580
581	output = &DeleteBackendOutput{}
582	req = c.newRequest(op, input, output)
583	return
584}
585
586// DeleteBackend API operation for AmplifyBackend.
587//
588// Removes an existing environment from your Amplify project.
589//
590// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
591// with awserr.Error's Code and Message methods to get detailed information about
592// the error.
593//
594// See the AWS API reference guide for AmplifyBackend's
595// API operation DeleteBackend for usage and error information.
596//
597// Returned Error Types:
598//   * NotFoundException
599//   An error returned when a specific resource type is not found.
600//
601//   * GatewayTimeoutException
602//   An error returned if there's a temporary issue with the service.
603//
604//   * TooManyRequestsException
605//   An error that is returned when a limit of a specific type has been exceeded.
606//
607//   * BadRequestException
608//   An error returned if a request is not formed properly.
609//
610// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackend
611func (c *AmplifyBackend) DeleteBackend(input *DeleteBackendInput) (*DeleteBackendOutput, error) {
612	req, out := c.DeleteBackendRequest(input)
613	return out, req.Send()
614}
615
616// DeleteBackendWithContext is the same as DeleteBackend with the addition of
617// the ability to pass a context and additional request options.
618//
619// See DeleteBackend for details on how to use this API operation.
620//
621// The context must be non-nil and will be used for request cancellation. If
622// the context is nil a panic will occur. In the future the SDK may create
623// sub-contexts for http.Requests. See https://golang.org/pkg/context/
624// for more information on using Contexts.
625func (c *AmplifyBackend) DeleteBackendWithContext(ctx aws.Context, input *DeleteBackendInput, opts ...request.Option) (*DeleteBackendOutput, error) {
626	req, out := c.DeleteBackendRequest(input)
627	req.SetContext(ctx)
628	req.ApplyOptions(opts...)
629	return out, req.Send()
630}
631
632const opDeleteBackendAPI = "DeleteBackendAPI"
633
634// DeleteBackendAPIRequest generates a "aws/request.Request" representing the
635// client's request for the DeleteBackendAPI operation. The "output" return
636// value will be populated with the request's response once the request completes
637// successfully.
638//
639// Use "Send" method on the returned Request to send the API call to the service.
640// the "output" return value is not valid until after Send returns without error.
641//
642// See DeleteBackendAPI for more information on using the DeleteBackendAPI
643// API call, and error handling.
644//
645// This method is useful when you want to inject custom logic or configuration
646// into the SDK's request lifecycle. Such as custom headers, or retry logic.
647//
648//
649//    // Example sending a request using the DeleteBackendAPIRequest method.
650//    req, resp := client.DeleteBackendAPIRequest(params)
651//
652//    err := req.Send()
653//    if err == nil { // resp is now filled
654//        fmt.Println(resp)
655//    }
656//
657// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackendAPI
658func (c *AmplifyBackend) DeleteBackendAPIRequest(input *DeleteBackendAPIInput) (req *request.Request, output *DeleteBackendAPIOutput) {
659	op := &request.Operation{
660		Name:       opDeleteBackendAPI,
661		HTTPMethod: "POST",
662		HTTPPath:   "/backend/{appId}/api/{backendEnvironmentName}/remove",
663	}
664
665	if input == nil {
666		input = &DeleteBackendAPIInput{}
667	}
668
669	output = &DeleteBackendAPIOutput{}
670	req = c.newRequest(op, input, output)
671	return
672}
673
674// DeleteBackendAPI API operation for AmplifyBackend.
675//
676// Deletes an existing backend API resource.
677//
678// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
679// with awserr.Error's Code and Message methods to get detailed information about
680// the error.
681//
682// See the AWS API reference guide for AmplifyBackend's
683// API operation DeleteBackendAPI for usage and error information.
684//
685// Returned Error Types:
686//   * NotFoundException
687//   An error returned when a specific resource type is not found.
688//
689//   * GatewayTimeoutException
690//   An error returned if there's a temporary issue with the service.
691//
692//   * TooManyRequestsException
693//   An error that is returned when a limit of a specific type has been exceeded.
694//
695//   * BadRequestException
696//   An error returned if a request is not formed properly.
697//
698// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackendAPI
699func (c *AmplifyBackend) DeleteBackendAPI(input *DeleteBackendAPIInput) (*DeleteBackendAPIOutput, error) {
700	req, out := c.DeleteBackendAPIRequest(input)
701	return out, req.Send()
702}
703
704// DeleteBackendAPIWithContext is the same as DeleteBackendAPI with the addition of
705// the ability to pass a context and additional request options.
706//
707// See DeleteBackendAPI for details on how to use this API operation.
708//
709// The context must be non-nil and will be used for request cancellation. If
710// the context is nil a panic will occur. In the future the SDK may create
711// sub-contexts for http.Requests. See https://golang.org/pkg/context/
712// for more information on using Contexts.
713func (c *AmplifyBackend) DeleteBackendAPIWithContext(ctx aws.Context, input *DeleteBackendAPIInput, opts ...request.Option) (*DeleteBackendAPIOutput, error) {
714	req, out := c.DeleteBackendAPIRequest(input)
715	req.SetContext(ctx)
716	req.ApplyOptions(opts...)
717	return out, req.Send()
718}
719
720const opDeleteBackendAuth = "DeleteBackendAuth"
721
722// DeleteBackendAuthRequest generates a "aws/request.Request" representing the
723// client's request for the DeleteBackendAuth operation. The "output" return
724// value will be populated with the request's response once the request completes
725// successfully.
726//
727// Use "Send" method on the returned Request to send the API call to the service.
728// the "output" return value is not valid until after Send returns without error.
729//
730// See DeleteBackendAuth for more information on using the DeleteBackendAuth
731// API call, and error handling.
732//
733// This method is useful when you want to inject custom logic or configuration
734// into the SDK's request lifecycle. Such as custom headers, or retry logic.
735//
736//
737//    // Example sending a request using the DeleteBackendAuthRequest method.
738//    req, resp := client.DeleteBackendAuthRequest(params)
739//
740//    err := req.Send()
741//    if err == nil { // resp is now filled
742//        fmt.Println(resp)
743//    }
744//
745// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackendAuth
746func (c *AmplifyBackend) DeleteBackendAuthRequest(input *DeleteBackendAuthInput) (req *request.Request, output *DeleteBackendAuthOutput) {
747	op := &request.Operation{
748		Name:       opDeleteBackendAuth,
749		HTTPMethod: "POST",
750		HTTPPath:   "/backend/{appId}/auth/{backendEnvironmentName}/remove",
751	}
752
753	if input == nil {
754		input = &DeleteBackendAuthInput{}
755	}
756
757	output = &DeleteBackendAuthOutput{}
758	req = c.newRequest(op, input, output)
759	return
760}
761
762// DeleteBackendAuth API operation for AmplifyBackend.
763//
764// Deletes an existing backend authentication resource.
765//
766// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
767// with awserr.Error's Code and Message methods to get detailed information about
768// the error.
769//
770// See the AWS API reference guide for AmplifyBackend's
771// API operation DeleteBackendAuth for usage and error information.
772//
773// Returned Error Types:
774//   * NotFoundException
775//   An error returned when a specific resource type is not found.
776//
777//   * GatewayTimeoutException
778//   An error returned if there's a temporary issue with the service.
779//
780//   * TooManyRequestsException
781//   An error that is returned when a limit of a specific type has been exceeded.
782//
783//   * BadRequestException
784//   An error returned if a request is not formed properly.
785//
786// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackendAuth
787func (c *AmplifyBackend) DeleteBackendAuth(input *DeleteBackendAuthInput) (*DeleteBackendAuthOutput, error) {
788	req, out := c.DeleteBackendAuthRequest(input)
789	return out, req.Send()
790}
791
792// DeleteBackendAuthWithContext is the same as DeleteBackendAuth with the addition of
793// the ability to pass a context and additional request options.
794//
795// See DeleteBackendAuth for details on how to use this API operation.
796//
797// The context must be non-nil and will be used for request cancellation. If
798// the context is nil a panic will occur. In the future the SDK may create
799// sub-contexts for http.Requests. See https://golang.org/pkg/context/
800// for more information on using Contexts.
801func (c *AmplifyBackend) DeleteBackendAuthWithContext(ctx aws.Context, input *DeleteBackendAuthInput, opts ...request.Option) (*DeleteBackendAuthOutput, error) {
802	req, out := c.DeleteBackendAuthRequest(input)
803	req.SetContext(ctx)
804	req.ApplyOptions(opts...)
805	return out, req.Send()
806}
807
808const opDeleteToken = "DeleteToken"
809
810// DeleteTokenRequest generates a "aws/request.Request" representing the
811// client's request for the DeleteToken operation. The "output" return
812// value will be populated with the request's response once the request completes
813// successfully.
814//
815// Use "Send" method on the returned Request to send the API call to the service.
816// the "output" return value is not valid until after Send returns without error.
817//
818// See DeleteToken for more information on using the DeleteToken
819// API call, and error handling.
820//
821// This method is useful when you want to inject custom logic or configuration
822// into the SDK's request lifecycle. Such as custom headers, or retry logic.
823//
824//
825//    // Example sending a request using the DeleteTokenRequest method.
826//    req, resp := client.DeleteTokenRequest(params)
827//
828//    err := req.Send()
829//    if err == nil { // resp is now filled
830//        fmt.Println(resp)
831//    }
832//
833// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteToken
834func (c *AmplifyBackend) DeleteTokenRequest(input *DeleteTokenInput) (req *request.Request, output *DeleteTokenOutput) {
835	op := &request.Operation{
836		Name:       opDeleteToken,
837		HTTPMethod: "POST",
838		HTTPPath:   "/backend/{appId}/challenge/{sessionId}/remove",
839	}
840
841	if input == nil {
842		input = &DeleteTokenInput{}
843	}
844
845	output = &DeleteTokenOutput{}
846	req = c.newRequest(op, input, output)
847	return
848}
849
850// DeleteToken API operation for AmplifyBackend.
851//
852// Deletes the challenge token based on the given appId and sessionId.
853//
854// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
855// with awserr.Error's Code and Message methods to get detailed information about
856// the error.
857//
858// See the AWS API reference guide for AmplifyBackend's
859// API operation DeleteToken for usage and error information.
860//
861// Returned Error Types:
862//   * NotFoundException
863//   An error returned when a specific resource type is not found.
864//
865//   * GatewayTimeoutException
866//   An error returned if there's a temporary issue with the service.
867//
868//   * TooManyRequestsException
869//   An error that is returned when a limit of a specific type has been exceeded.
870//
871//   * BadRequestException
872//   An error returned if a request is not formed properly.
873//
874// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteToken
875func (c *AmplifyBackend) DeleteToken(input *DeleteTokenInput) (*DeleteTokenOutput, error) {
876	req, out := c.DeleteTokenRequest(input)
877	return out, req.Send()
878}
879
880// DeleteTokenWithContext is the same as DeleteToken with the addition of
881// the ability to pass a context and additional request options.
882//
883// See DeleteToken for details on how to use this API operation.
884//
885// The context must be non-nil and will be used for request cancellation. If
886// the context is nil a panic will occur. In the future the SDK may create
887// sub-contexts for http.Requests. See https://golang.org/pkg/context/
888// for more information on using Contexts.
889func (c *AmplifyBackend) DeleteTokenWithContext(ctx aws.Context, input *DeleteTokenInput, opts ...request.Option) (*DeleteTokenOutput, error) {
890	req, out := c.DeleteTokenRequest(input)
891	req.SetContext(ctx)
892	req.ApplyOptions(opts...)
893	return out, req.Send()
894}
895
896const opGenerateBackendAPIModels = "GenerateBackendAPIModels"
897
898// GenerateBackendAPIModelsRequest generates a "aws/request.Request" representing the
899// client's request for the GenerateBackendAPIModels operation. The "output" return
900// value will be populated with the request's response once the request completes
901// successfully.
902//
903// Use "Send" method on the returned Request to send the API call to the service.
904// the "output" return value is not valid until after Send returns without error.
905//
906// See GenerateBackendAPIModels for more information on using the GenerateBackendAPIModels
907// API call, and error handling.
908//
909// This method is useful when you want to inject custom logic or configuration
910// into the SDK's request lifecycle. Such as custom headers, or retry logic.
911//
912//
913//    // Example sending a request using the GenerateBackendAPIModelsRequest method.
914//    req, resp := client.GenerateBackendAPIModelsRequest(params)
915//
916//    err := req.Send()
917//    if err == nil { // resp is now filled
918//        fmt.Println(resp)
919//    }
920//
921// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GenerateBackendAPIModels
922func (c *AmplifyBackend) GenerateBackendAPIModelsRequest(input *GenerateBackendAPIModelsInput) (req *request.Request, output *GenerateBackendAPIModelsOutput) {
923	op := &request.Operation{
924		Name:       opGenerateBackendAPIModels,
925		HTTPMethod: "POST",
926		HTTPPath:   "/backend/{appId}/api/{backendEnvironmentName}/generateModels",
927	}
928
929	if input == nil {
930		input = &GenerateBackendAPIModelsInput{}
931	}
932
933	output = &GenerateBackendAPIModelsOutput{}
934	req = c.newRequest(op, input, output)
935	return
936}
937
938// GenerateBackendAPIModels API operation for AmplifyBackend.
939//
940// Generates a model schema for an existing backend API resource.
941//
942// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
943// with awserr.Error's Code and Message methods to get detailed information about
944// the error.
945//
946// See the AWS API reference guide for AmplifyBackend's
947// API operation GenerateBackendAPIModels for usage and error information.
948//
949// Returned Error Types:
950//   * NotFoundException
951//   An error returned when a specific resource type is not found.
952//
953//   * GatewayTimeoutException
954//   An error returned if there's a temporary issue with the service.
955//
956//   * TooManyRequestsException
957//   An error that is returned when a limit of a specific type has been exceeded.
958//
959//   * BadRequestException
960//   An error returned if a request is not formed properly.
961//
962// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GenerateBackendAPIModels
963func (c *AmplifyBackend) GenerateBackendAPIModels(input *GenerateBackendAPIModelsInput) (*GenerateBackendAPIModelsOutput, error) {
964	req, out := c.GenerateBackendAPIModelsRequest(input)
965	return out, req.Send()
966}
967
968// GenerateBackendAPIModelsWithContext is the same as GenerateBackendAPIModels with the addition of
969// the ability to pass a context and additional request options.
970//
971// See GenerateBackendAPIModels for details on how to use this API operation.
972//
973// The context must be non-nil and will be used for request cancellation. If
974// the context is nil a panic will occur. In the future the SDK may create
975// sub-contexts for http.Requests. See https://golang.org/pkg/context/
976// for more information on using Contexts.
977func (c *AmplifyBackend) GenerateBackendAPIModelsWithContext(ctx aws.Context, input *GenerateBackendAPIModelsInput, opts ...request.Option) (*GenerateBackendAPIModelsOutput, error) {
978	req, out := c.GenerateBackendAPIModelsRequest(input)
979	req.SetContext(ctx)
980	req.ApplyOptions(opts...)
981	return out, req.Send()
982}
983
984const opGetBackend = "GetBackend"
985
986// GetBackendRequest generates a "aws/request.Request" representing the
987// client's request for the GetBackend operation. The "output" return
988// value will be populated with the request's response once the request completes
989// successfully.
990//
991// Use "Send" method on the returned Request to send the API call to the service.
992// the "output" return value is not valid until after Send returns without error.
993//
994// See GetBackend for more information on using the GetBackend
995// API call, and error handling.
996//
997// This method is useful when you want to inject custom logic or configuration
998// into the SDK's request lifecycle. Such as custom headers, or retry logic.
999//
1000//
1001//    // Example sending a request using the GetBackendRequest method.
1002//    req, resp := client.GetBackendRequest(params)
1003//
1004//    err := req.Send()
1005//    if err == nil { // resp is now filled
1006//        fmt.Println(resp)
1007//    }
1008//
1009// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackend
1010func (c *AmplifyBackend) GetBackendRequest(input *GetBackendInput) (req *request.Request, output *GetBackendOutput) {
1011	op := &request.Operation{
1012		Name:       opGetBackend,
1013		HTTPMethod: "POST",
1014		HTTPPath:   "/backend/{appId}/details",
1015	}
1016
1017	if input == nil {
1018		input = &GetBackendInput{}
1019	}
1020
1021	output = &GetBackendOutput{}
1022	req = c.newRequest(op, input, output)
1023	return
1024}
1025
1026// GetBackend API operation for AmplifyBackend.
1027//
1028// Provides project-level details for your Amplify UI project.
1029//
1030// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1031// with awserr.Error's Code and Message methods to get detailed information about
1032// the error.
1033//
1034// See the AWS API reference guide for AmplifyBackend's
1035// API operation GetBackend for usage and error information.
1036//
1037// Returned Error Types:
1038//   * NotFoundException
1039//   An error returned when a specific resource type is not found.
1040//
1041//   * GatewayTimeoutException
1042//   An error returned if there's a temporary issue with the service.
1043//
1044//   * TooManyRequestsException
1045//   An error that is returned when a limit of a specific type has been exceeded.
1046//
1047//   * BadRequestException
1048//   An error returned if a request is not formed properly.
1049//
1050// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackend
1051func (c *AmplifyBackend) GetBackend(input *GetBackendInput) (*GetBackendOutput, error) {
1052	req, out := c.GetBackendRequest(input)
1053	return out, req.Send()
1054}
1055
1056// GetBackendWithContext is the same as GetBackend with the addition of
1057// the ability to pass a context and additional request options.
1058//
1059// See GetBackend for details on how to use this API operation.
1060//
1061// The context must be non-nil and will be used for request cancellation. If
1062// the context is nil a panic will occur. In the future the SDK may create
1063// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1064// for more information on using Contexts.
1065func (c *AmplifyBackend) GetBackendWithContext(ctx aws.Context, input *GetBackendInput, opts ...request.Option) (*GetBackendOutput, error) {
1066	req, out := c.GetBackendRequest(input)
1067	req.SetContext(ctx)
1068	req.ApplyOptions(opts...)
1069	return out, req.Send()
1070}
1071
1072const opGetBackendAPI = "GetBackendAPI"
1073
1074// GetBackendAPIRequest generates a "aws/request.Request" representing the
1075// client's request for the GetBackendAPI operation. The "output" return
1076// value will be populated with the request's response once the request completes
1077// successfully.
1078//
1079// Use "Send" method on the returned Request to send the API call to the service.
1080// the "output" return value is not valid until after Send returns without error.
1081//
1082// See GetBackendAPI for more information on using the GetBackendAPI
1083// API call, and error handling.
1084//
1085// This method is useful when you want to inject custom logic or configuration
1086// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1087//
1088//
1089//    // Example sending a request using the GetBackendAPIRequest method.
1090//    req, resp := client.GetBackendAPIRequest(params)
1091//
1092//    err := req.Send()
1093//    if err == nil { // resp is now filled
1094//        fmt.Println(resp)
1095//    }
1096//
1097// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendAPI
1098func (c *AmplifyBackend) GetBackendAPIRequest(input *GetBackendAPIInput) (req *request.Request, output *GetBackendAPIOutput) {
1099	op := &request.Operation{
1100		Name:       opGetBackendAPI,
1101		HTTPMethod: "POST",
1102		HTTPPath:   "/backend/{appId}/api/{backendEnvironmentName}/details",
1103	}
1104
1105	if input == nil {
1106		input = &GetBackendAPIInput{}
1107	}
1108
1109	output = &GetBackendAPIOutput{}
1110	req = c.newRequest(op, input, output)
1111	return
1112}
1113
1114// GetBackendAPI API operation for AmplifyBackend.
1115//
1116// Gets the details for a backend API.
1117//
1118// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1119// with awserr.Error's Code and Message methods to get detailed information about
1120// the error.
1121//
1122// See the AWS API reference guide for AmplifyBackend's
1123// API operation GetBackendAPI for usage and error information.
1124//
1125// Returned Error Types:
1126//   * NotFoundException
1127//   An error returned when a specific resource type is not found.
1128//
1129//   * GatewayTimeoutException
1130//   An error returned if there's a temporary issue with the service.
1131//
1132//   * TooManyRequestsException
1133//   An error that is returned when a limit of a specific type has been exceeded.
1134//
1135//   * BadRequestException
1136//   An error returned if a request is not formed properly.
1137//
1138// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendAPI
1139func (c *AmplifyBackend) GetBackendAPI(input *GetBackendAPIInput) (*GetBackendAPIOutput, error) {
1140	req, out := c.GetBackendAPIRequest(input)
1141	return out, req.Send()
1142}
1143
1144// GetBackendAPIWithContext is the same as GetBackendAPI with the addition of
1145// the ability to pass a context and additional request options.
1146//
1147// See GetBackendAPI for details on how to use this API operation.
1148//
1149// The context must be non-nil and will be used for request cancellation. If
1150// the context is nil a panic will occur. In the future the SDK may create
1151// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1152// for more information on using Contexts.
1153func (c *AmplifyBackend) GetBackendAPIWithContext(ctx aws.Context, input *GetBackendAPIInput, opts ...request.Option) (*GetBackendAPIOutput, error) {
1154	req, out := c.GetBackendAPIRequest(input)
1155	req.SetContext(ctx)
1156	req.ApplyOptions(opts...)
1157	return out, req.Send()
1158}
1159
1160const opGetBackendAPIModels = "GetBackendAPIModels"
1161
1162// GetBackendAPIModelsRequest generates a "aws/request.Request" representing the
1163// client's request for the GetBackendAPIModels operation. The "output" return
1164// value will be populated with the request's response once the request completes
1165// successfully.
1166//
1167// Use "Send" method on the returned Request to send the API call to the service.
1168// the "output" return value is not valid until after Send returns without error.
1169//
1170// See GetBackendAPIModels for more information on using the GetBackendAPIModels
1171// API call, and error handling.
1172//
1173// This method is useful when you want to inject custom logic or configuration
1174// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1175//
1176//
1177//    // Example sending a request using the GetBackendAPIModelsRequest method.
1178//    req, resp := client.GetBackendAPIModelsRequest(params)
1179//
1180//    err := req.Send()
1181//    if err == nil { // resp is now filled
1182//        fmt.Println(resp)
1183//    }
1184//
1185// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendAPIModels
1186func (c *AmplifyBackend) GetBackendAPIModelsRequest(input *GetBackendAPIModelsInput) (req *request.Request, output *GetBackendAPIModelsOutput) {
1187	op := &request.Operation{
1188		Name:       opGetBackendAPIModels,
1189		HTTPMethod: "POST",
1190		HTTPPath:   "/backend/{appId}/api/{backendEnvironmentName}/getModels",
1191	}
1192
1193	if input == nil {
1194		input = &GetBackendAPIModelsInput{}
1195	}
1196
1197	output = &GetBackendAPIModelsOutput{}
1198	req = c.newRequest(op, input, output)
1199	return
1200}
1201
1202// GetBackendAPIModels API operation for AmplifyBackend.
1203//
1204// Generates a model schema for existing backend API resource.
1205//
1206// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1207// with awserr.Error's Code and Message methods to get detailed information about
1208// the error.
1209//
1210// See the AWS API reference guide for AmplifyBackend's
1211// API operation GetBackendAPIModels for usage and error information.
1212//
1213// Returned Error Types:
1214//   * NotFoundException
1215//   An error returned when a specific resource type is not found.
1216//
1217//   * GatewayTimeoutException
1218//   An error returned if there's a temporary issue with the service.
1219//
1220//   * TooManyRequestsException
1221//   An error that is returned when a limit of a specific type has been exceeded.
1222//
1223//   * BadRequestException
1224//   An error returned if a request is not formed properly.
1225//
1226// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendAPIModels
1227func (c *AmplifyBackend) GetBackendAPIModels(input *GetBackendAPIModelsInput) (*GetBackendAPIModelsOutput, error) {
1228	req, out := c.GetBackendAPIModelsRequest(input)
1229	return out, req.Send()
1230}
1231
1232// GetBackendAPIModelsWithContext is the same as GetBackendAPIModels with the addition of
1233// the ability to pass a context and additional request options.
1234//
1235// See GetBackendAPIModels for details on how to use this API operation.
1236//
1237// The context must be non-nil and will be used for request cancellation. If
1238// the context is nil a panic will occur. In the future the SDK may create
1239// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1240// for more information on using Contexts.
1241func (c *AmplifyBackend) GetBackendAPIModelsWithContext(ctx aws.Context, input *GetBackendAPIModelsInput, opts ...request.Option) (*GetBackendAPIModelsOutput, error) {
1242	req, out := c.GetBackendAPIModelsRequest(input)
1243	req.SetContext(ctx)
1244	req.ApplyOptions(opts...)
1245	return out, req.Send()
1246}
1247
1248const opGetBackendAuth = "GetBackendAuth"
1249
1250// GetBackendAuthRequest generates a "aws/request.Request" representing the
1251// client's request for the GetBackendAuth operation. The "output" return
1252// value will be populated with the request's response once the request completes
1253// successfully.
1254//
1255// Use "Send" method on the returned Request to send the API call to the service.
1256// the "output" return value is not valid until after Send returns without error.
1257//
1258// See GetBackendAuth for more information on using the GetBackendAuth
1259// API call, and error handling.
1260//
1261// This method is useful when you want to inject custom logic or configuration
1262// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1263//
1264//
1265//    // Example sending a request using the GetBackendAuthRequest method.
1266//    req, resp := client.GetBackendAuthRequest(params)
1267//
1268//    err := req.Send()
1269//    if err == nil { // resp is now filled
1270//        fmt.Println(resp)
1271//    }
1272//
1273// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendAuth
1274func (c *AmplifyBackend) GetBackendAuthRequest(input *GetBackendAuthInput) (req *request.Request, output *GetBackendAuthOutput) {
1275	op := &request.Operation{
1276		Name:       opGetBackendAuth,
1277		HTTPMethod: "POST",
1278		HTTPPath:   "/backend/{appId}/auth/{backendEnvironmentName}/details",
1279	}
1280
1281	if input == nil {
1282		input = &GetBackendAuthInput{}
1283	}
1284
1285	output = &GetBackendAuthOutput{}
1286	req = c.newRequest(op, input, output)
1287	return
1288}
1289
1290// GetBackendAuth API operation for AmplifyBackend.
1291//
1292// Gets a backend auth details.
1293//
1294// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1295// with awserr.Error's Code and Message methods to get detailed information about
1296// the error.
1297//
1298// See the AWS API reference guide for AmplifyBackend's
1299// API operation GetBackendAuth for usage and error information.
1300//
1301// Returned Error Types:
1302//   * NotFoundException
1303//   An error returned when a specific resource type is not found.
1304//
1305//   * GatewayTimeoutException
1306//   An error returned if there's a temporary issue with the service.
1307//
1308//   * TooManyRequestsException
1309//   An error that is returned when a limit of a specific type has been exceeded.
1310//
1311//   * BadRequestException
1312//   An error returned if a request is not formed properly.
1313//
1314// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendAuth
1315func (c *AmplifyBackend) GetBackendAuth(input *GetBackendAuthInput) (*GetBackendAuthOutput, error) {
1316	req, out := c.GetBackendAuthRequest(input)
1317	return out, req.Send()
1318}
1319
1320// GetBackendAuthWithContext is the same as GetBackendAuth with the addition of
1321// the ability to pass a context and additional request options.
1322//
1323// See GetBackendAuth for details on how to use this API operation.
1324//
1325// The context must be non-nil and will be used for request cancellation. If
1326// the context is nil a panic will occur. In the future the SDK may create
1327// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1328// for more information on using Contexts.
1329func (c *AmplifyBackend) GetBackendAuthWithContext(ctx aws.Context, input *GetBackendAuthInput, opts ...request.Option) (*GetBackendAuthOutput, error) {
1330	req, out := c.GetBackendAuthRequest(input)
1331	req.SetContext(ctx)
1332	req.ApplyOptions(opts...)
1333	return out, req.Send()
1334}
1335
1336const opGetBackendJob = "GetBackendJob"
1337
1338// GetBackendJobRequest generates a "aws/request.Request" representing the
1339// client's request for the GetBackendJob operation. The "output" return
1340// value will be populated with the request's response once the request completes
1341// successfully.
1342//
1343// Use "Send" method on the returned Request to send the API call to the service.
1344// the "output" return value is not valid until after Send returns without error.
1345//
1346// See GetBackendJob for more information on using the GetBackendJob
1347// API call, and error handling.
1348//
1349// This method is useful when you want to inject custom logic or configuration
1350// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1351//
1352//
1353//    // Example sending a request using the GetBackendJobRequest method.
1354//    req, resp := client.GetBackendJobRequest(params)
1355//
1356//    err := req.Send()
1357//    if err == nil { // resp is now filled
1358//        fmt.Println(resp)
1359//    }
1360//
1361// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendJob
1362func (c *AmplifyBackend) GetBackendJobRequest(input *GetBackendJobInput) (req *request.Request, output *GetBackendJobOutput) {
1363	op := &request.Operation{
1364		Name:       opGetBackendJob,
1365		HTTPMethod: "GET",
1366		HTTPPath:   "/backend/{appId}/job/{backendEnvironmentName}/{jobId}",
1367	}
1368
1369	if input == nil {
1370		input = &GetBackendJobInput{}
1371	}
1372
1373	output = &GetBackendJobOutput{}
1374	req = c.newRequest(op, input, output)
1375	return
1376}
1377
1378// GetBackendJob API operation for AmplifyBackend.
1379//
1380// Returns information about a specific job.
1381//
1382// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1383// with awserr.Error's Code and Message methods to get detailed information about
1384// the error.
1385//
1386// See the AWS API reference guide for AmplifyBackend's
1387// API operation GetBackendJob for usage and error information.
1388//
1389// Returned Error Types:
1390//   * NotFoundException
1391//   An error returned when a specific resource type is not found.
1392//
1393//   * GatewayTimeoutException
1394//   An error returned if there's a temporary issue with the service.
1395//
1396//   * TooManyRequestsException
1397//   An error that is returned when a limit of a specific type has been exceeded.
1398//
1399//   * BadRequestException
1400//   An error returned if a request is not formed properly.
1401//
1402// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendJob
1403func (c *AmplifyBackend) GetBackendJob(input *GetBackendJobInput) (*GetBackendJobOutput, error) {
1404	req, out := c.GetBackendJobRequest(input)
1405	return out, req.Send()
1406}
1407
1408// GetBackendJobWithContext is the same as GetBackendJob with the addition of
1409// the ability to pass a context and additional request options.
1410//
1411// See GetBackendJob for details on how to use this API operation.
1412//
1413// The context must be non-nil and will be used for request cancellation. If
1414// the context is nil a panic will occur. In the future the SDK may create
1415// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1416// for more information on using Contexts.
1417func (c *AmplifyBackend) GetBackendJobWithContext(ctx aws.Context, input *GetBackendJobInput, opts ...request.Option) (*GetBackendJobOutput, error) {
1418	req, out := c.GetBackendJobRequest(input)
1419	req.SetContext(ctx)
1420	req.ApplyOptions(opts...)
1421	return out, req.Send()
1422}
1423
1424const opGetToken = "GetToken"
1425
1426// GetTokenRequest generates a "aws/request.Request" representing the
1427// client's request for the GetToken operation. The "output" return
1428// value will be populated with the request's response once the request completes
1429// successfully.
1430//
1431// Use "Send" method on the returned Request to send the API call to the service.
1432// the "output" return value is not valid until after Send returns without error.
1433//
1434// See GetToken for more information on using the GetToken
1435// API call, and error handling.
1436//
1437// This method is useful when you want to inject custom logic or configuration
1438// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1439//
1440//
1441//    // Example sending a request using the GetTokenRequest method.
1442//    req, resp := client.GetTokenRequest(params)
1443//
1444//    err := req.Send()
1445//    if err == nil { // resp is now filled
1446//        fmt.Println(resp)
1447//    }
1448//
1449// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetToken
1450func (c *AmplifyBackend) GetTokenRequest(input *GetTokenInput) (req *request.Request, output *GetTokenOutput) {
1451	op := &request.Operation{
1452		Name:       opGetToken,
1453		HTTPMethod: "GET",
1454		HTTPPath:   "/backend/{appId}/challenge/{sessionId}",
1455	}
1456
1457	if input == nil {
1458		input = &GetTokenInput{}
1459	}
1460
1461	output = &GetTokenOutput{}
1462	req = c.newRequest(op, input, output)
1463	return
1464}
1465
1466// GetToken API operation for AmplifyBackend.
1467//
1468// Gets the challenge token based on the given appId and sessionId.
1469//
1470// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1471// with awserr.Error's Code and Message methods to get detailed information about
1472// the error.
1473//
1474// See the AWS API reference guide for AmplifyBackend's
1475// API operation GetToken for usage and error information.
1476//
1477// Returned Error Types:
1478//   * NotFoundException
1479//   An error returned when a specific resource type is not found.
1480//
1481//   * GatewayTimeoutException
1482//   An error returned if there's a temporary issue with the service.
1483//
1484//   * TooManyRequestsException
1485//   An error that is returned when a limit of a specific type has been exceeded.
1486//
1487//   * BadRequestException
1488//   An error returned if a request is not formed properly.
1489//
1490// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetToken
1491func (c *AmplifyBackend) GetToken(input *GetTokenInput) (*GetTokenOutput, error) {
1492	req, out := c.GetTokenRequest(input)
1493	return out, req.Send()
1494}
1495
1496// GetTokenWithContext is the same as GetToken with the addition of
1497// the ability to pass a context and additional request options.
1498//
1499// See GetToken for details on how to use this API operation.
1500//
1501// The context must be non-nil and will be used for request cancellation. If
1502// the context is nil a panic will occur. In the future the SDK may create
1503// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1504// for more information on using Contexts.
1505func (c *AmplifyBackend) GetTokenWithContext(ctx aws.Context, input *GetTokenInput, opts ...request.Option) (*GetTokenOutput, error) {
1506	req, out := c.GetTokenRequest(input)
1507	req.SetContext(ctx)
1508	req.ApplyOptions(opts...)
1509	return out, req.Send()
1510}
1511
1512const opImportBackendAuth = "ImportBackendAuth"
1513
1514// ImportBackendAuthRequest generates a "aws/request.Request" representing the
1515// client's request for the ImportBackendAuth operation. The "output" return
1516// value will be populated with the request's response once the request completes
1517// successfully.
1518//
1519// Use "Send" method on the returned Request to send the API call to the service.
1520// the "output" return value is not valid until after Send returns without error.
1521//
1522// See ImportBackendAuth for more information on using the ImportBackendAuth
1523// API call, and error handling.
1524//
1525// This method is useful when you want to inject custom logic or configuration
1526// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1527//
1528//
1529//    // Example sending a request using the ImportBackendAuthRequest method.
1530//    req, resp := client.ImportBackendAuthRequest(params)
1531//
1532//    err := req.Send()
1533//    if err == nil { // resp is now filled
1534//        fmt.Println(resp)
1535//    }
1536//
1537// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ImportBackendAuth
1538func (c *AmplifyBackend) ImportBackendAuthRequest(input *ImportBackendAuthInput) (req *request.Request, output *ImportBackendAuthOutput) {
1539	op := &request.Operation{
1540		Name:       opImportBackendAuth,
1541		HTTPMethod: "POST",
1542		HTTPPath:   "/backend/{appId}/auth/{backendEnvironmentName}/import",
1543	}
1544
1545	if input == nil {
1546		input = &ImportBackendAuthInput{}
1547	}
1548
1549	output = &ImportBackendAuthOutput{}
1550	req = c.newRequest(op, input, output)
1551	return
1552}
1553
1554// ImportBackendAuth API operation for AmplifyBackend.
1555//
1556// Imports an existing backend authentication resource.
1557//
1558// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1559// with awserr.Error's Code and Message methods to get detailed information about
1560// the error.
1561//
1562// See the AWS API reference guide for AmplifyBackend's
1563// API operation ImportBackendAuth for usage and error information.
1564//
1565// Returned Error Types:
1566//   * NotFoundException
1567//   An error returned when a specific resource type is not found.
1568//
1569//   * GatewayTimeoutException
1570//   An error returned if there's a temporary issue with the service.
1571//
1572//   * TooManyRequestsException
1573//   An error that is returned when a limit of a specific type has been exceeded.
1574//
1575//   * BadRequestException
1576//   An error returned if a request is not formed properly.
1577//
1578// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ImportBackendAuth
1579func (c *AmplifyBackend) ImportBackendAuth(input *ImportBackendAuthInput) (*ImportBackendAuthOutput, error) {
1580	req, out := c.ImportBackendAuthRequest(input)
1581	return out, req.Send()
1582}
1583
1584// ImportBackendAuthWithContext is the same as ImportBackendAuth with the addition of
1585// the ability to pass a context and additional request options.
1586//
1587// See ImportBackendAuth for details on how to use this API operation.
1588//
1589// The context must be non-nil and will be used for request cancellation. If
1590// the context is nil a panic will occur. In the future the SDK may create
1591// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1592// for more information on using Contexts.
1593func (c *AmplifyBackend) ImportBackendAuthWithContext(ctx aws.Context, input *ImportBackendAuthInput, opts ...request.Option) (*ImportBackendAuthOutput, error) {
1594	req, out := c.ImportBackendAuthRequest(input)
1595	req.SetContext(ctx)
1596	req.ApplyOptions(opts...)
1597	return out, req.Send()
1598}
1599
1600const opListBackendJobs = "ListBackendJobs"
1601
1602// ListBackendJobsRequest generates a "aws/request.Request" representing the
1603// client's request for the ListBackendJobs operation. The "output" return
1604// value will be populated with the request's response once the request completes
1605// successfully.
1606//
1607// Use "Send" method on the returned Request to send the API call to the service.
1608// the "output" return value is not valid until after Send returns without error.
1609//
1610// See ListBackendJobs for more information on using the ListBackendJobs
1611// API call, and error handling.
1612//
1613// This method is useful when you want to inject custom logic or configuration
1614// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1615//
1616//
1617//    // Example sending a request using the ListBackendJobsRequest method.
1618//    req, resp := client.ListBackendJobsRequest(params)
1619//
1620//    err := req.Send()
1621//    if err == nil { // resp is now filled
1622//        fmt.Println(resp)
1623//    }
1624//
1625// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ListBackendJobs
1626func (c *AmplifyBackend) ListBackendJobsRequest(input *ListBackendJobsInput) (req *request.Request, output *ListBackendJobsOutput) {
1627	op := &request.Operation{
1628		Name:       opListBackendJobs,
1629		HTTPMethod: "POST",
1630		HTTPPath:   "/backend/{appId}/job/{backendEnvironmentName}",
1631		Paginator: &request.Paginator{
1632			InputTokens:     []string{"NextToken"},
1633			OutputTokens:    []string{"NextToken"},
1634			LimitToken:      "MaxResults",
1635			TruncationToken: "",
1636		},
1637	}
1638
1639	if input == nil {
1640		input = &ListBackendJobsInput{}
1641	}
1642
1643	output = &ListBackendJobsOutput{}
1644	req = c.newRequest(op, input, output)
1645	return
1646}
1647
1648// ListBackendJobs API operation for AmplifyBackend.
1649//
1650// Lists the jobs for the backend of an Amplify app.
1651//
1652// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1653// with awserr.Error's Code and Message methods to get detailed information about
1654// the error.
1655//
1656// See the AWS API reference guide for AmplifyBackend's
1657// API operation ListBackendJobs for usage and error information.
1658//
1659// Returned Error Types:
1660//   * NotFoundException
1661//   An error returned when a specific resource type is not found.
1662//
1663//   * GatewayTimeoutException
1664//   An error returned if there's a temporary issue with the service.
1665//
1666//   * TooManyRequestsException
1667//   An error that is returned when a limit of a specific type has been exceeded.
1668//
1669//   * BadRequestException
1670//   An error returned if a request is not formed properly.
1671//
1672// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ListBackendJobs
1673func (c *AmplifyBackend) ListBackendJobs(input *ListBackendJobsInput) (*ListBackendJobsOutput, error) {
1674	req, out := c.ListBackendJobsRequest(input)
1675	return out, req.Send()
1676}
1677
1678// ListBackendJobsWithContext is the same as ListBackendJobs with the addition of
1679// the ability to pass a context and additional request options.
1680//
1681// See ListBackendJobs for details on how to use this API operation.
1682//
1683// The context must be non-nil and will be used for request cancellation. If
1684// the context is nil a panic will occur. In the future the SDK may create
1685// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1686// for more information on using Contexts.
1687func (c *AmplifyBackend) ListBackendJobsWithContext(ctx aws.Context, input *ListBackendJobsInput, opts ...request.Option) (*ListBackendJobsOutput, error) {
1688	req, out := c.ListBackendJobsRequest(input)
1689	req.SetContext(ctx)
1690	req.ApplyOptions(opts...)
1691	return out, req.Send()
1692}
1693
1694// ListBackendJobsPages iterates over the pages of a ListBackendJobs operation,
1695// calling the "fn" function with the response data for each page. To stop
1696// iterating, return false from the fn function.
1697//
1698// See ListBackendJobs method for more information on how to use this operation.
1699//
1700// Note: This operation can generate multiple requests to a service.
1701//
1702//    // Example iterating over at most 3 pages of a ListBackendJobs operation.
1703//    pageNum := 0
1704//    err := client.ListBackendJobsPages(params,
1705//        func(page *amplifybackend.ListBackendJobsOutput, lastPage bool) bool {
1706//            pageNum++
1707//            fmt.Println(page)
1708//            return pageNum <= 3
1709//        })
1710//
1711func (c *AmplifyBackend) ListBackendJobsPages(input *ListBackendJobsInput, fn func(*ListBackendJobsOutput, bool) bool) error {
1712	return c.ListBackendJobsPagesWithContext(aws.BackgroundContext(), input, fn)
1713}
1714
1715// ListBackendJobsPagesWithContext same as ListBackendJobsPages except
1716// it takes a Context and allows setting request options on the pages.
1717//
1718// The context must be non-nil and will be used for request cancellation. If
1719// the context is nil a panic will occur. In the future the SDK may create
1720// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1721// for more information on using Contexts.
1722func (c *AmplifyBackend) ListBackendJobsPagesWithContext(ctx aws.Context, input *ListBackendJobsInput, fn func(*ListBackendJobsOutput, bool) bool, opts ...request.Option) error {
1723	p := request.Pagination{
1724		NewRequest: func() (*request.Request, error) {
1725			var inCpy *ListBackendJobsInput
1726			if input != nil {
1727				tmp := *input
1728				inCpy = &tmp
1729			}
1730			req, _ := c.ListBackendJobsRequest(inCpy)
1731			req.SetContext(ctx)
1732			req.ApplyOptions(opts...)
1733			return req, nil
1734		},
1735	}
1736
1737	for p.Next() {
1738		if !fn(p.Page().(*ListBackendJobsOutput), !p.HasNextPage()) {
1739			break
1740		}
1741	}
1742
1743	return p.Err()
1744}
1745
1746const opRemoveAllBackends = "RemoveAllBackends"
1747
1748// RemoveAllBackendsRequest generates a "aws/request.Request" representing the
1749// client's request for the RemoveAllBackends operation. The "output" return
1750// value will be populated with the request's response once the request completes
1751// successfully.
1752//
1753// Use "Send" method on the returned Request to send the API call to the service.
1754// the "output" return value is not valid until after Send returns without error.
1755//
1756// See RemoveAllBackends for more information on using the RemoveAllBackends
1757// API call, and error handling.
1758//
1759// This method is useful when you want to inject custom logic or configuration
1760// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1761//
1762//
1763//    // Example sending a request using the RemoveAllBackendsRequest method.
1764//    req, resp := client.RemoveAllBackendsRequest(params)
1765//
1766//    err := req.Send()
1767//    if err == nil { // resp is now filled
1768//        fmt.Println(resp)
1769//    }
1770//
1771// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/RemoveAllBackends
1772func (c *AmplifyBackend) RemoveAllBackendsRequest(input *RemoveAllBackendsInput) (req *request.Request, output *RemoveAllBackendsOutput) {
1773	op := &request.Operation{
1774		Name:       opRemoveAllBackends,
1775		HTTPMethod: "POST",
1776		HTTPPath:   "/backend/{appId}/remove",
1777	}
1778
1779	if input == nil {
1780		input = &RemoveAllBackendsInput{}
1781	}
1782
1783	output = &RemoveAllBackendsOutput{}
1784	req = c.newRequest(op, input, output)
1785	return
1786}
1787
1788// RemoveAllBackends API operation for AmplifyBackend.
1789//
1790// Removes all backend environments from your Amplify project.
1791//
1792// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1793// with awserr.Error's Code and Message methods to get detailed information about
1794// the error.
1795//
1796// See the AWS API reference guide for AmplifyBackend's
1797// API operation RemoveAllBackends for usage and error information.
1798//
1799// Returned Error Types:
1800//   * NotFoundException
1801//   An error returned when a specific resource type is not found.
1802//
1803//   * GatewayTimeoutException
1804//   An error returned if there's a temporary issue with the service.
1805//
1806//   * TooManyRequestsException
1807//   An error that is returned when a limit of a specific type has been exceeded.
1808//
1809//   * BadRequestException
1810//   An error returned if a request is not formed properly.
1811//
1812// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/RemoveAllBackends
1813func (c *AmplifyBackend) RemoveAllBackends(input *RemoveAllBackendsInput) (*RemoveAllBackendsOutput, error) {
1814	req, out := c.RemoveAllBackendsRequest(input)
1815	return out, req.Send()
1816}
1817
1818// RemoveAllBackendsWithContext is the same as RemoveAllBackends with the addition of
1819// the ability to pass a context and additional request options.
1820//
1821// See RemoveAllBackends for details on how to use this API operation.
1822//
1823// The context must be non-nil and will be used for request cancellation. If
1824// the context is nil a panic will occur. In the future the SDK may create
1825// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1826// for more information on using Contexts.
1827func (c *AmplifyBackend) RemoveAllBackendsWithContext(ctx aws.Context, input *RemoveAllBackendsInput, opts ...request.Option) (*RemoveAllBackendsOutput, error) {
1828	req, out := c.RemoveAllBackendsRequest(input)
1829	req.SetContext(ctx)
1830	req.ApplyOptions(opts...)
1831	return out, req.Send()
1832}
1833
1834const opRemoveBackendConfig = "RemoveBackendConfig"
1835
1836// RemoveBackendConfigRequest generates a "aws/request.Request" representing the
1837// client's request for the RemoveBackendConfig operation. The "output" return
1838// value will be populated with the request's response once the request completes
1839// successfully.
1840//
1841// Use "Send" method on the returned Request to send the API call to the service.
1842// the "output" return value is not valid until after Send returns without error.
1843//
1844// See RemoveBackendConfig for more information on using the RemoveBackendConfig
1845// API call, and error handling.
1846//
1847// This method is useful when you want to inject custom logic or configuration
1848// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1849//
1850//
1851//    // Example sending a request using the RemoveBackendConfigRequest method.
1852//    req, resp := client.RemoveBackendConfigRequest(params)
1853//
1854//    err := req.Send()
1855//    if err == nil { // resp is now filled
1856//        fmt.Println(resp)
1857//    }
1858//
1859// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/RemoveBackendConfig
1860func (c *AmplifyBackend) RemoveBackendConfigRequest(input *RemoveBackendConfigInput) (req *request.Request, output *RemoveBackendConfigOutput) {
1861	op := &request.Operation{
1862		Name:       opRemoveBackendConfig,
1863		HTTPMethod: "POST",
1864		HTTPPath:   "/backend/{appId}/config/remove",
1865	}
1866
1867	if input == nil {
1868		input = &RemoveBackendConfigInput{}
1869	}
1870
1871	output = &RemoveBackendConfigOutput{}
1872	req = c.newRequest(op, input, output)
1873	return
1874}
1875
1876// RemoveBackendConfig API operation for AmplifyBackend.
1877//
1878// Removes the AWS resources required to access the Amplify Admin UI.
1879//
1880// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1881// with awserr.Error's Code and Message methods to get detailed information about
1882// the error.
1883//
1884// See the AWS API reference guide for AmplifyBackend's
1885// API operation RemoveBackendConfig for usage and error information.
1886//
1887// Returned Error Types:
1888//   * NotFoundException
1889//   An error returned when a specific resource type is not found.
1890//
1891//   * GatewayTimeoutException
1892//   An error returned if there's a temporary issue with the service.
1893//
1894//   * TooManyRequestsException
1895//   An error that is returned when a limit of a specific type has been exceeded.
1896//
1897//   * BadRequestException
1898//   An error returned if a request is not formed properly.
1899//
1900// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/RemoveBackendConfig
1901func (c *AmplifyBackend) RemoveBackendConfig(input *RemoveBackendConfigInput) (*RemoveBackendConfigOutput, error) {
1902	req, out := c.RemoveBackendConfigRequest(input)
1903	return out, req.Send()
1904}
1905
1906// RemoveBackendConfigWithContext is the same as RemoveBackendConfig with the addition of
1907// the ability to pass a context and additional request options.
1908//
1909// See RemoveBackendConfig for details on how to use this API operation.
1910//
1911// The context must be non-nil and will be used for request cancellation. If
1912// the context is nil a panic will occur. In the future the SDK may create
1913// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1914// for more information on using Contexts.
1915func (c *AmplifyBackend) RemoveBackendConfigWithContext(ctx aws.Context, input *RemoveBackendConfigInput, opts ...request.Option) (*RemoveBackendConfigOutput, error) {
1916	req, out := c.RemoveBackendConfigRequest(input)
1917	req.SetContext(ctx)
1918	req.ApplyOptions(opts...)
1919	return out, req.Send()
1920}
1921
1922const opUpdateBackendAPI = "UpdateBackendAPI"
1923
1924// UpdateBackendAPIRequest generates a "aws/request.Request" representing the
1925// client's request for the UpdateBackendAPI operation. The "output" return
1926// value will be populated with the request's response once the request completes
1927// successfully.
1928//
1929// Use "Send" method on the returned Request to send the API call to the service.
1930// the "output" return value is not valid until after Send returns without error.
1931//
1932// See UpdateBackendAPI for more information on using the UpdateBackendAPI
1933// API call, and error handling.
1934//
1935// This method is useful when you want to inject custom logic or configuration
1936// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1937//
1938//
1939//    // Example sending a request using the UpdateBackendAPIRequest method.
1940//    req, resp := client.UpdateBackendAPIRequest(params)
1941//
1942//    err := req.Send()
1943//    if err == nil { // resp is now filled
1944//        fmt.Println(resp)
1945//    }
1946//
1947// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendAPI
1948func (c *AmplifyBackend) UpdateBackendAPIRequest(input *UpdateBackendAPIInput) (req *request.Request, output *UpdateBackendAPIOutput) {
1949	op := &request.Operation{
1950		Name:       opUpdateBackendAPI,
1951		HTTPMethod: "POST",
1952		HTTPPath:   "/backend/{appId}/api/{backendEnvironmentName}",
1953	}
1954
1955	if input == nil {
1956		input = &UpdateBackendAPIInput{}
1957	}
1958
1959	output = &UpdateBackendAPIOutput{}
1960	req = c.newRequest(op, input, output)
1961	return
1962}
1963
1964// UpdateBackendAPI API operation for AmplifyBackend.
1965//
1966// Updates an existing backend API resource.
1967//
1968// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1969// with awserr.Error's Code and Message methods to get detailed information about
1970// the error.
1971//
1972// See the AWS API reference guide for AmplifyBackend's
1973// API operation UpdateBackendAPI for usage and error information.
1974//
1975// Returned Error Types:
1976//   * NotFoundException
1977//   An error returned when a specific resource type is not found.
1978//
1979//   * GatewayTimeoutException
1980//   An error returned if there's a temporary issue with the service.
1981//
1982//   * TooManyRequestsException
1983//   An error that is returned when a limit of a specific type has been exceeded.
1984//
1985//   * BadRequestException
1986//   An error returned if a request is not formed properly.
1987//
1988// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendAPI
1989func (c *AmplifyBackend) UpdateBackendAPI(input *UpdateBackendAPIInput) (*UpdateBackendAPIOutput, error) {
1990	req, out := c.UpdateBackendAPIRequest(input)
1991	return out, req.Send()
1992}
1993
1994// UpdateBackendAPIWithContext is the same as UpdateBackendAPI with the addition of
1995// the ability to pass a context and additional request options.
1996//
1997// See UpdateBackendAPI for details on how to use this API operation.
1998//
1999// The context must be non-nil and will be used for request cancellation. If
2000// the context is nil a panic will occur. In the future the SDK may create
2001// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2002// for more information on using Contexts.
2003func (c *AmplifyBackend) UpdateBackendAPIWithContext(ctx aws.Context, input *UpdateBackendAPIInput, opts ...request.Option) (*UpdateBackendAPIOutput, error) {
2004	req, out := c.UpdateBackendAPIRequest(input)
2005	req.SetContext(ctx)
2006	req.ApplyOptions(opts...)
2007	return out, req.Send()
2008}
2009
2010const opUpdateBackendAuth = "UpdateBackendAuth"
2011
2012// UpdateBackendAuthRequest generates a "aws/request.Request" representing the
2013// client's request for the UpdateBackendAuth operation. The "output" return
2014// value will be populated with the request's response once the request completes
2015// successfully.
2016//
2017// Use "Send" method on the returned Request to send the API call to the service.
2018// the "output" return value is not valid until after Send returns without error.
2019//
2020// See UpdateBackendAuth for more information on using the UpdateBackendAuth
2021// API call, and error handling.
2022//
2023// This method is useful when you want to inject custom logic or configuration
2024// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2025//
2026//
2027//    // Example sending a request using the UpdateBackendAuthRequest method.
2028//    req, resp := client.UpdateBackendAuthRequest(params)
2029//
2030//    err := req.Send()
2031//    if err == nil { // resp is now filled
2032//        fmt.Println(resp)
2033//    }
2034//
2035// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendAuth
2036func (c *AmplifyBackend) UpdateBackendAuthRequest(input *UpdateBackendAuthInput) (req *request.Request, output *UpdateBackendAuthOutput) {
2037	op := &request.Operation{
2038		Name:       opUpdateBackendAuth,
2039		HTTPMethod: "POST",
2040		HTTPPath:   "/backend/{appId}/auth/{backendEnvironmentName}",
2041	}
2042
2043	if input == nil {
2044		input = &UpdateBackendAuthInput{}
2045	}
2046
2047	output = &UpdateBackendAuthOutput{}
2048	req = c.newRequest(op, input, output)
2049	return
2050}
2051
2052// UpdateBackendAuth API operation for AmplifyBackend.
2053//
2054// Updates an existing backend authentication resource.
2055//
2056// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2057// with awserr.Error's Code and Message methods to get detailed information about
2058// the error.
2059//
2060// See the AWS API reference guide for AmplifyBackend's
2061// API operation UpdateBackendAuth for usage and error information.
2062//
2063// Returned Error Types:
2064//   * NotFoundException
2065//   An error returned when a specific resource type is not found.
2066//
2067//   * GatewayTimeoutException
2068//   An error returned if there's a temporary issue with the service.
2069//
2070//   * TooManyRequestsException
2071//   An error that is returned when a limit of a specific type has been exceeded.
2072//
2073//   * BadRequestException
2074//   An error returned if a request is not formed properly.
2075//
2076// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendAuth
2077func (c *AmplifyBackend) UpdateBackendAuth(input *UpdateBackendAuthInput) (*UpdateBackendAuthOutput, error) {
2078	req, out := c.UpdateBackendAuthRequest(input)
2079	return out, req.Send()
2080}
2081
2082// UpdateBackendAuthWithContext is the same as UpdateBackendAuth with the addition of
2083// the ability to pass a context and additional request options.
2084//
2085// See UpdateBackendAuth for details on how to use this API operation.
2086//
2087// The context must be non-nil and will be used for request cancellation. If
2088// the context is nil a panic will occur. In the future the SDK may create
2089// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2090// for more information on using Contexts.
2091func (c *AmplifyBackend) UpdateBackendAuthWithContext(ctx aws.Context, input *UpdateBackendAuthInput, opts ...request.Option) (*UpdateBackendAuthOutput, error) {
2092	req, out := c.UpdateBackendAuthRequest(input)
2093	req.SetContext(ctx)
2094	req.ApplyOptions(opts...)
2095	return out, req.Send()
2096}
2097
2098const opUpdateBackendConfig = "UpdateBackendConfig"
2099
2100// UpdateBackendConfigRequest generates a "aws/request.Request" representing the
2101// client's request for the UpdateBackendConfig operation. The "output" return
2102// value will be populated with the request's response once the request completes
2103// successfully.
2104//
2105// Use "Send" method on the returned Request to send the API call to the service.
2106// the "output" return value is not valid until after Send returns without error.
2107//
2108// See UpdateBackendConfig for more information on using the UpdateBackendConfig
2109// API call, and error handling.
2110//
2111// This method is useful when you want to inject custom logic or configuration
2112// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2113//
2114//
2115//    // Example sending a request using the UpdateBackendConfigRequest method.
2116//    req, resp := client.UpdateBackendConfigRequest(params)
2117//
2118//    err := req.Send()
2119//    if err == nil { // resp is now filled
2120//        fmt.Println(resp)
2121//    }
2122//
2123// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendConfig
2124func (c *AmplifyBackend) UpdateBackendConfigRequest(input *UpdateBackendConfigInput) (req *request.Request, output *UpdateBackendConfigOutput) {
2125	op := &request.Operation{
2126		Name:       opUpdateBackendConfig,
2127		HTTPMethod: "POST",
2128		HTTPPath:   "/backend/{appId}/config/update",
2129	}
2130
2131	if input == nil {
2132		input = &UpdateBackendConfigInput{}
2133	}
2134
2135	output = &UpdateBackendConfigOutput{}
2136	req = c.newRequest(op, input, output)
2137	return
2138}
2139
2140// UpdateBackendConfig API operation for AmplifyBackend.
2141//
2142// Updates the AWS resources required to access the Amplify Admin UI.
2143//
2144// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2145// with awserr.Error's Code and Message methods to get detailed information about
2146// the error.
2147//
2148// See the AWS API reference guide for AmplifyBackend's
2149// API operation UpdateBackendConfig for usage and error information.
2150//
2151// Returned Error Types:
2152//   * NotFoundException
2153//   An error returned when a specific resource type is not found.
2154//
2155//   * GatewayTimeoutException
2156//   An error returned if there's a temporary issue with the service.
2157//
2158//   * TooManyRequestsException
2159//   An error that is returned when a limit of a specific type has been exceeded.
2160//
2161//   * BadRequestException
2162//   An error returned if a request is not formed properly.
2163//
2164// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendConfig
2165func (c *AmplifyBackend) UpdateBackendConfig(input *UpdateBackendConfigInput) (*UpdateBackendConfigOutput, error) {
2166	req, out := c.UpdateBackendConfigRequest(input)
2167	return out, req.Send()
2168}
2169
2170// UpdateBackendConfigWithContext is the same as UpdateBackendConfig with the addition of
2171// the ability to pass a context and additional request options.
2172//
2173// See UpdateBackendConfig for details on how to use this API operation.
2174//
2175// The context must be non-nil and will be used for request cancellation. If
2176// the context is nil a panic will occur. In the future the SDK may create
2177// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2178// for more information on using Contexts.
2179func (c *AmplifyBackend) UpdateBackendConfigWithContext(ctx aws.Context, input *UpdateBackendConfigInput, opts ...request.Option) (*UpdateBackendConfigOutput, error) {
2180	req, out := c.UpdateBackendConfigRequest(input)
2181	req.SetContext(ctx)
2182	req.ApplyOptions(opts...)
2183	return out, req.Send()
2184}
2185
2186const opUpdateBackendJob = "UpdateBackendJob"
2187
2188// UpdateBackendJobRequest generates a "aws/request.Request" representing the
2189// client's request for the UpdateBackendJob operation. The "output" return
2190// value will be populated with the request's response once the request completes
2191// successfully.
2192//
2193// Use "Send" method on the returned Request to send the API call to the service.
2194// the "output" return value is not valid until after Send returns without error.
2195//
2196// See UpdateBackendJob for more information on using the UpdateBackendJob
2197// API call, and error handling.
2198//
2199// This method is useful when you want to inject custom logic or configuration
2200// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2201//
2202//
2203//    // Example sending a request using the UpdateBackendJobRequest method.
2204//    req, resp := client.UpdateBackendJobRequest(params)
2205//
2206//    err := req.Send()
2207//    if err == nil { // resp is now filled
2208//        fmt.Println(resp)
2209//    }
2210//
2211// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendJob
2212func (c *AmplifyBackend) UpdateBackendJobRequest(input *UpdateBackendJobInput) (req *request.Request, output *UpdateBackendJobOutput) {
2213	op := &request.Operation{
2214		Name:       opUpdateBackendJob,
2215		HTTPMethod: "POST",
2216		HTTPPath:   "/backend/{appId}/job/{backendEnvironmentName}/{jobId}",
2217	}
2218
2219	if input == nil {
2220		input = &UpdateBackendJobInput{}
2221	}
2222
2223	output = &UpdateBackendJobOutput{}
2224	req = c.newRequest(op, input, output)
2225	return
2226}
2227
2228// UpdateBackendJob API operation for AmplifyBackend.
2229//
2230// Updates a specific job.
2231//
2232// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2233// with awserr.Error's Code and Message methods to get detailed information about
2234// the error.
2235//
2236// See the AWS API reference guide for AmplifyBackend's
2237// API operation UpdateBackendJob for usage and error information.
2238//
2239// Returned Error Types:
2240//   * NotFoundException
2241//   An error returned when a specific resource type is not found.
2242//
2243//   * GatewayTimeoutException
2244//   An error returned if there's a temporary issue with the service.
2245//
2246//   * TooManyRequestsException
2247//   An error that is returned when a limit of a specific type has been exceeded.
2248//
2249//   * BadRequestException
2250//   An error returned if a request is not formed properly.
2251//
2252// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendJob
2253func (c *AmplifyBackend) UpdateBackendJob(input *UpdateBackendJobInput) (*UpdateBackendJobOutput, error) {
2254	req, out := c.UpdateBackendJobRequest(input)
2255	return out, req.Send()
2256}
2257
2258// UpdateBackendJobWithContext is the same as UpdateBackendJob with the addition of
2259// the ability to pass a context and additional request options.
2260//
2261// See UpdateBackendJob for details on how to use this API operation.
2262//
2263// The context must be non-nil and will be used for request cancellation. If
2264// the context is nil a panic will occur. In the future the SDK may create
2265// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2266// for more information on using Contexts.
2267func (c *AmplifyBackend) UpdateBackendJobWithContext(ctx aws.Context, input *UpdateBackendJobInput, opts ...request.Option) (*UpdateBackendJobOutput, error) {
2268	req, out := c.UpdateBackendJobRequest(input)
2269	req.SetContext(ctx)
2270	req.ApplyOptions(opts...)
2271	return out, req.Send()
2272}
2273
2274// The authentication settings for accessing provisioned data models in your
2275// Amplify project.
2276type BackendAPIAppSyncAuthSettings struct {
2277	_ struct{} `type:"structure"`
2278
2279	// The Amazon Cognito user pool ID, if Amazon Cognito was used as an authentication
2280	// setting to access your data models.
2281	CognitoUserPoolId *string `locationName:"cognitoUserPoolId" type:"string"`
2282
2283	// The API key description for API_KEY, if it was used as an authentication
2284	// mechanism to access your data models.
2285	Description *string `locationName:"description" type:"string"`
2286
2287	// The API key expiration time for API_KEY, if it was used as an authentication
2288	// mechanism to access your data models.
2289	ExpirationTime *float64 `locationName:"expirationTime" type:"double"`
2290
2291	// The expiry time for the OpenID authentication mechanism.
2292	OpenIDAuthTTL *string `locationName:"openIDAuthTTL" type:"string"`
2293
2294	// The clientID for openID, if openID was used as an authentication setting
2295	// to access your data models.
2296	OpenIDClientId *string `locationName:"openIDClientId" type:"string"`
2297
2298	// The expiry time for the OpenID authentication mechanism.
2299	OpenIDIatTTL *string `locationName:"openIDIatTTL" type:"string"`
2300
2301	// The openID issuer URL, if openID was used as an authentication setting to
2302	// access your data models.
2303	OpenIDIssueURL *string `locationName:"openIDIssueURL" type:"string"`
2304
2305	// The OpenID provider name, if OpenID was used as an authentication mechanism
2306	// to access your data models.
2307	OpenIDProviderName *string `locationName:"openIDProviderName" type:"string"`
2308}
2309
2310// String returns the string representation
2311func (s BackendAPIAppSyncAuthSettings) String() string {
2312	return awsutil.Prettify(s)
2313}
2314
2315// GoString returns the string representation
2316func (s BackendAPIAppSyncAuthSettings) GoString() string {
2317	return s.String()
2318}
2319
2320// SetCognitoUserPoolId sets the CognitoUserPoolId field's value.
2321func (s *BackendAPIAppSyncAuthSettings) SetCognitoUserPoolId(v string) *BackendAPIAppSyncAuthSettings {
2322	s.CognitoUserPoolId = &v
2323	return s
2324}
2325
2326// SetDescription sets the Description field's value.
2327func (s *BackendAPIAppSyncAuthSettings) SetDescription(v string) *BackendAPIAppSyncAuthSettings {
2328	s.Description = &v
2329	return s
2330}
2331
2332// SetExpirationTime sets the ExpirationTime field's value.
2333func (s *BackendAPIAppSyncAuthSettings) SetExpirationTime(v float64) *BackendAPIAppSyncAuthSettings {
2334	s.ExpirationTime = &v
2335	return s
2336}
2337
2338// SetOpenIDAuthTTL sets the OpenIDAuthTTL field's value.
2339func (s *BackendAPIAppSyncAuthSettings) SetOpenIDAuthTTL(v string) *BackendAPIAppSyncAuthSettings {
2340	s.OpenIDAuthTTL = &v
2341	return s
2342}
2343
2344// SetOpenIDClientId sets the OpenIDClientId field's value.
2345func (s *BackendAPIAppSyncAuthSettings) SetOpenIDClientId(v string) *BackendAPIAppSyncAuthSettings {
2346	s.OpenIDClientId = &v
2347	return s
2348}
2349
2350// SetOpenIDIatTTL sets the OpenIDIatTTL field's value.
2351func (s *BackendAPIAppSyncAuthSettings) SetOpenIDIatTTL(v string) *BackendAPIAppSyncAuthSettings {
2352	s.OpenIDIatTTL = &v
2353	return s
2354}
2355
2356// SetOpenIDIssueURL sets the OpenIDIssueURL field's value.
2357func (s *BackendAPIAppSyncAuthSettings) SetOpenIDIssueURL(v string) *BackendAPIAppSyncAuthSettings {
2358	s.OpenIDIssueURL = &v
2359	return s
2360}
2361
2362// SetOpenIDProviderName sets the OpenIDProviderName field's value.
2363func (s *BackendAPIAppSyncAuthSettings) SetOpenIDProviderName(v string) *BackendAPIAppSyncAuthSettings {
2364	s.OpenIDProviderName = &v
2365	return s
2366}
2367
2368// Describes the auth types for your configured data models.
2369type BackendAPIAuthType struct {
2370	_ struct{} `type:"structure"`
2371
2372	// Describes the authentication mode.
2373	Mode *string `locationName:"mode" type:"string" enum:"Mode"`
2374
2375	// Describes settings for the authentication mode.
2376	Settings *BackendAPIAppSyncAuthSettings `locationName:"settings" type:"structure"`
2377}
2378
2379// String returns the string representation
2380func (s BackendAPIAuthType) String() string {
2381	return awsutil.Prettify(s)
2382}
2383
2384// GoString returns the string representation
2385func (s BackendAPIAuthType) GoString() string {
2386	return s.String()
2387}
2388
2389// SetMode sets the Mode field's value.
2390func (s *BackendAPIAuthType) SetMode(v string) *BackendAPIAuthType {
2391	s.Mode = &v
2392	return s
2393}
2394
2395// SetSettings sets the Settings field's value.
2396func (s *BackendAPIAuthType) SetSettings(v *BackendAPIAppSyncAuthSettings) *BackendAPIAuthType {
2397	s.Settings = v
2398	return s
2399}
2400
2401// Describes the conflict resolution configuration for your data model configured
2402// in your Amplify project.
2403type BackendAPIConflictResolution struct {
2404	_ struct{} `type:"structure"`
2405
2406	// The strategy for conflict resolution.
2407	ResolutionStrategy *string `locationName:"resolutionStrategy" type:"string" enum:"ResolutionStrategy"`
2408}
2409
2410// String returns the string representation
2411func (s BackendAPIConflictResolution) String() string {
2412	return awsutil.Prettify(s)
2413}
2414
2415// GoString returns the string representation
2416func (s BackendAPIConflictResolution) GoString() string {
2417	return s.String()
2418}
2419
2420// SetResolutionStrategy sets the ResolutionStrategy field's value.
2421func (s *BackendAPIConflictResolution) SetResolutionStrategy(v string) *BackendAPIConflictResolution {
2422	s.ResolutionStrategy = &v
2423	return s
2424}
2425
2426// The resource config for the data model, configured as a part of the Amplify
2427// project.
2428type BackendAPIResourceConfig struct {
2429	_ struct{} `type:"structure"`
2430
2431	// Additional authentication methods used to interact with your data models.
2432	AdditionalAuthTypes []*BackendAPIAuthType `locationName:"additionalAuthTypes" type:"list"`
2433
2434	// The API name used to interact with the data model, configured as a part of
2435	// the amplify project.
2436	ApiName *string `locationName:"apiName" type:"string"`
2437
2438	// The conflict resolution strategy for your data stored in the data models.
2439	ConflictResolution *BackendAPIConflictResolution `locationName:"conflictResolution" type:"structure"`
2440
2441	// The default authentication type for interacting with the configured data
2442	// models in your Amplify project.
2443	DefaultAuthType *BackendAPIAuthType `locationName:"defaultAuthType" type:"structure"`
2444
2445	// The service used to provision and interact with the data model.
2446	Service *string `locationName:"service" type:"string"`
2447
2448	// The definition of the data model in the annotated transform of the GraphQL
2449	// schema.
2450	TransformSchema *string `locationName:"transformSchema" type:"string"`
2451}
2452
2453// String returns the string representation
2454func (s BackendAPIResourceConfig) String() string {
2455	return awsutil.Prettify(s)
2456}
2457
2458// GoString returns the string representation
2459func (s BackendAPIResourceConfig) GoString() string {
2460	return s.String()
2461}
2462
2463// SetAdditionalAuthTypes sets the AdditionalAuthTypes field's value.
2464func (s *BackendAPIResourceConfig) SetAdditionalAuthTypes(v []*BackendAPIAuthType) *BackendAPIResourceConfig {
2465	s.AdditionalAuthTypes = v
2466	return s
2467}
2468
2469// SetApiName sets the ApiName field's value.
2470func (s *BackendAPIResourceConfig) SetApiName(v string) *BackendAPIResourceConfig {
2471	s.ApiName = &v
2472	return s
2473}
2474
2475// SetConflictResolution sets the ConflictResolution field's value.
2476func (s *BackendAPIResourceConfig) SetConflictResolution(v *BackendAPIConflictResolution) *BackendAPIResourceConfig {
2477	s.ConflictResolution = v
2478	return s
2479}
2480
2481// SetDefaultAuthType sets the DefaultAuthType field's value.
2482func (s *BackendAPIResourceConfig) SetDefaultAuthType(v *BackendAPIAuthType) *BackendAPIResourceConfig {
2483	s.DefaultAuthType = v
2484	return s
2485}
2486
2487// SetService sets the Service field's value.
2488func (s *BackendAPIResourceConfig) SetService(v string) *BackendAPIResourceConfig {
2489	s.Service = &v
2490	return s
2491}
2492
2493// SetTransformSchema sets the TransformSchema field's value.
2494func (s *BackendAPIResourceConfig) SetTransformSchema(v string) *BackendAPIResourceConfig {
2495	s.TransformSchema = &v
2496	return s
2497}
2498
2499// Describes third-party social federation configurations for allowing your
2500// app users to sign in using OAuth.
2501type BackendAuthSocialProviderConfig struct {
2502	_ struct{} `type:"structure"`
2503
2504	// Describes the client_id which can be obtained from the third-party social
2505	// federation provider.
2506	ClientId *string `locationName:"client_id" type:"string"`
2507
2508	// Describes the client_secret which can be obtained from third-party social
2509	// federation providers.
2510	ClientSecret *string `locationName:"client_secret" type:"string"`
2511}
2512
2513// String returns the string representation
2514func (s BackendAuthSocialProviderConfig) String() string {
2515	return awsutil.Prettify(s)
2516}
2517
2518// GoString returns the string representation
2519func (s BackendAuthSocialProviderConfig) GoString() string {
2520	return s.String()
2521}
2522
2523// SetClientId sets the ClientId field's value.
2524func (s *BackendAuthSocialProviderConfig) SetClientId(v string) *BackendAuthSocialProviderConfig {
2525	s.ClientId = &v
2526	return s
2527}
2528
2529// SetClientSecret sets the ClientSecret field's value.
2530func (s *BackendAuthSocialProviderConfig) SetClientSecret(v string) *BackendAuthSocialProviderConfig {
2531	s.ClientSecret = &v
2532	return s
2533}
2534
2535// The response object for this operation.
2536type BackendJobRespObj struct {
2537	_ struct{} `type:"structure"`
2538
2539	// The app ID.
2540	//
2541	// AppId is a required field
2542	AppId *string `locationName:"appId" type:"string" required:"true"`
2543
2544	// The name of the backend environment.
2545	//
2546	// BackendEnvironmentName is a required field
2547	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string" required:"true"`
2548
2549	// The time when the job was created.
2550	CreateTime *string `locationName:"createTime" type:"string"`
2551
2552	// If the request fails, this error is returned.
2553	Error *string `locationName:"error" type:"string"`
2554
2555	// The ID for the job.
2556	JobId *string `locationName:"jobId" type:"string"`
2557
2558	// The name of the operation.
2559	Operation *string `locationName:"operation" type:"string"`
2560
2561	// The current status of the request.
2562	Status *string `locationName:"status" type:"string"`
2563
2564	// The time when the job was last updated.
2565	UpdateTime *string `locationName:"updateTime" type:"string"`
2566}
2567
2568// String returns the string representation
2569func (s BackendJobRespObj) String() string {
2570	return awsutil.Prettify(s)
2571}
2572
2573// GoString returns the string representation
2574func (s BackendJobRespObj) GoString() string {
2575	return s.String()
2576}
2577
2578// SetAppId sets the AppId field's value.
2579func (s *BackendJobRespObj) SetAppId(v string) *BackendJobRespObj {
2580	s.AppId = &v
2581	return s
2582}
2583
2584// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
2585func (s *BackendJobRespObj) SetBackendEnvironmentName(v string) *BackendJobRespObj {
2586	s.BackendEnvironmentName = &v
2587	return s
2588}
2589
2590// SetCreateTime sets the CreateTime field's value.
2591func (s *BackendJobRespObj) SetCreateTime(v string) *BackendJobRespObj {
2592	s.CreateTime = &v
2593	return s
2594}
2595
2596// SetError sets the Error field's value.
2597func (s *BackendJobRespObj) SetError(v string) *BackendJobRespObj {
2598	s.Error = &v
2599	return s
2600}
2601
2602// SetJobId sets the JobId field's value.
2603func (s *BackendJobRespObj) SetJobId(v string) *BackendJobRespObj {
2604	s.JobId = &v
2605	return s
2606}
2607
2608// SetOperation sets the Operation field's value.
2609func (s *BackendJobRespObj) SetOperation(v string) *BackendJobRespObj {
2610	s.Operation = &v
2611	return s
2612}
2613
2614// SetStatus sets the Status field's value.
2615func (s *BackendJobRespObj) SetStatus(v string) *BackendJobRespObj {
2616	s.Status = &v
2617	return s
2618}
2619
2620// SetUpdateTime sets the UpdateTime field's value.
2621func (s *BackendJobRespObj) SetUpdateTime(v string) *BackendJobRespObj {
2622	s.UpdateTime = &v
2623	return s
2624}
2625
2626// An error returned if a request is not formed properly.
2627type BadRequestException struct {
2628	_            struct{}                  `type:"structure"`
2629	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
2630
2631	// An error message to inform that the request failed.
2632	Message_ *string `locationName:"message" type:"string"`
2633}
2634
2635// String returns the string representation
2636func (s BadRequestException) String() string {
2637	return awsutil.Prettify(s)
2638}
2639
2640// GoString returns the string representation
2641func (s BadRequestException) GoString() string {
2642	return s.String()
2643}
2644
2645func newErrorBadRequestException(v protocol.ResponseMetadata) error {
2646	return &BadRequestException{
2647		RespMetadata: v,
2648	}
2649}
2650
2651// Code returns the exception type name.
2652func (s *BadRequestException) Code() string {
2653	return "BadRequestException"
2654}
2655
2656// Message returns the exception's message.
2657func (s *BadRequestException) Message() string {
2658	if s.Message_ != nil {
2659		return *s.Message_
2660	}
2661	return ""
2662}
2663
2664// OrigErr always returns nil, satisfies awserr.Error interface.
2665func (s *BadRequestException) OrigErr() error {
2666	return nil
2667}
2668
2669func (s *BadRequestException) Error() string {
2670	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
2671}
2672
2673// Status code returns the HTTP status code for the request's response error.
2674func (s *BadRequestException) StatusCode() int {
2675	return s.RespMetadata.StatusCode
2676}
2677
2678// RequestID returns the service's response RequestID for request.
2679func (s *BadRequestException) RequestID() string {
2680	return s.RespMetadata.RequestID
2681}
2682
2683type CloneBackendInput struct {
2684	_ struct{} `type:"structure"`
2685
2686	// AppId is a required field
2687	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
2688
2689	// BackendEnvironmentName is a required field
2690	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
2691
2692	// TargetEnvironmentName is a required field
2693	TargetEnvironmentName *string `locationName:"targetEnvironmentName" type:"string" required:"true"`
2694}
2695
2696// String returns the string representation
2697func (s CloneBackendInput) String() string {
2698	return awsutil.Prettify(s)
2699}
2700
2701// GoString returns the string representation
2702func (s CloneBackendInput) GoString() string {
2703	return s.String()
2704}
2705
2706// Validate inspects the fields of the type to determine if they are valid.
2707func (s *CloneBackendInput) Validate() error {
2708	invalidParams := request.ErrInvalidParams{Context: "CloneBackendInput"}
2709	if s.AppId == nil {
2710		invalidParams.Add(request.NewErrParamRequired("AppId"))
2711	}
2712	if s.AppId != nil && len(*s.AppId) < 1 {
2713		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
2714	}
2715	if s.BackendEnvironmentName == nil {
2716		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
2717	}
2718	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
2719		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
2720	}
2721	if s.TargetEnvironmentName == nil {
2722		invalidParams.Add(request.NewErrParamRequired("TargetEnvironmentName"))
2723	}
2724
2725	if invalidParams.Len() > 0 {
2726		return invalidParams
2727	}
2728	return nil
2729}
2730
2731// SetAppId sets the AppId field's value.
2732func (s *CloneBackendInput) SetAppId(v string) *CloneBackendInput {
2733	s.AppId = &v
2734	return s
2735}
2736
2737// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
2738func (s *CloneBackendInput) SetBackendEnvironmentName(v string) *CloneBackendInput {
2739	s.BackendEnvironmentName = &v
2740	return s
2741}
2742
2743// SetTargetEnvironmentName sets the TargetEnvironmentName field's value.
2744func (s *CloneBackendInput) SetTargetEnvironmentName(v string) *CloneBackendInput {
2745	s.TargetEnvironmentName = &v
2746	return s
2747}
2748
2749type CloneBackendOutput struct {
2750	_ struct{} `type:"structure"`
2751
2752	AppId *string `locationName:"appId" type:"string"`
2753
2754	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
2755
2756	Error *string `locationName:"error" type:"string"`
2757
2758	JobId *string `locationName:"jobId" type:"string"`
2759
2760	Operation *string `locationName:"operation" type:"string"`
2761
2762	Status *string `locationName:"status" type:"string"`
2763}
2764
2765// String returns the string representation
2766func (s CloneBackendOutput) String() string {
2767	return awsutil.Prettify(s)
2768}
2769
2770// GoString returns the string representation
2771func (s CloneBackendOutput) GoString() string {
2772	return s.String()
2773}
2774
2775// SetAppId sets the AppId field's value.
2776func (s *CloneBackendOutput) SetAppId(v string) *CloneBackendOutput {
2777	s.AppId = &v
2778	return s
2779}
2780
2781// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
2782func (s *CloneBackendOutput) SetBackendEnvironmentName(v string) *CloneBackendOutput {
2783	s.BackendEnvironmentName = &v
2784	return s
2785}
2786
2787// SetError sets the Error field's value.
2788func (s *CloneBackendOutput) SetError(v string) *CloneBackendOutput {
2789	s.Error = &v
2790	return s
2791}
2792
2793// SetJobId sets the JobId field's value.
2794func (s *CloneBackendOutput) SetJobId(v string) *CloneBackendOutput {
2795	s.JobId = &v
2796	return s
2797}
2798
2799// SetOperation sets the Operation field's value.
2800func (s *CloneBackendOutput) SetOperation(v string) *CloneBackendOutput {
2801	s.Operation = &v
2802	return s
2803}
2804
2805// SetStatus sets the Status field's value.
2806func (s *CloneBackendOutput) SetStatus(v string) *CloneBackendOutput {
2807	s.Status = &v
2808	return s
2809}
2810
2811type CreateBackendAPIInput struct {
2812	_ struct{} `type:"structure"`
2813
2814	// AppId is a required field
2815	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
2816
2817	// BackendEnvironmentName is a required field
2818	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string" required:"true"`
2819
2820	// The resource config for the data model, configured as a part of the Amplify
2821	// project.
2822	//
2823	// ResourceConfig is a required field
2824	ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure" required:"true"`
2825
2826	// ResourceName is a required field
2827	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
2828}
2829
2830// String returns the string representation
2831func (s CreateBackendAPIInput) String() string {
2832	return awsutil.Prettify(s)
2833}
2834
2835// GoString returns the string representation
2836func (s CreateBackendAPIInput) GoString() string {
2837	return s.String()
2838}
2839
2840// Validate inspects the fields of the type to determine if they are valid.
2841func (s *CreateBackendAPIInput) Validate() error {
2842	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAPIInput"}
2843	if s.AppId == nil {
2844		invalidParams.Add(request.NewErrParamRequired("AppId"))
2845	}
2846	if s.AppId != nil && len(*s.AppId) < 1 {
2847		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
2848	}
2849	if s.BackendEnvironmentName == nil {
2850		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
2851	}
2852	if s.ResourceConfig == nil {
2853		invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
2854	}
2855	if s.ResourceName == nil {
2856		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
2857	}
2858
2859	if invalidParams.Len() > 0 {
2860		return invalidParams
2861	}
2862	return nil
2863}
2864
2865// SetAppId sets the AppId field's value.
2866func (s *CreateBackendAPIInput) SetAppId(v string) *CreateBackendAPIInput {
2867	s.AppId = &v
2868	return s
2869}
2870
2871// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
2872func (s *CreateBackendAPIInput) SetBackendEnvironmentName(v string) *CreateBackendAPIInput {
2873	s.BackendEnvironmentName = &v
2874	return s
2875}
2876
2877// SetResourceConfig sets the ResourceConfig field's value.
2878func (s *CreateBackendAPIInput) SetResourceConfig(v *BackendAPIResourceConfig) *CreateBackendAPIInput {
2879	s.ResourceConfig = v
2880	return s
2881}
2882
2883// SetResourceName sets the ResourceName field's value.
2884func (s *CreateBackendAPIInput) SetResourceName(v string) *CreateBackendAPIInput {
2885	s.ResourceName = &v
2886	return s
2887}
2888
2889type CreateBackendAPIOutput struct {
2890	_ struct{} `type:"structure"`
2891
2892	AppId *string `locationName:"appId" type:"string"`
2893
2894	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
2895
2896	Error *string `locationName:"error" type:"string"`
2897
2898	JobId *string `locationName:"jobId" type:"string"`
2899
2900	Operation *string `locationName:"operation" type:"string"`
2901
2902	Status *string `locationName:"status" type:"string"`
2903}
2904
2905// String returns the string representation
2906func (s CreateBackendAPIOutput) String() string {
2907	return awsutil.Prettify(s)
2908}
2909
2910// GoString returns the string representation
2911func (s CreateBackendAPIOutput) GoString() string {
2912	return s.String()
2913}
2914
2915// SetAppId sets the AppId field's value.
2916func (s *CreateBackendAPIOutput) SetAppId(v string) *CreateBackendAPIOutput {
2917	s.AppId = &v
2918	return s
2919}
2920
2921// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
2922func (s *CreateBackendAPIOutput) SetBackendEnvironmentName(v string) *CreateBackendAPIOutput {
2923	s.BackendEnvironmentName = &v
2924	return s
2925}
2926
2927// SetError sets the Error field's value.
2928func (s *CreateBackendAPIOutput) SetError(v string) *CreateBackendAPIOutput {
2929	s.Error = &v
2930	return s
2931}
2932
2933// SetJobId sets the JobId field's value.
2934func (s *CreateBackendAPIOutput) SetJobId(v string) *CreateBackendAPIOutput {
2935	s.JobId = &v
2936	return s
2937}
2938
2939// SetOperation sets the Operation field's value.
2940func (s *CreateBackendAPIOutput) SetOperation(v string) *CreateBackendAPIOutput {
2941	s.Operation = &v
2942	return s
2943}
2944
2945// SetStatus sets the Status field's value.
2946func (s *CreateBackendAPIOutput) SetStatus(v string) *CreateBackendAPIOutput {
2947	s.Status = &v
2948	return s
2949}
2950
2951// Describes the forgot password policy for authenticating into the Amplify
2952// app.
2953type CreateBackendAuthForgotPasswordConfig struct {
2954	_ struct{} `type:"structure"`
2955
2956	// Describes which mode to use (either SMS or email) to deliver messages to
2957	// app users that want to recover their password.
2958	//
2959	// DeliveryMethod is a required field
2960	DeliveryMethod *string `locationName:"deliveryMethod" type:"string" required:"true" enum:"DeliveryMethod"`
2961
2962	// The configuration for the email sent when an app user forgets their password.
2963	EmailSettings *EmailSettings `locationName:"emailSettings" type:"structure"`
2964
2965	// The configuration for the SMS message sent when an app user forgets their
2966	// password.
2967	SmsSettings *SmsSettings `locationName:"smsSettings" type:"structure"`
2968}
2969
2970// String returns the string representation
2971func (s CreateBackendAuthForgotPasswordConfig) String() string {
2972	return awsutil.Prettify(s)
2973}
2974
2975// GoString returns the string representation
2976func (s CreateBackendAuthForgotPasswordConfig) GoString() string {
2977	return s.String()
2978}
2979
2980// Validate inspects the fields of the type to determine if they are valid.
2981func (s *CreateBackendAuthForgotPasswordConfig) Validate() error {
2982	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthForgotPasswordConfig"}
2983	if s.DeliveryMethod == nil {
2984		invalidParams.Add(request.NewErrParamRequired("DeliveryMethod"))
2985	}
2986
2987	if invalidParams.Len() > 0 {
2988		return invalidParams
2989	}
2990	return nil
2991}
2992
2993// SetDeliveryMethod sets the DeliveryMethod field's value.
2994func (s *CreateBackendAuthForgotPasswordConfig) SetDeliveryMethod(v string) *CreateBackendAuthForgotPasswordConfig {
2995	s.DeliveryMethod = &v
2996	return s
2997}
2998
2999// SetEmailSettings sets the EmailSettings field's value.
3000func (s *CreateBackendAuthForgotPasswordConfig) SetEmailSettings(v *EmailSettings) *CreateBackendAuthForgotPasswordConfig {
3001	s.EmailSettings = v
3002	return s
3003}
3004
3005// SetSmsSettings sets the SmsSettings field's value.
3006func (s *CreateBackendAuthForgotPasswordConfig) SetSmsSettings(v *SmsSettings) *CreateBackendAuthForgotPasswordConfig {
3007	s.SmsSettings = v
3008	return s
3009}
3010
3011// Describes authorization configurations for the auth resources, configured
3012// as a part of your Amplify project.
3013type CreateBackendAuthIdentityPoolConfig struct {
3014	_ struct{} `type:"structure"`
3015
3016	// Name of the Amazon Cognito identity pool used for authorization.
3017	//
3018	// IdentityPoolName is a required field
3019	IdentityPoolName *string `locationName:"identityPoolName" type:"string" required:"true"`
3020
3021	// Set to true or false based on whether you want to enable guest authorization
3022	// to your Amplify app.
3023	//
3024	// UnauthenticatedLogin is a required field
3025	UnauthenticatedLogin *bool `locationName:"unauthenticatedLogin" type:"boolean" required:"true"`
3026}
3027
3028// String returns the string representation
3029func (s CreateBackendAuthIdentityPoolConfig) String() string {
3030	return awsutil.Prettify(s)
3031}
3032
3033// GoString returns the string representation
3034func (s CreateBackendAuthIdentityPoolConfig) GoString() string {
3035	return s.String()
3036}
3037
3038// Validate inspects the fields of the type to determine if they are valid.
3039func (s *CreateBackendAuthIdentityPoolConfig) Validate() error {
3040	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthIdentityPoolConfig"}
3041	if s.IdentityPoolName == nil {
3042		invalidParams.Add(request.NewErrParamRequired("IdentityPoolName"))
3043	}
3044	if s.UnauthenticatedLogin == nil {
3045		invalidParams.Add(request.NewErrParamRequired("UnauthenticatedLogin"))
3046	}
3047
3048	if invalidParams.Len() > 0 {
3049		return invalidParams
3050	}
3051	return nil
3052}
3053
3054// SetIdentityPoolName sets the IdentityPoolName field's value.
3055func (s *CreateBackendAuthIdentityPoolConfig) SetIdentityPoolName(v string) *CreateBackendAuthIdentityPoolConfig {
3056	s.IdentityPoolName = &v
3057	return s
3058}
3059
3060// SetUnauthenticatedLogin sets the UnauthenticatedLogin field's value.
3061func (s *CreateBackendAuthIdentityPoolConfig) SetUnauthenticatedLogin(v bool) *CreateBackendAuthIdentityPoolConfig {
3062	s.UnauthenticatedLogin = &v
3063	return s
3064}
3065
3066type CreateBackendAuthInput struct {
3067	_ struct{} `type:"structure"`
3068
3069	// AppId is a required field
3070	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
3071
3072	// BackendEnvironmentName is a required field
3073	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string" required:"true"`
3074
3075	// Defines the resource configuration when creating an auth resource in your
3076	// Amplify project.
3077	//
3078	// ResourceConfig is a required field
3079	ResourceConfig *CreateBackendAuthResourceConfig `locationName:"resourceConfig" type:"structure" required:"true"`
3080
3081	// ResourceName is a required field
3082	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
3083}
3084
3085// String returns the string representation
3086func (s CreateBackendAuthInput) String() string {
3087	return awsutil.Prettify(s)
3088}
3089
3090// GoString returns the string representation
3091func (s CreateBackendAuthInput) GoString() string {
3092	return s.String()
3093}
3094
3095// Validate inspects the fields of the type to determine if they are valid.
3096func (s *CreateBackendAuthInput) Validate() error {
3097	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthInput"}
3098	if s.AppId == nil {
3099		invalidParams.Add(request.NewErrParamRequired("AppId"))
3100	}
3101	if s.AppId != nil && len(*s.AppId) < 1 {
3102		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
3103	}
3104	if s.BackendEnvironmentName == nil {
3105		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
3106	}
3107	if s.ResourceConfig == nil {
3108		invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
3109	}
3110	if s.ResourceName == nil {
3111		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
3112	}
3113	if s.ResourceConfig != nil {
3114		if err := s.ResourceConfig.Validate(); err != nil {
3115			invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
3116		}
3117	}
3118
3119	if invalidParams.Len() > 0 {
3120		return invalidParams
3121	}
3122	return nil
3123}
3124
3125// SetAppId sets the AppId field's value.
3126func (s *CreateBackendAuthInput) SetAppId(v string) *CreateBackendAuthInput {
3127	s.AppId = &v
3128	return s
3129}
3130
3131// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
3132func (s *CreateBackendAuthInput) SetBackendEnvironmentName(v string) *CreateBackendAuthInput {
3133	s.BackendEnvironmentName = &v
3134	return s
3135}
3136
3137// SetResourceConfig sets the ResourceConfig field's value.
3138func (s *CreateBackendAuthInput) SetResourceConfig(v *CreateBackendAuthResourceConfig) *CreateBackendAuthInput {
3139	s.ResourceConfig = v
3140	return s
3141}
3142
3143// SetResourceName sets the ResourceName field's value.
3144func (s *CreateBackendAuthInput) SetResourceName(v string) *CreateBackendAuthInput {
3145	s.ResourceName = &v
3146	return s
3147}
3148
3149// Describes whether multi-factor authentication policies should be applied
3150// for your Amazon Cognito user pool configured as a part of your Amplify project.
3151type CreateBackendAuthMFAConfig struct {
3152	_ struct{} `type:"structure"`
3153
3154	// Describes whether MFA should be [ON, OFF, OPTIONAL] for authentication in
3155	// your Amplify project.
3156	//
3157	// MFAMode is a required field
3158	MFAMode *string `type:"string" required:"true" enum:"MFAMode"`
3159
3160	// Describes the configuration settings and methods for your Amplify app users
3161	// to use MFA.
3162	Settings *Settings `locationName:"settings" type:"structure"`
3163}
3164
3165// String returns the string representation
3166func (s CreateBackendAuthMFAConfig) String() string {
3167	return awsutil.Prettify(s)
3168}
3169
3170// GoString returns the string representation
3171func (s CreateBackendAuthMFAConfig) GoString() string {
3172	return s.String()
3173}
3174
3175// Validate inspects the fields of the type to determine if they are valid.
3176func (s *CreateBackendAuthMFAConfig) Validate() error {
3177	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthMFAConfig"}
3178	if s.MFAMode == nil {
3179		invalidParams.Add(request.NewErrParamRequired("MFAMode"))
3180	}
3181
3182	if invalidParams.Len() > 0 {
3183		return invalidParams
3184	}
3185	return nil
3186}
3187
3188// SetMFAMode sets the MFAMode field's value.
3189func (s *CreateBackendAuthMFAConfig) SetMFAMode(v string) *CreateBackendAuthMFAConfig {
3190	s.MFAMode = &v
3191	return s
3192}
3193
3194// SetSettings sets the Settings field's value.
3195func (s *CreateBackendAuthMFAConfig) SetSettings(v *Settings) *CreateBackendAuthMFAConfig {
3196	s.Settings = v
3197	return s
3198}
3199
3200// Creates the OAuth configuration for your Amplify project.
3201type CreateBackendAuthOAuthConfig struct {
3202	_ struct{} `type:"structure"`
3203
3204	// The domain prefix for your Amplify app.
3205	DomainPrefix *string `locationName:"domainPrefix" type:"string"`
3206
3207	// The OAuth grant type that you use to allow app users to authenticate from
3208	// your Amplify app.
3209	//
3210	// OAuthGrantType is a required field
3211	OAuthGrantType *string `locationName:"oAuthGrantType" type:"string" required:"true" enum:"OAuthGrantType"`
3212
3213	// List of OAuth-related flows used to allow your app users to authenticate
3214	// from your Amplify app.
3215	//
3216	// OAuthScopes is a required field
3217	OAuthScopes []*string `locationName:"oAuthScopes" type:"list" required:"true"`
3218
3219	// The redirected URI for signing in to your Amplify app.
3220	//
3221	// RedirectSignInURIs is a required field
3222	RedirectSignInURIs []*string `locationName:"redirectSignInURIs" type:"list" required:"true"`
3223
3224	// Redirect URLs used by OAuth when a user signs out of an Amplify app.
3225	//
3226	// RedirectSignOutURIs is a required field
3227	RedirectSignOutURIs []*string `locationName:"redirectSignOutURIs" type:"list" required:"true"`
3228
3229	// The settings for using social providers to access your Amplify app.
3230	SocialProviderSettings *SocialProviderSettings `locationName:"socialProviderSettings" type:"structure"`
3231}
3232
3233// String returns the string representation
3234func (s CreateBackendAuthOAuthConfig) String() string {
3235	return awsutil.Prettify(s)
3236}
3237
3238// GoString returns the string representation
3239func (s CreateBackendAuthOAuthConfig) GoString() string {
3240	return s.String()
3241}
3242
3243// Validate inspects the fields of the type to determine if they are valid.
3244func (s *CreateBackendAuthOAuthConfig) Validate() error {
3245	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthOAuthConfig"}
3246	if s.OAuthGrantType == nil {
3247		invalidParams.Add(request.NewErrParamRequired("OAuthGrantType"))
3248	}
3249	if s.OAuthScopes == nil {
3250		invalidParams.Add(request.NewErrParamRequired("OAuthScopes"))
3251	}
3252	if s.RedirectSignInURIs == nil {
3253		invalidParams.Add(request.NewErrParamRequired("RedirectSignInURIs"))
3254	}
3255	if s.RedirectSignOutURIs == nil {
3256		invalidParams.Add(request.NewErrParamRequired("RedirectSignOutURIs"))
3257	}
3258
3259	if invalidParams.Len() > 0 {
3260		return invalidParams
3261	}
3262	return nil
3263}
3264
3265// SetDomainPrefix sets the DomainPrefix field's value.
3266func (s *CreateBackendAuthOAuthConfig) SetDomainPrefix(v string) *CreateBackendAuthOAuthConfig {
3267	s.DomainPrefix = &v
3268	return s
3269}
3270
3271// SetOAuthGrantType sets the OAuthGrantType field's value.
3272func (s *CreateBackendAuthOAuthConfig) SetOAuthGrantType(v string) *CreateBackendAuthOAuthConfig {
3273	s.OAuthGrantType = &v
3274	return s
3275}
3276
3277// SetOAuthScopes sets the OAuthScopes field's value.
3278func (s *CreateBackendAuthOAuthConfig) SetOAuthScopes(v []*string) *CreateBackendAuthOAuthConfig {
3279	s.OAuthScopes = v
3280	return s
3281}
3282
3283// SetRedirectSignInURIs sets the RedirectSignInURIs field's value.
3284func (s *CreateBackendAuthOAuthConfig) SetRedirectSignInURIs(v []*string) *CreateBackendAuthOAuthConfig {
3285	s.RedirectSignInURIs = v
3286	return s
3287}
3288
3289// SetRedirectSignOutURIs sets the RedirectSignOutURIs field's value.
3290func (s *CreateBackendAuthOAuthConfig) SetRedirectSignOutURIs(v []*string) *CreateBackendAuthOAuthConfig {
3291	s.RedirectSignOutURIs = v
3292	return s
3293}
3294
3295// SetSocialProviderSettings sets the SocialProviderSettings field's value.
3296func (s *CreateBackendAuthOAuthConfig) SetSocialProviderSettings(v *SocialProviderSettings) *CreateBackendAuthOAuthConfig {
3297	s.SocialProviderSettings = v
3298	return s
3299}
3300
3301type CreateBackendAuthOutput struct {
3302	_ struct{} `type:"structure"`
3303
3304	AppId *string `locationName:"appId" type:"string"`
3305
3306	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
3307
3308	Error *string `locationName:"error" type:"string"`
3309
3310	JobId *string `locationName:"jobId" type:"string"`
3311
3312	Operation *string `locationName:"operation" type:"string"`
3313
3314	Status *string `locationName:"status" type:"string"`
3315}
3316
3317// String returns the string representation
3318func (s CreateBackendAuthOutput) String() string {
3319	return awsutil.Prettify(s)
3320}
3321
3322// GoString returns the string representation
3323func (s CreateBackendAuthOutput) GoString() string {
3324	return s.String()
3325}
3326
3327// SetAppId sets the AppId field's value.
3328func (s *CreateBackendAuthOutput) SetAppId(v string) *CreateBackendAuthOutput {
3329	s.AppId = &v
3330	return s
3331}
3332
3333// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
3334func (s *CreateBackendAuthOutput) SetBackendEnvironmentName(v string) *CreateBackendAuthOutput {
3335	s.BackendEnvironmentName = &v
3336	return s
3337}
3338
3339// SetError sets the Error field's value.
3340func (s *CreateBackendAuthOutput) SetError(v string) *CreateBackendAuthOutput {
3341	s.Error = &v
3342	return s
3343}
3344
3345// SetJobId sets the JobId field's value.
3346func (s *CreateBackendAuthOutput) SetJobId(v string) *CreateBackendAuthOutput {
3347	s.JobId = &v
3348	return s
3349}
3350
3351// SetOperation sets the Operation field's value.
3352func (s *CreateBackendAuthOutput) SetOperation(v string) *CreateBackendAuthOutput {
3353	s.Operation = &v
3354	return s
3355}
3356
3357// SetStatus sets the Status field's value.
3358func (s *CreateBackendAuthOutput) SetStatus(v string) *CreateBackendAuthOutput {
3359	s.Status = &v
3360	return s
3361}
3362
3363// The password policy configuration for the backend to your Amplify project.
3364type CreateBackendAuthPasswordPolicyConfig struct {
3365	_ struct{} `type:"structure"`
3366
3367	// Additional constraints for the password used to access the backend of your
3368	// Amplify project.
3369	AdditionalConstraints []*string `locationName:"additionalConstraints" type:"list"`
3370
3371	// The minimum length of the password used to access the backend of your Amplify
3372	// project.
3373	//
3374	// MinimumLength is a required field
3375	MinimumLength *float64 `locationName:"minimumLength" type:"double" required:"true"`
3376}
3377
3378// String returns the string representation
3379func (s CreateBackendAuthPasswordPolicyConfig) String() string {
3380	return awsutil.Prettify(s)
3381}
3382
3383// GoString returns the string representation
3384func (s CreateBackendAuthPasswordPolicyConfig) GoString() string {
3385	return s.String()
3386}
3387
3388// Validate inspects the fields of the type to determine if they are valid.
3389func (s *CreateBackendAuthPasswordPolicyConfig) Validate() error {
3390	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthPasswordPolicyConfig"}
3391	if s.MinimumLength == nil {
3392		invalidParams.Add(request.NewErrParamRequired("MinimumLength"))
3393	}
3394
3395	if invalidParams.Len() > 0 {
3396		return invalidParams
3397	}
3398	return nil
3399}
3400
3401// SetAdditionalConstraints sets the AdditionalConstraints field's value.
3402func (s *CreateBackendAuthPasswordPolicyConfig) SetAdditionalConstraints(v []*string) *CreateBackendAuthPasswordPolicyConfig {
3403	s.AdditionalConstraints = v
3404	return s
3405}
3406
3407// SetMinimumLength sets the MinimumLength field's value.
3408func (s *CreateBackendAuthPasswordPolicyConfig) SetMinimumLength(v float64) *CreateBackendAuthPasswordPolicyConfig {
3409	s.MinimumLength = &v
3410	return s
3411}
3412
3413// Defines the resource configuration when creating an auth resource in your
3414// Amplify project.
3415type CreateBackendAuthResourceConfig struct {
3416	_ struct{} `type:"structure"`
3417
3418	// Defines whether you want to configure only authentication or both authentication
3419	// and authorization settings.
3420	//
3421	// AuthResources is a required field
3422	AuthResources *string `locationName:"authResources" type:"string" required:"true" enum:"AuthResources"`
3423
3424	// Describes the authorization configuration for the Amazon Cognito identity
3425	// pool, provisioned as a part of your auth resource in the Amplify project.
3426	IdentityPoolConfigs *CreateBackendAuthIdentityPoolConfig `locationName:"identityPoolConfigs" type:"structure"`
3427
3428	// Defines the service name to use when configuring an authentication resource
3429	// in your Amplify project.
3430	//
3431	// Service is a required field
3432	Service *string `locationName:"service" type:"string" required:"true" enum:"Service"`
3433
3434	// Describes authentication configuration for the Amazon Cognito user pool,
3435	// provisioned as a part of your auth resource in the Amplify project.
3436	//
3437	// UserPoolConfigs is a required field
3438	UserPoolConfigs *CreateBackendAuthUserPoolConfig `locationName:"userPoolConfigs" type:"structure" required:"true"`
3439}
3440
3441// String returns the string representation
3442func (s CreateBackendAuthResourceConfig) String() string {
3443	return awsutil.Prettify(s)
3444}
3445
3446// GoString returns the string representation
3447func (s CreateBackendAuthResourceConfig) GoString() string {
3448	return s.String()
3449}
3450
3451// Validate inspects the fields of the type to determine if they are valid.
3452func (s *CreateBackendAuthResourceConfig) Validate() error {
3453	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthResourceConfig"}
3454	if s.AuthResources == nil {
3455		invalidParams.Add(request.NewErrParamRequired("AuthResources"))
3456	}
3457	if s.Service == nil {
3458		invalidParams.Add(request.NewErrParamRequired("Service"))
3459	}
3460	if s.UserPoolConfigs == nil {
3461		invalidParams.Add(request.NewErrParamRequired("UserPoolConfigs"))
3462	}
3463	if s.IdentityPoolConfigs != nil {
3464		if err := s.IdentityPoolConfigs.Validate(); err != nil {
3465			invalidParams.AddNested("IdentityPoolConfigs", err.(request.ErrInvalidParams))
3466		}
3467	}
3468	if s.UserPoolConfigs != nil {
3469		if err := s.UserPoolConfigs.Validate(); err != nil {
3470			invalidParams.AddNested("UserPoolConfigs", err.(request.ErrInvalidParams))
3471		}
3472	}
3473
3474	if invalidParams.Len() > 0 {
3475		return invalidParams
3476	}
3477	return nil
3478}
3479
3480// SetAuthResources sets the AuthResources field's value.
3481func (s *CreateBackendAuthResourceConfig) SetAuthResources(v string) *CreateBackendAuthResourceConfig {
3482	s.AuthResources = &v
3483	return s
3484}
3485
3486// SetIdentityPoolConfigs sets the IdentityPoolConfigs field's value.
3487func (s *CreateBackendAuthResourceConfig) SetIdentityPoolConfigs(v *CreateBackendAuthIdentityPoolConfig) *CreateBackendAuthResourceConfig {
3488	s.IdentityPoolConfigs = v
3489	return s
3490}
3491
3492// SetService sets the Service field's value.
3493func (s *CreateBackendAuthResourceConfig) SetService(v string) *CreateBackendAuthResourceConfig {
3494	s.Service = &v
3495	return s
3496}
3497
3498// SetUserPoolConfigs sets the UserPoolConfigs field's value.
3499func (s *CreateBackendAuthResourceConfig) SetUserPoolConfigs(v *CreateBackendAuthUserPoolConfig) *CreateBackendAuthResourceConfig {
3500	s.UserPoolConfigs = v
3501	return s
3502}
3503
3504// Describes the Amazon Cognito user pool configuration for the auth resource
3505// to be configured for your Amplify project.
3506type CreateBackendAuthUserPoolConfig struct {
3507	_ struct{} `type:"structure"`
3508
3509	// Describes the forgotten password policy for your Amazon Cognito user pool,
3510	// configured as a part of your Amplify project.
3511	ForgotPassword *CreateBackendAuthForgotPasswordConfig `locationName:"forgotPassword" type:"structure"`
3512
3513	// Describes whether multi-factor authentication policies should be applied
3514	// for your Amazon Cognito user pool configured as a part of your Amplify project.
3515	Mfa *CreateBackendAuthMFAConfig `locationName:"mfa" type:"structure"`
3516
3517	// Describes the OAuth policy and rules for your Amazon Cognito user pool, configured
3518	// as a part of your Amplify project.
3519	OAuth *CreateBackendAuthOAuthConfig `locationName:"oAuth" type:"structure"`
3520
3521	// Describes the password policy for your Amazon Cognito user pool, configured
3522	// as a part of your Amplify project.
3523	PasswordPolicy *CreateBackendAuthPasswordPolicyConfig `locationName:"passwordPolicy" type:"structure"`
3524
3525	// The required attributes to sign up new users in the user pool.
3526	//
3527	// RequiredSignUpAttributes is a required field
3528	RequiredSignUpAttributes []*string `locationName:"requiredSignUpAttributes" type:"list" required:"true"`
3529
3530	// Describes the sign-in methods that your Amplify app users use to log in using
3531	// the Amazon Cognito user pool, configured as a part of your Amplify project.
3532	//
3533	// SignInMethod is a required field
3534	SignInMethod *string `locationName:"signInMethod" type:"string" required:"true" enum:"SignInMethod"`
3535
3536	// The Amazon Cognito user pool name.
3537	//
3538	// UserPoolName is a required field
3539	UserPoolName *string `locationName:"userPoolName" type:"string" required:"true"`
3540}
3541
3542// String returns the string representation
3543func (s CreateBackendAuthUserPoolConfig) String() string {
3544	return awsutil.Prettify(s)
3545}
3546
3547// GoString returns the string representation
3548func (s CreateBackendAuthUserPoolConfig) GoString() string {
3549	return s.String()
3550}
3551
3552// Validate inspects the fields of the type to determine if they are valid.
3553func (s *CreateBackendAuthUserPoolConfig) Validate() error {
3554	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthUserPoolConfig"}
3555	if s.RequiredSignUpAttributes == nil {
3556		invalidParams.Add(request.NewErrParamRequired("RequiredSignUpAttributes"))
3557	}
3558	if s.SignInMethod == nil {
3559		invalidParams.Add(request.NewErrParamRequired("SignInMethod"))
3560	}
3561	if s.UserPoolName == nil {
3562		invalidParams.Add(request.NewErrParamRequired("UserPoolName"))
3563	}
3564	if s.ForgotPassword != nil {
3565		if err := s.ForgotPassword.Validate(); err != nil {
3566			invalidParams.AddNested("ForgotPassword", err.(request.ErrInvalidParams))
3567		}
3568	}
3569	if s.Mfa != nil {
3570		if err := s.Mfa.Validate(); err != nil {
3571			invalidParams.AddNested("Mfa", err.(request.ErrInvalidParams))
3572		}
3573	}
3574	if s.OAuth != nil {
3575		if err := s.OAuth.Validate(); err != nil {
3576			invalidParams.AddNested("OAuth", err.(request.ErrInvalidParams))
3577		}
3578	}
3579	if s.PasswordPolicy != nil {
3580		if err := s.PasswordPolicy.Validate(); err != nil {
3581			invalidParams.AddNested("PasswordPolicy", err.(request.ErrInvalidParams))
3582		}
3583	}
3584
3585	if invalidParams.Len() > 0 {
3586		return invalidParams
3587	}
3588	return nil
3589}
3590
3591// SetForgotPassword sets the ForgotPassword field's value.
3592func (s *CreateBackendAuthUserPoolConfig) SetForgotPassword(v *CreateBackendAuthForgotPasswordConfig) *CreateBackendAuthUserPoolConfig {
3593	s.ForgotPassword = v
3594	return s
3595}
3596
3597// SetMfa sets the Mfa field's value.
3598func (s *CreateBackendAuthUserPoolConfig) SetMfa(v *CreateBackendAuthMFAConfig) *CreateBackendAuthUserPoolConfig {
3599	s.Mfa = v
3600	return s
3601}
3602
3603// SetOAuth sets the OAuth field's value.
3604func (s *CreateBackendAuthUserPoolConfig) SetOAuth(v *CreateBackendAuthOAuthConfig) *CreateBackendAuthUserPoolConfig {
3605	s.OAuth = v
3606	return s
3607}
3608
3609// SetPasswordPolicy sets the PasswordPolicy field's value.
3610func (s *CreateBackendAuthUserPoolConfig) SetPasswordPolicy(v *CreateBackendAuthPasswordPolicyConfig) *CreateBackendAuthUserPoolConfig {
3611	s.PasswordPolicy = v
3612	return s
3613}
3614
3615// SetRequiredSignUpAttributes sets the RequiredSignUpAttributes field's value.
3616func (s *CreateBackendAuthUserPoolConfig) SetRequiredSignUpAttributes(v []*string) *CreateBackendAuthUserPoolConfig {
3617	s.RequiredSignUpAttributes = v
3618	return s
3619}
3620
3621// SetSignInMethod sets the SignInMethod field's value.
3622func (s *CreateBackendAuthUserPoolConfig) SetSignInMethod(v string) *CreateBackendAuthUserPoolConfig {
3623	s.SignInMethod = &v
3624	return s
3625}
3626
3627// SetUserPoolName sets the UserPoolName field's value.
3628func (s *CreateBackendAuthUserPoolConfig) SetUserPoolName(v string) *CreateBackendAuthUserPoolConfig {
3629	s.UserPoolName = &v
3630	return s
3631}
3632
3633type CreateBackendConfigInput struct {
3634	_ struct{} `type:"structure"`
3635
3636	// AppId is a required field
3637	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
3638
3639	BackendManagerAppId *string `locationName:"backendManagerAppId" type:"string"`
3640}
3641
3642// String returns the string representation
3643func (s CreateBackendConfigInput) String() string {
3644	return awsutil.Prettify(s)
3645}
3646
3647// GoString returns the string representation
3648func (s CreateBackendConfigInput) GoString() string {
3649	return s.String()
3650}
3651
3652// Validate inspects the fields of the type to determine if they are valid.
3653func (s *CreateBackendConfigInput) Validate() error {
3654	invalidParams := request.ErrInvalidParams{Context: "CreateBackendConfigInput"}
3655	if s.AppId == nil {
3656		invalidParams.Add(request.NewErrParamRequired("AppId"))
3657	}
3658	if s.AppId != nil && len(*s.AppId) < 1 {
3659		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
3660	}
3661
3662	if invalidParams.Len() > 0 {
3663		return invalidParams
3664	}
3665	return nil
3666}
3667
3668// SetAppId sets the AppId field's value.
3669func (s *CreateBackendConfigInput) SetAppId(v string) *CreateBackendConfigInput {
3670	s.AppId = &v
3671	return s
3672}
3673
3674// SetBackendManagerAppId sets the BackendManagerAppId field's value.
3675func (s *CreateBackendConfigInput) SetBackendManagerAppId(v string) *CreateBackendConfigInput {
3676	s.BackendManagerAppId = &v
3677	return s
3678}
3679
3680type CreateBackendConfigOutput struct {
3681	_ struct{} `type:"structure"`
3682
3683	AppId *string `locationName:"appId" type:"string"`
3684
3685	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
3686
3687	JobId *string `locationName:"jobId" type:"string"`
3688
3689	Status *string `locationName:"status" type:"string"`
3690}
3691
3692// String returns the string representation
3693func (s CreateBackendConfigOutput) String() string {
3694	return awsutil.Prettify(s)
3695}
3696
3697// GoString returns the string representation
3698func (s CreateBackendConfigOutput) GoString() string {
3699	return s.String()
3700}
3701
3702// SetAppId sets the AppId field's value.
3703func (s *CreateBackendConfigOutput) SetAppId(v string) *CreateBackendConfigOutput {
3704	s.AppId = &v
3705	return s
3706}
3707
3708// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
3709func (s *CreateBackendConfigOutput) SetBackendEnvironmentName(v string) *CreateBackendConfigOutput {
3710	s.BackendEnvironmentName = &v
3711	return s
3712}
3713
3714// SetJobId sets the JobId field's value.
3715func (s *CreateBackendConfigOutput) SetJobId(v string) *CreateBackendConfigOutput {
3716	s.JobId = &v
3717	return s
3718}
3719
3720// SetStatus sets the Status field's value.
3721func (s *CreateBackendConfigOutput) SetStatus(v string) *CreateBackendConfigOutput {
3722	s.Status = &v
3723	return s
3724}
3725
3726type CreateBackendInput struct {
3727	_ struct{} `type:"structure"`
3728
3729	// AppId is a required field
3730	AppId *string `locationName:"appId" type:"string" required:"true"`
3731
3732	// AppName is a required field
3733	AppName *string `locationName:"appName" type:"string" required:"true"`
3734
3735	// BackendEnvironmentName is a required field
3736	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string" required:"true"`
3737
3738	ResourceConfig *ResourceConfig `locationName:"resourceConfig" type:"structure"`
3739
3740	ResourceName *string `locationName:"resourceName" type:"string"`
3741}
3742
3743// String returns the string representation
3744func (s CreateBackendInput) String() string {
3745	return awsutil.Prettify(s)
3746}
3747
3748// GoString returns the string representation
3749func (s CreateBackendInput) GoString() string {
3750	return s.String()
3751}
3752
3753// Validate inspects the fields of the type to determine if they are valid.
3754func (s *CreateBackendInput) Validate() error {
3755	invalidParams := request.ErrInvalidParams{Context: "CreateBackendInput"}
3756	if s.AppId == nil {
3757		invalidParams.Add(request.NewErrParamRequired("AppId"))
3758	}
3759	if s.AppName == nil {
3760		invalidParams.Add(request.NewErrParamRequired("AppName"))
3761	}
3762	if s.BackendEnvironmentName == nil {
3763		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
3764	}
3765
3766	if invalidParams.Len() > 0 {
3767		return invalidParams
3768	}
3769	return nil
3770}
3771
3772// SetAppId sets the AppId field's value.
3773func (s *CreateBackendInput) SetAppId(v string) *CreateBackendInput {
3774	s.AppId = &v
3775	return s
3776}
3777
3778// SetAppName sets the AppName field's value.
3779func (s *CreateBackendInput) SetAppName(v string) *CreateBackendInput {
3780	s.AppName = &v
3781	return s
3782}
3783
3784// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
3785func (s *CreateBackendInput) SetBackendEnvironmentName(v string) *CreateBackendInput {
3786	s.BackendEnvironmentName = &v
3787	return s
3788}
3789
3790// SetResourceConfig sets the ResourceConfig field's value.
3791func (s *CreateBackendInput) SetResourceConfig(v *ResourceConfig) *CreateBackendInput {
3792	s.ResourceConfig = v
3793	return s
3794}
3795
3796// SetResourceName sets the ResourceName field's value.
3797func (s *CreateBackendInput) SetResourceName(v string) *CreateBackendInput {
3798	s.ResourceName = &v
3799	return s
3800}
3801
3802type CreateBackendOutput struct {
3803	_ struct{} `type:"structure"`
3804
3805	AppId *string `locationName:"appId" type:"string"`
3806
3807	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
3808
3809	Error *string `locationName:"error" type:"string"`
3810
3811	JobId *string `locationName:"jobId" type:"string"`
3812
3813	Operation *string `locationName:"operation" type:"string"`
3814
3815	Status *string `locationName:"status" type:"string"`
3816}
3817
3818// String returns the string representation
3819func (s CreateBackendOutput) String() string {
3820	return awsutil.Prettify(s)
3821}
3822
3823// GoString returns the string representation
3824func (s CreateBackendOutput) GoString() string {
3825	return s.String()
3826}
3827
3828// SetAppId sets the AppId field's value.
3829func (s *CreateBackendOutput) SetAppId(v string) *CreateBackendOutput {
3830	s.AppId = &v
3831	return s
3832}
3833
3834// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
3835func (s *CreateBackendOutput) SetBackendEnvironmentName(v string) *CreateBackendOutput {
3836	s.BackendEnvironmentName = &v
3837	return s
3838}
3839
3840// SetError sets the Error field's value.
3841func (s *CreateBackendOutput) SetError(v string) *CreateBackendOutput {
3842	s.Error = &v
3843	return s
3844}
3845
3846// SetJobId sets the JobId field's value.
3847func (s *CreateBackendOutput) SetJobId(v string) *CreateBackendOutput {
3848	s.JobId = &v
3849	return s
3850}
3851
3852// SetOperation sets the Operation field's value.
3853func (s *CreateBackendOutput) SetOperation(v string) *CreateBackendOutput {
3854	s.Operation = &v
3855	return s
3856}
3857
3858// SetStatus sets the Status field's value.
3859func (s *CreateBackendOutput) SetStatus(v string) *CreateBackendOutput {
3860	s.Status = &v
3861	return s
3862}
3863
3864type CreateTokenInput struct {
3865	_ struct{} `type:"structure"`
3866
3867	// AppId is a required field
3868	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
3869}
3870
3871// String returns the string representation
3872func (s CreateTokenInput) String() string {
3873	return awsutil.Prettify(s)
3874}
3875
3876// GoString returns the string representation
3877func (s CreateTokenInput) GoString() string {
3878	return s.String()
3879}
3880
3881// Validate inspects the fields of the type to determine if they are valid.
3882func (s *CreateTokenInput) Validate() error {
3883	invalidParams := request.ErrInvalidParams{Context: "CreateTokenInput"}
3884	if s.AppId == nil {
3885		invalidParams.Add(request.NewErrParamRequired("AppId"))
3886	}
3887	if s.AppId != nil && len(*s.AppId) < 1 {
3888		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
3889	}
3890
3891	if invalidParams.Len() > 0 {
3892		return invalidParams
3893	}
3894	return nil
3895}
3896
3897// SetAppId sets the AppId field's value.
3898func (s *CreateTokenInput) SetAppId(v string) *CreateTokenInput {
3899	s.AppId = &v
3900	return s
3901}
3902
3903type CreateTokenOutput struct {
3904	_ struct{} `type:"structure"`
3905
3906	AppId *string `locationName:"appId" type:"string"`
3907
3908	ChallengeCode *string `locationName:"challengeCode" type:"string"`
3909
3910	SessionId *string `locationName:"sessionId" type:"string"`
3911
3912	Ttl *string `locationName:"ttl" type:"string"`
3913}
3914
3915// String returns the string representation
3916func (s CreateTokenOutput) String() string {
3917	return awsutil.Prettify(s)
3918}
3919
3920// GoString returns the string representation
3921func (s CreateTokenOutput) GoString() string {
3922	return s.String()
3923}
3924
3925// SetAppId sets the AppId field's value.
3926func (s *CreateTokenOutput) SetAppId(v string) *CreateTokenOutput {
3927	s.AppId = &v
3928	return s
3929}
3930
3931// SetChallengeCode sets the ChallengeCode field's value.
3932func (s *CreateTokenOutput) SetChallengeCode(v string) *CreateTokenOutput {
3933	s.ChallengeCode = &v
3934	return s
3935}
3936
3937// SetSessionId sets the SessionId field's value.
3938func (s *CreateTokenOutput) SetSessionId(v string) *CreateTokenOutput {
3939	s.SessionId = &v
3940	return s
3941}
3942
3943// SetTtl sets the Ttl field's value.
3944func (s *CreateTokenOutput) SetTtl(v string) *CreateTokenOutput {
3945	s.Ttl = &v
3946	return s
3947}
3948
3949type DeleteBackendAPIInput struct {
3950	_ struct{} `type:"structure"`
3951
3952	// AppId is a required field
3953	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
3954
3955	// BackendEnvironmentName is a required field
3956	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
3957
3958	// The resource config for the data model, configured as a part of the Amplify
3959	// project.
3960	ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure"`
3961
3962	// ResourceName is a required field
3963	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
3964}
3965
3966// String returns the string representation
3967func (s DeleteBackendAPIInput) String() string {
3968	return awsutil.Prettify(s)
3969}
3970
3971// GoString returns the string representation
3972func (s DeleteBackendAPIInput) GoString() string {
3973	return s.String()
3974}
3975
3976// Validate inspects the fields of the type to determine if they are valid.
3977func (s *DeleteBackendAPIInput) Validate() error {
3978	invalidParams := request.ErrInvalidParams{Context: "DeleteBackendAPIInput"}
3979	if s.AppId == nil {
3980		invalidParams.Add(request.NewErrParamRequired("AppId"))
3981	}
3982	if s.AppId != nil && len(*s.AppId) < 1 {
3983		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
3984	}
3985	if s.BackendEnvironmentName == nil {
3986		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
3987	}
3988	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
3989		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
3990	}
3991	if s.ResourceName == nil {
3992		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
3993	}
3994
3995	if invalidParams.Len() > 0 {
3996		return invalidParams
3997	}
3998	return nil
3999}
4000
4001// SetAppId sets the AppId field's value.
4002func (s *DeleteBackendAPIInput) SetAppId(v string) *DeleteBackendAPIInput {
4003	s.AppId = &v
4004	return s
4005}
4006
4007// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4008func (s *DeleteBackendAPIInput) SetBackendEnvironmentName(v string) *DeleteBackendAPIInput {
4009	s.BackendEnvironmentName = &v
4010	return s
4011}
4012
4013// SetResourceConfig sets the ResourceConfig field's value.
4014func (s *DeleteBackendAPIInput) SetResourceConfig(v *BackendAPIResourceConfig) *DeleteBackendAPIInput {
4015	s.ResourceConfig = v
4016	return s
4017}
4018
4019// SetResourceName sets the ResourceName field's value.
4020func (s *DeleteBackendAPIInput) SetResourceName(v string) *DeleteBackendAPIInput {
4021	s.ResourceName = &v
4022	return s
4023}
4024
4025type DeleteBackendAPIOutput struct {
4026	_ struct{} `type:"structure"`
4027
4028	AppId *string `locationName:"appId" type:"string"`
4029
4030	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
4031
4032	Error *string `locationName:"error" type:"string"`
4033
4034	JobId *string `locationName:"jobId" type:"string"`
4035
4036	Operation *string `locationName:"operation" type:"string"`
4037
4038	Status *string `locationName:"status" type:"string"`
4039}
4040
4041// String returns the string representation
4042func (s DeleteBackendAPIOutput) String() string {
4043	return awsutil.Prettify(s)
4044}
4045
4046// GoString returns the string representation
4047func (s DeleteBackendAPIOutput) GoString() string {
4048	return s.String()
4049}
4050
4051// SetAppId sets the AppId field's value.
4052func (s *DeleteBackendAPIOutput) SetAppId(v string) *DeleteBackendAPIOutput {
4053	s.AppId = &v
4054	return s
4055}
4056
4057// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4058func (s *DeleteBackendAPIOutput) SetBackendEnvironmentName(v string) *DeleteBackendAPIOutput {
4059	s.BackendEnvironmentName = &v
4060	return s
4061}
4062
4063// SetError sets the Error field's value.
4064func (s *DeleteBackendAPIOutput) SetError(v string) *DeleteBackendAPIOutput {
4065	s.Error = &v
4066	return s
4067}
4068
4069// SetJobId sets the JobId field's value.
4070func (s *DeleteBackendAPIOutput) SetJobId(v string) *DeleteBackendAPIOutput {
4071	s.JobId = &v
4072	return s
4073}
4074
4075// SetOperation sets the Operation field's value.
4076func (s *DeleteBackendAPIOutput) SetOperation(v string) *DeleteBackendAPIOutput {
4077	s.Operation = &v
4078	return s
4079}
4080
4081// SetStatus sets the Status field's value.
4082func (s *DeleteBackendAPIOutput) SetStatus(v string) *DeleteBackendAPIOutput {
4083	s.Status = &v
4084	return s
4085}
4086
4087type DeleteBackendAuthInput struct {
4088	_ struct{} `type:"structure"`
4089
4090	// AppId is a required field
4091	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4092
4093	// BackendEnvironmentName is a required field
4094	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
4095
4096	// ResourceName is a required field
4097	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
4098}
4099
4100// String returns the string representation
4101func (s DeleteBackendAuthInput) String() string {
4102	return awsutil.Prettify(s)
4103}
4104
4105// GoString returns the string representation
4106func (s DeleteBackendAuthInput) GoString() string {
4107	return s.String()
4108}
4109
4110// Validate inspects the fields of the type to determine if they are valid.
4111func (s *DeleteBackendAuthInput) Validate() error {
4112	invalidParams := request.ErrInvalidParams{Context: "DeleteBackendAuthInput"}
4113	if s.AppId == nil {
4114		invalidParams.Add(request.NewErrParamRequired("AppId"))
4115	}
4116	if s.AppId != nil && len(*s.AppId) < 1 {
4117		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4118	}
4119	if s.BackendEnvironmentName == nil {
4120		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
4121	}
4122	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
4123		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
4124	}
4125	if s.ResourceName == nil {
4126		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
4127	}
4128
4129	if invalidParams.Len() > 0 {
4130		return invalidParams
4131	}
4132	return nil
4133}
4134
4135// SetAppId sets the AppId field's value.
4136func (s *DeleteBackendAuthInput) SetAppId(v string) *DeleteBackendAuthInput {
4137	s.AppId = &v
4138	return s
4139}
4140
4141// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4142func (s *DeleteBackendAuthInput) SetBackendEnvironmentName(v string) *DeleteBackendAuthInput {
4143	s.BackendEnvironmentName = &v
4144	return s
4145}
4146
4147// SetResourceName sets the ResourceName field's value.
4148func (s *DeleteBackendAuthInput) SetResourceName(v string) *DeleteBackendAuthInput {
4149	s.ResourceName = &v
4150	return s
4151}
4152
4153type DeleteBackendAuthOutput struct {
4154	_ struct{} `type:"structure"`
4155
4156	AppId *string `locationName:"appId" type:"string"`
4157
4158	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
4159
4160	Error *string `locationName:"error" type:"string"`
4161
4162	JobId *string `locationName:"jobId" type:"string"`
4163
4164	Operation *string `locationName:"operation" type:"string"`
4165
4166	Status *string `locationName:"status" type:"string"`
4167}
4168
4169// String returns the string representation
4170func (s DeleteBackendAuthOutput) String() string {
4171	return awsutil.Prettify(s)
4172}
4173
4174// GoString returns the string representation
4175func (s DeleteBackendAuthOutput) GoString() string {
4176	return s.String()
4177}
4178
4179// SetAppId sets the AppId field's value.
4180func (s *DeleteBackendAuthOutput) SetAppId(v string) *DeleteBackendAuthOutput {
4181	s.AppId = &v
4182	return s
4183}
4184
4185// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4186func (s *DeleteBackendAuthOutput) SetBackendEnvironmentName(v string) *DeleteBackendAuthOutput {
4187	s.BackendEnvironmentName = &v
4188	return s
4189}
4190
4191// SetError sets the Error field's value.
4192func (s *DeleteBackendAuthOutput) SetError(v string) *DeleteBackendAuthOutput {
4193	s.Error = &v
4194	return s
4195}
4196
4197// SetJobId sets the JobId field's value.
4198func (s *DeleteBackendAuthOutput) SetJobId(v string) *DeleteBackendAuthOutput {
4199	s.JobId = &v
4200	return s
4201}
4202
4203// SetOperation sets the Operation field's value.
4204func (s *DeleteBackendAuthOutput) SetOperation(v string) *DeleteBackendAuthOutput {
4205	s.Operation = &v
4206	return s
4207}
4208
4209// SetStatus sets the Status field's value.
4210func (s *DeleteBackendAuthOutput) SetStatus(v string) *DeleteBackendAuthOutput {
4211	s.Status = &v
4212	return s
4213}
4214
4215type DeleteBackendInput struct {
4216	_ struct{} `type:"structure"`
4217
4218	// AppId is a required field
4219	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4220
4221	// BackendEnvironmentName is a required field
4222	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
4223}
4224
4225// String returns the string representation
4226func (s DeleteBackendInput) String() string {
4227	return awsutil.Prettify(s)
4228}
4229
4230// GoString returns the string representation
4231func (s DeleteBackendInput) GoString() string {
4232	return s.String()
4233}
4234
4235// Validate inspects the fields of the type to determine if they are valid.
4236func (s *DeleteBackendInput) Validate() error {
4237	invalidParams := request.ErrInvalidParams{Context: "DeleteBackendInput"}
4238	if s.AppId == nil {
4239		invalidParams.Add(request.NewErrParamRequired("AppId"))
4240	}
4241	if s.AppId != nil && len(*s.AppId) < 1 {
4242		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4243	}
4244	if s.BackendEnvironmentName == nil {
4245		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
4246	}
4247	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
4248		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
4249	}
4250
4251	if invalidParams.Len() > 0 {
4252		return invalidParams
4253	}
4254	return nil
4255}
4256
4257// SetAppId sets the AppId field's value.
4258func (s *DeleteBackendInput) SetAppId(v string) *DeleteBackendInput {
4259	s.AppId = &v
4260	return s
4261}
4262
4263// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4264func (s *DeleteBackendInput) SetBackendEnvironmentName(v string) *DeleteBackendInput {
4265	s.BackendEnvironmentName = &v
4266	return s
4267}
4268
4269type DeleteBackendOutput struct {
4270	_ struct{} `type:"structure"`
4271
4272	AppId *string `locationName:"appId" type:"string"`
4273
4274	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
4275
4276	Error *string `locationName:"error" type:"string"`
4277
4278	JobId *string `locationName:"jobId" type:"string"`
4279
4280	Operation *string `locationName:"operation" type:"string"`
4281
4282	Status *string `locationName:"status" type:"string"`
4283}
4284
4285// String returns the string representation
4286func (s DeleteBackendOutput) String() string {
4287	return awsutil.Prettify(s)
4288}
4289
4290// GoString returns the string representation
4291func (s DeleteBackendOutput) GoString() string {
4292	return s.String()
4293}
4294
4295// SetAppId sets the AppId field's value.
4296func (s *DeleteBackendOutput) SetAppId(v string) *DeleteBackendOutput {
4297	s.AppId = &v
4298	return s
4299}
4300
4301// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4302func (s *DeleteBackendOutput) SetBackendEnvironmentName(v string) *DeleteBackendOutput {
4303	s.BackendEnvironmentName = &v
4304	return s
4305}
4306
4307// SetError sets the Error field's value.
4308func (s *DeleteBackendOutput) SetError(v string) *DeleteBackendOutput {
4309	s.Error = &v
4310	return s
4311}
4312
4313// SetJobId sets the JobId field's value.
4314func (s *DeleteBackendOutput) SetJobId(v string) *DeleteBackendOutput {
4315	s.JobId = &v
4316	return s
4317}
4318
4319// SetOperation sets the Operation field's value.
4320func (s *DeleteBackendOutput) SetOperation(v string) *DeleteBackendOutput {
4321	s.Operation = &v
4322	return s
4323}
4324
4325// SetStatus sets the Status field's value.
4326func (s *DeleteBackendOutput) SetStatus(v string) *DeleteBackendOutput {
4327	s.Status = &v
4328	return s
4329}
4330
4331type DeleteTokenInput struct {
4332	_ struct{} `type:"structure"`
4333
4334	// AppId is a required field
4335	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4336
4337	// SessionId is a required field
4338	SessionId *string `location:"uri" locationName:"sessionId" type:"string" required:"true"`
4339}
4340
4341// String returns the string representation
4342func (s DeleteTokenInput) String() string {
4343	return awsutil.Prettify(s)
4344}
4345
4346// GoString returns the string representation
4347func (s DeleteTokenInput) GoString() string {
4348	return s.String()
4349}
4350
4351// Validate inspects the fields of the type to determine if they are valid.
4352func (s *DeleteTokenInput) Validate() error {
4353	invalidParams := request.ErrInvalidParams{Context: "DeleteTokenInput"}
4354	if s.AppId == nil {
4355		invalidParams.Add(request.NewErrParamRequired("AppId"))
4356	}
4357	if s.AppId != nil && len(*s.AppId) < 1 {
4358		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4359	}
4360	if s.SessionId == nil {
4361		invalidParams.Add(request.NewErrParamRequired("SessionId"))
4362	}
4363	if s.SessionId != nil && len(*s.SessionId) < 1 {
4364		invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
4365	}
4366
4367	if invalidParams.Len() > 0 {
4368		return invalidParams
4369	}
4370	return nil
4371}
4372
4373// SetAppId sets the AppId field's value.
4374func (s *DeleteTokenInput) SetAppId(v string) *DeleteTokenInput {
4375	s.AppId = &v
4376	return s
4377}
4378
4379// SetSessionId sets the SessionId field's value.
4380func (s *DeleteTokenInput) SetSessionId(v string) *DeleteTokenInput {
4381	s.SessionId = &v
4382	return s
4383}
4384
4385type DeleteTokenOutput struct {
4386	_ struct{} `type:"structure"`
4387
4388	IsSuccess *bool `locationName:"isSuccess" type:"boolean"`
4389}
4390
4391// String returns the string representation
4392func (s DeleteTokenOutput) String() string {
4393	return awsutil.Prettify(s)
4394}
4395
4396// GoString returns the string representation
4397func (s DeleteTokenOutput) GoString() string {
4398	return s.String()
4399}
4400
4401// SetIsSuccess sets the IsSuccess field's value.
4402func (s *DeleteTokenOutput) SetIsSuccess(v bool) *DeleteTokenOutput {
4403	s.IsSuccess = &v
4404	return s
4405}
4406
4407type EmailSettings struct {
4408	_ struct{} `type:"structure"`
4409
4410	// The body of the email.
4411	EmailMessage *string `locationName:"emailMessage" type:"string"`
4412
4413	// The subject of the email.
4414	EmailSubject *string `locationName:"emailSubject" type:"string"`
4415}
4416
4417// String returns the string representation
4418func (s EmailSettings) String() string {
4419	return awsutil.Prettify(s)
4420}
4421
4422// GoString returns the string representation
4423func (s EmailSettings) GoString() string {
4424	return s.String()
4425}
4426
4427// SetEmailMessage sets the EmailMessage field's value.
4428func (s *EmailSettings) SetEmailMessage(v string) *EmailSettings {
4429	s.EmailMessage = &v
4430	return s
4431}
4432
4433// SetEmailSubject sets the EmailSubject field's value.
4434func (s *EmailSettings) SetEmailSubject(v string) *EmailSettings {
4435	s.EmailSubject = &v
4436	return s
4437}
4438
4439// An error returned if there's a temporary issue with the service.
4440type GatewayTimeoutException struct {
4441	_            struct{}                  `type:"structure"`
4442	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
4443
4444	Message_ *string `locationName:"message" type:"string"`
4445}
4446
4447// String returns the string representation
4448func (s GatewayTimeoutException) String() string {
4449	return awsutil.Prettify(s)
4450}
4451
4452// GoString returns the string representation
4453func (s GatewayTimeoutException) GoString() string {
4454	return s.String()
4455}
4456
4457func newErrorGatewayTimeoutException(v protocol.ResponseMetadata) error {
4458	return &GatewayTimeoutException{
4459		RespMetadata: v,
4460	}
4461}
4462
4463// Code returns the exception type name.
4464func (s *GatewayTimeoutException) Code() string {
4465	return "GatewayTimeoutException"
4466}
4467
4468// Message returns the exception's message.
4469func (s *GatewayTimeoutException) Message() string {
4470	if s.Message_ != nil {
4471		return *s.Message_
4472	}
4473	return ""
4474}
4475
4476// OrigErr always returns nil, satisfies awserr.Error interface.
4477func (s *GatewayTimeoutException) OrigErr() error {
4478	return nil
4479}
4480
4481func (s *GatewayTimeoutException) Error() string {
4482	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
4483}
4484
4485// Status code returns the HTTP status code for the request's response error.
4486func (s *GatewayTimeoutException) StatusCode() int {
4487	return s.RespMetadata.StatusCode
4488}
4489
4490// RequestID returns the service's response RequestID for request.
4491func (s *GatewayTimeoutException) RequestID() string {
4492	return s.RespMetadata.RequestID
4493}
4494
4495type GenerateBackendAPIModelsInput struct {
4496	_ struct{} `type:"structure"`
4497
4498	// AppId is a required field
4499	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4500
4501	// BackendEnvironmentName is a required field
4502	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
4503
4504	// ResourceName is a required field
4505	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
4506}
4507
4508// String returns the string representation
4509func (s GenerateBackendAPIModelsInput) String() string {
4510	return awsutil.Prettify(s)
4511}
4512
4513// GoString returns the string representation
4514func (s GenerateBackendAPIModelsInput) GoString() string {
4515	return s.String()
4516}
4517
4518// Validate inspects the fields of the type to determine if they are valid.
4519func (s *GenerateBackendAPIModelsInput) Validate() error {
4520	invalidParams := request.ErrInvalidParams{Context: "GenerateBackendAPIModelsInput"}
4521	if s.AppId == nil {
4522		invalidParams.Add(request.NewErrParamRequired("AppId"))
4523	}
4524	if s.AppId != nil && len(*s.AppId) < 1 {
4525		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4526	}
4527	if s.BackendEnvironmentName == nil {
4528		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
4529	}
4530	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
4531		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
4532	}
4533	if s.ResourceName == nil {
4534		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
4535	}
4536
4537	if invalidParams.Len() > 0 {
4538		return invalidParams
4539	}
4540	return nil
4541}
4542
4543// SetAppId sets the AppId field's value.
4544func (s *GenerateBackendAPIModelsInput) SetAppId(v string) *GenerateBackendAPIModelsInput {
4545	s.AppId = &v
4546	return s
4547}
4548
4549// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4550func (s *GenerateBackendAPIModelsInput) SetBackendEnvironmentName(v string) *GenerateBackendAPIModelsInput {
4551	s.BackendEnvironmentName = &v
4552	return s
4553}
4554
4555// SetResourceName sets the ResourceName field's value.
4556func (s *GenerateBackendAPIModelsInput) SetResourceName(v string) *GenerateBackendAPIModelsInput {
4557	s.ResourceName = &v
4558	return s
4559}
4560
4561type GenerateBackendAPIModelsOutput struct {
4562	_ struct{} `type:"structure"`
4563
4564	AppId *string `locationName:"appId" type:"string"`
4565
4566	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
4567
4568	Error *string `locationName:"error" type:"string"`
4569
4570	JobId *string `locationName:"jobId" type:"string"`
4571
4572	Operation *string `locationName:"operation" type:"string"`
4573
4574	Status *string `locationName:"status" type:"string"`
4575}
4576
4577// String returns the string representation
4578func (s GenerateBackendAPIModelsOutput) String() string {
4579	return awsutil.Prettify(s)
4580}
4581
4582// GoString returns the string representation
4583func (s GenerateBackendAPIModelsOutput) GoString() string {
4584	return s.String()
4585}
4586
4587// SetAppId sets the AppId field's value.
4588func (s *GenerateBackendAPIModelsOutput) SetAppId(v string) *GenerateBackendAPIModelsOutput {
4589	s.AppId = &v
4590	return s
4591}
4592
4593// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4594func (s *GenerateBackendAPIModelsOutput) SetBackendEnvironmentName(v string) *GenerateBackendAPIModelsOutput {
4595	s.BackendEnvironmentName = &v
4596	return s
4597}
4598
4599// SetError sets the Error field's value.
4600func (s *GenerateBackendAPIModelsOutput) SetError(v string) *GenerateBackendAPIModelsOutput {
4601	s.Error = &v
4602	return s
4603}
4604
4605// SetJobId sets the JobId field's value.
4606func (s *GenerateBackendAPIModelsOutput) SetJobId(v string) *GenerateBackendAPIModelsOutput {
4607	s.JobId = &v
4608	return s
4609}
4610
4611// SetOperation sets the Operation field's value.
4612func (s *GenerateBackendAPIModelsOutput) SetOperation(v string) *GenerateBackendAPIModelsOutput {
4613	s.Operation = &v
4614	return s
4615}
4616
4617// SetStatus sets the Status field's value.
4618func (s *GenerateBackendAPIModelsOutput) SetStatus(v string) *GenerateBackendAPIModelsOutput {
4619	s.Status = &v
4620	return s
4621}
4622
4623type GetBackendAPIInput struct {
4624	_ struct{} `type:"structure"`
4625
4626	// AppId is a required field
4627	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4628
4629	// BackendEnvironmentName is a required field
4630	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
4631
4632	// The resource config for the data model, configured as a part of the Amplify
4633	// project.
4634	ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure"`
4635
4636	// ResourceName is a required field
4637	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
4638}
4639
4640// String returns the string representation
4641func (s GetBackendAPIInput) String() string {
4642	return awsutil.Prettify(s)
4643}
4644
4645// GoString returns the string representation
4646func (s GetBackendAPIInput) GoString() string {
4647	return s.String()
4648}
4649
4650// Validate inspects the fields of the type to determine if they are valid.
4651func (s *GetBackendAPIInput) Validate() error {
4652	invalidParams := request.ErrInvalidParams{Context: "GetBackendAPIInput"}
4653	if s.AppId == nil {
4654		invalidParams.Add(request.NewErrParamRequired("AppId"))
4655	}
4656	if s.AppId != nil && len(*s.AppId) < 1 {
4657		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4658	}
4659	if s.BackendEnvironmentName == nil {
4660		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
4661	}
4662	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
4663		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
4664	}
4665	if s.ResourceName == nil {
4666		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
4667	}
4668
4669	if invalidParams.Len() > 0 {
4670		return invalidParams
4671	}
4672	return nil
4673}
4674
4675// SetAppId sets the AppId field's value.
4676func (s *GetBackendAPIInput) SetAppId(v string) *GetBackendAPIInput {
4677	s.AppId = &v
4678	return s
4679}
4680
4681// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4682func (s *GetBackendAPIInput) SetBackendEnvironmentName(v string) *GetBackendAPIInput {
4683	s.BackendEnvironmentName = &v
4684	return s
4685}
4686
4687// SetResourceConfig sets the ResourceConfig field's value.
4688func (s *GetBackendAPIInput) SetResourceConfig(v *BackendAPIResourceConfig) *GetBackendAPIInput {
4689	s.ResourceConfig = v
4690	return s
4691}
4692
4693// SetResourceName sets the ResourceName field's value.
4694func (s *GetBackendAPIInput) SetResourceName(v string) *GetBackendAPIInput {
4695	s.ResourceName = &v
4696	return s
4697}
4698
4699type GetBackendAPIModelsInput struct {
4700	_ struct{} `type:"structure"`
4701
4702	// AppId is a required field
4703	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4704
4705	// BackendEnvironmentName is a required field
4706	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
4707
4708	// ResourceName is a required field
4709	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
4710}
4711
4712// String returns the string representation
4713func (s GetBackendAPIModelsInput) String() string {
4714	return awsutil.Prettify(s)
4715}
4716
4717// GoString returns the string representation
4718func (s GetBackendAPIModelsInput) GoString() string {
4719	return s.String()
4720}
4721
4722// Validate inspects the fields of the type to determine if they are valid.
4723func (s *GetBackendAPIModelsInput) Validate() error {
4724	invalidParams := request.ErrInvalidParams{Context: "GetBackendAPIModelsInput"}
4725	if s.AppId == nil {
4726		invalidParams.Add(request.NewErrParamRequired("AppId"))
4727	}
4728	if s.AppId != nil && len(*s.AppId) < 1 {
4729		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4730	}
4731	if s.BackendEnvironmentName == nil {
4732		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
4733	}
4734	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
4735		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
4736	}
4737	if s.ResourceName == nil {
4738		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
4739	}
4740
4741	if invalidParams.Len() > 0 {
4742		return invalidParams
4743	}
4744	return nil
4745}
4746
4747// SetAppId sets the AppId field's value.
4748func (s *GetBackendAPIModelsInput) SetAppId(v string) *GetBackendAPIModelsInput {
4749	s.AppId = &v
4750	return s
4751}
4752
4753// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4754func (s *GetBackendAPIModelsInput) SetBackendEnvironmentName(v string) *GetBackendAPIModelsInput {
4755	s.BackendEnvironmentName = &v
4756	return s
4757}
4758
4759// SetResourceName sets the ResourceName field's value.
4760func (s *GetBackendAPIModelsInput) SetResourceName(v string) *GetBackendAPIModelsInput {
4761	s.ResourceName = &v
4762	return s
4763}
4764
4765type GetBackendAPIModelsOutput struct {
4766	_ struct{} `type:"structure"`
4767
4768	Models *string `locationName:"models" type:"string"`
4769
4770	Status *string `locationName:"status" type:"string" enum:"Status"`
4771}
4772
4773// String returns the string representation
4774func (s GetBackendAPIModelsOutput) String() string {
4775	return awsutil.Prettify(s)
4776}
4777
4778// GoString returns the string representation
4779func (s GetBackendAPIModelsOutput) GoString() string {
4780	return s.String()
4781}
4782
4783// SetModels sets the Models field's value.
4784func (s *GetBackendAPIModelsOutput) SetModels(v string) *GetBackendAPIModelsOutput {
4785	s.Models = &v
4786	return s
4787}
4788
4789// SetStatus sets the Status field's value.
4790func (s *GetBackendAPIModelsOutput) SetStatus(v string) *GetBackendAPIModelsOutput {
4791	s.Status = &v
4792	return s
4793}
4794
4795type GetBackendAPIOutput struct {
4796	_ struct{} `type:"structure"`
4797
4798	AppId *string `locationName:"appId" type:"string"`
4799
4800	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
4801
4802	Error *string `locationName:"error" type:"string"`
4803
4804	// The resource config for the data model, configured as a part of the Amplify
4805	// project.
4806	ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure"`
4807
4808	ResourceName *string `locationName:"resourceName" type:"string"`
4809}
4810
4811// String returns the string representation
4812func (s GetBackendAPIOutput) String() string {
4813	return awsutil.Prettify(s)
4814}
4815
4816// GoString returns the string representation
4817func (s GetBackendAPIOutput) GoString() string {
4818	return s.String()
4819}
4820
4821// SetAppId sets the AppId field's value.
4822func (s *GetBackendAPIOutput) SetAppId(v string) *GetBackendAPIOutput {
4823	s.AppId = &v
4824	return s
4825}
4826
4827// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4828func (s *GetBackendAPIOutput) SetBackendEnvironmentName(v string) *GetBackendAPIOutput {
4829	s.BackendEnvironmentName = &v
4830	return s
4831}
4832
4833// SetError sets the Error field's value.
4834func (s *GetBackendAPIOutput) SetError(v string) *GetBackendAPIOutput {
4835	s.Error = &v
4836	return s
4837}
4838
4839// SetResourceConfig sets the ResourceConfig field's value.
4840func (s *GetBackendAPIOutput) SetResourceConfig(v *BackendAPIResourceConfig) *GetBackendAPIOutput {
4841	s.ResourceConfig = v
4842	return s
4843}
4844
4845// SetResourceName sets the ResourceName field's value.
4846func (s *GetBackendAPIOutput) SetResourceName(v string) *GetBackendAPIOutput {
4847	s.ResourceName = &v
4848	return s
4849}
4850
4851type GetBackendAuthInput struct {
4852	_ struct{} `type:"structure"`
4853
4854	// AppId is a required field
4855	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4856
4857	// BackendEnvironmentName is a required field
4858	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
4859
4860	// ResourceName is a required field
4861	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
4862}
4863
4864// String returns the string representation
4865func (s GetBackendAuthInput) String() string {
4866	return awsutil.Prettify(s)
4867}
4868
4869// GoString returns the string representation
4870func (s GetBackendAuthInput) GoString() string {
4871	return s.String()
4872}
4873
4874// Validate inspects the fields of the type to determine if they are valid.
4875func (s *GetBackendAuthInput) Validate() error {
4876	invalidParams := request.ErrInvalidParams{Context: "GetBackendAuthInput"}
4877	if s.AppId == nil {
4878		invalidParams.Add(request.NewErrParamRequired("AppId"))
4879	}
4880	if s.AppId != nil && len(*s.AppId) < 1 {
4881		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4882	}
4883	if s.BackendEnvironmentName == nil {
4884		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
4885	}
4886	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
4887		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
4888	}
4889	if s.ResourceName == nil {
4890		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
4891	}
4892
4893	if invalidParams.Len() > 0 {
4894		return invalidParams
4895	}
4896	return nil
4897}
4898
4899// SetAppId sets the AppId field's value.
4900func (s *GetBackendAuthInput) SetAppId(v string) *GetBackendAuthInput {
4901	s.AppId = &v
4902	return s
4903}
4904
4905// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4906func (s *GetBackendAuthInput) SetBackendEnvironmentName(v string) *GetBackendAuthInput {
4907	s.BackendEnvironmentName = &v
4908	return s
4909}
4910
4911// SetResourceName sets the ResourceName field's value.
4912func (s *GetBackendAuthInput) SetResourceName(v string) *GetBackendAuthInput {
4913	s.ResourceName = &v
4914	return s
4915}
4916
4917type GetBackendAuthOutput struct {
4918	_ struct{} `type:"structure"`
4919
4920	AppId *string `locationName:"appId" type:"string"`
4921
4922	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
4923
4924	Error *string `locationName:"error" type:"string"`
4925
4926	// Defines the resource configuration when creating an auth resource in your
4927	// Amplify project.
4928	ResourceConfig *CreateBackendAuthResourceConfig `locationName:"resourceConfig" type:"structure"`
4929
4930	ResourceName *string `locationName:"resourceName" type:"string"`
4931}
4932
4933// String returns the string representation
4934func (s GetBackendAuthOutput) String() string {
4935	return awsutil.Prettify(s)
4936}
4937
4938// GoString returns the string representation
4939func (s GetBackendAuthOutput) GoString() string {
4940	return s.String()
4941}
4942
4943// SetAppId sets the AppId field's value.
4944func (s *GetBackendAuthOutput) SetAppId(v string) *GetBackendAuthOutput {
4945	s.AppId = &v
4946	return s
4947}
4948
4949// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4950func (s *GetBackendAuthOutput) SetBackendEnvironmentName(v string) *GetBackendAuthOutput {
4951	s.BackendEnvironmentName = &v
4952	return s
4953}
4954
4955// SetError sets the Error field's value.
4956func (s *GetBackendAuthOutput) SetError(v string) *GetBackendAuthOutput {
4957	s.Error = &v
4958	return s
4959}
4960
4961// SetResourceConfig sets the ResourceConfig field's value.
4962func (s *GetBackendAuthOutput) SetResourceConfig(v *CreateBackendAuthResourceConfig) *GetBackendAuthOutput {
4963	s.ResourceConfig = v
4964	return s
4965}
4966
4967// SetResourceName sets the ResourceName field's value.
4968func (s *GetBackendAuthOutput) SetResourceName(v string) *GetBackendAuthOutput {
4969	s.ResourceName = &v
4970	return s
4971}
4972
4973type GetBackendInput struct {
4974	_ struct{} `type:"structure"`
4975
4976	// AppId is a required field
4977	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4978
4979	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
4980}
4981
4982// String returns the string representation
4983func (s GetBackendInput) String() string {
4984	return awsutil.Prettify(s)
4985}
4986
4987// GoString returns the string representation
4988func (s GetBackendInput) GoString() string {
4989	return s.String()
4990}
4991
4992// Validate inspects the fields of the type to determine if they are valid.
4993func (s *GetBackendInput) Validate() error {
4994	invalidParams := request.ErrInvalidParams{Context: "GetBackendInput"}
4995	if s.AppId == nil {
4996		invalidParams.Add(request.NewErrParamRequired("AppId"))
4997	}
4998	if s.AppId != nil && len(*s.AppId) < 1 {
4999		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5000	}
5001
5002	if invalidParams.Len() > 0 {
5003		return invalidParams
5004	}
5005	return nil
5006}
5007
5008// SetAppId sets the AppId field's value.
5009func (s *GetBackendInput) SetAppId(v string) *GetBackendInput {
5010	s.AppId = &v
5011	return s
5012}
5013
5014// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5015func (s *GetBackendInput) SetBackendEnvironmentName(v string) *GetBackendInput {
5016	s.BackendEnvironmentName = &v
5017	return s
5018}
5019
5020type GetBackendJobInput struct {
5021	_ struct{} `type:"structure"`
5022
5023	// AppId is a required field
5024	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5025
5026	// BackendEnvironmentName is a required field
5027	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
5028
5029	// JobId is a required field
5030	JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
5031}
5032
5033// String returns the string representation
5034func (s GetBackendJobInput) String() string {
5035	return awsutil.Prettify(s)
5036}
5037
5038// GoString returns the string representation
5039func (s GetBackendJobInput) GoString() string {
5040	return s.String()
5041}
5042
5043// Validate inspects the fields of the type to determine if they are valid.
5044func (s *GetBackendJobInput) Validate() error {
5045	invalidParams := request.ErrInvalidParams{Context: "GetBackendJobInput"}
5046	if s.AppId == nil {
5047		invalidParams.Add(request.NewErrParamRequired("AppId"))
5048	}
5049	if s.AppId != nil && len(*s.AppId) < 1 {
5050		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5051	}
5052	if s.BackendEnvironmentName == nil {
5053		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
5054	}
5055	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
5056		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
5057	}
5058	if s.JobId == nil {
5059		invalidParams.Add(request.NewErrParamRequired("JobId"))
5060	}
5061	if s.JobId != nil && len(*s.JobId) < 1 {
5062		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
5063	}
5064
5065	if invalidParams.Len() > 0 {
5066		return invalidParams
5067	}
5068	return nil
5069}
5070
5071// SetAppId sets the AppId field's value.
5072func (s *GetBackendJobInput) SetAppId(v string) *GetBackendJobInput {
5073	s.AppId = &v
5074	return s
5075}
5076
5077// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5078func (s *GetBackendJobInput) SetBackendEnvironmentName(v string) *GetBackendJobInput {
5079	s.BackendEnvironmentName = &v
5080	return s
5081}
5082
5083// SetJobId sets the JobId field's value.
5084func (s *GetBackendJobInput) SetJobId(v string) *GetBackendJobInput {
5085	s.JobId = &v
5086	return s
5087}
5088
5089type GetBackendJobOutput struct {
5090	_ struct{} `type:"structure"`
5091
5092	AppId *string `locationName:"appId" type:"string"`
5093
5094	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
5095
5096	CreateTime *string `locationName:"createTime" type:"string"`
5097
5098	Error *string `locationName:"error" type:"string"`
5099
5100	JobId *string `locationName:"jobId" type:"string"`
5101
5102	Operation *string `locationName:"operation" type:"string"`
5103
5104	Status *string `locationName:"status" type:"string"`
5105
5106	UpdateTime *string `locationName:"updateTime" type:"string"`
5107}
5108
5109// String returns the string representation
5110func (s GetBackendJobOutput) String() string {
5111	return awsutil.Prettify(s)
5112}
5113
5114// GoString returns the string representation
5115func (s GetBackendJobOutput) GoString() string {
5116	return s.String()
5117}
5118
5119// SetAppId sets the AppId field's value.
5120func (s *GetBackendJobOutput) SetAppId(v string) *GetBackendJobOutput {
5121	s.AppId = &v
5122	return s
5123}
5124
5125// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5126func (s *GetBackendJobOutput) SetBackendEnvironmentName(v string) *GetBackendJobOutput {
5127	s.BackendEnvironmentName = &v
5128	return s
5129}
5130
5131// SetCreateTime sets the CreateTime field's value.
5132func (s *GetBackendJobOutput) SetCreateTime(v string) *GetBackendJobOutput {
5133	s.CreateTime = &v
5134	return s
5135}
5136
5137// SetError sets the Error field's value.
5138func (s *GetBackendJobOutput) SetError(v string) *GetBackendJobOutput {
5139	s.Error = &v
5140	return s
5141}
5142
5143// SetJobId sets the JobId field's value.
5144func (s *GetBackendJobOutput) SetJobId(v string) *GetBackendJobOutput {
5145	s.JobId = &v
5146	return s
5147}
5148
5149// SetOperation sets the Operation field's value.
5150func (s *GetBackendJobOutput) SetOperation(v string) *GetBackendJobOutput {
5151	s.Operation = &v
5152	return s
5153}
5154
5155// SetStatus sets the Status field's value.
5156func (s *GetBackendJobOutput) SetStatus(v string) *GetBackendJobOutput {
5157	s.Status = &v
5158	return s
5159}
5160
5161// SetUpdateTime sets the UpdateTime field's value.
5162func (s *GetBackendJobOutput) SetUpdateTime(v string) *GetBackendJobOutput {
5163	s.UpdateTime = &v
5164	return s
5165}
5166
5167type GetBackendOutput struct {
5168	_ struct{} `type:"structure"`
5169
5170	AmplifyMetaConfig *string `locationName:"amplifyMetaConfig" type:"string"`
5171
5172	AppId *string `locationName:"appId" type:"string"`
5173
5174	AppName *string `locationName:"appName" type:"string"`
5175
5176	BackendEnvironmentList []*string `locationName:"backendEnvironmentList" type:"list"`
5177
5178	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
5179
5180	Error *string `locationName:"error" type:"string"`
5181}
5182
5183// String returns the string representation
5184func (s GetBackendOutput) String() string {
5185	return awsutil.Prettify(s)
5186}
5187
5188// GoString returns the string representation
5189func (s GetBackendOutput) GoString() string {
5190	return s.String()
5191}
5192
5193// SetAmplifyMetaConfig sets the AmplifyMetaConfig field's value.
5194func (s *GetBackendOutput) SetAmplifyMetaConfig(v string) *GetBackendOutput {
5195	s.AmplifyMetaConfig = &v
5196	return s
5197}
5198
5199// SetAppId sets the AppId field's value.
5200func (s *GetBackendOutput) SetAppId(v string) *GetBackendOutput {
5201	s.AppId = &v
5202	return s
5203}
5204
5205// SetAppName sets the AppName field's value.
5206func (s *GetBackendOutput) SetAppName(v string) *GetBackendOutput {
5207	s.AppName = &v
5208	return s
5209}
5210
5211// SetBackendEnvironmentList sets the BackendEnvironmentList field's value.
5212func (s *GetBackendOutput) SetBackendEnvironmentList(v []*string) *GetBackendOutput {
5213	s.BackendEnvironmentList = v
5214	return s
5215}
5216
5217// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5218func (s *GetBackendOutput) SetBackendEnvironmentName(v string) *GetBackendOutput {
5219	s.BackendEnvironmentName = &v
5220	return s
5221}
5222
5223// SetError sets the Error field's value.
5224func (s *GetBackendOutput) SetError(v string) *GetBackendOutput {
5225	s.Error = &v
5226	return s
5227}
5228
5229type GetTokenInput struct {
5230	_ struct{} `type:"structure"`
5231
5232	// AppId is a required field
5233	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5234
5235	// SessionId is a required field
5236	SessionId *string `location:"uri" locationName:"sessionId" type:"string" required:"true"`
5237}
5238
5239// String returns the string representation
5240func (s GetTokenInput) String() string {
5241	return awsutil.Prettify(s)
5242}
5243
5244// GoString returns the string representation
5245func (s GetTokenInput) GoString() string {
5246	return s.String()
5247}
5248
5249// Validate inspects the fields of the type to determine if they are valid.
5250func (s *GetTokenInput) Validate() error {
5251	invalidParams := request.ErrInvalidParams{Context: "GetTokenInput"}
5252	if s.AppId == nil {
5253		invalidParams.Add(request.NewErrParamRequired("AppId"))
5254	}
5255	if s.AppId != nil && len(*s.AppId) < 1 {
5256		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5257	}
5258	if s.SessionId == nil {
5259		invalidParams.Add(request.NewErrParamRequired("SessionId"))
5260	}
5261	if s.SessionId != nil && len(*s.SessionId) < 1 {
5262		invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
5263	}
5264
5265	if invalidParams.Len() > 0 {
5266		return invalidParams
5267	}
5268	return nil
5269}
5270
5271// SetAppId sets the AppId field's value.
5272func (s *GetTokenInput) SetAppId(v string) *GetTokenInput {
5273	s.AppId = &v
5274	return s
5275}
5276
5277// SetSessionId sets the SessionId field's value.
5278func (s *GetTokenInput) SetSessionId(v string) *GetTokenInput {
5279	s.SessionId = &v
5280	return s
5281}
5282
5283type GetTokenOutput struct {
5284	_ struct{} `type:"structure"`
5285
5286	AppId *string `locationName:"appId" type:"string"`
5287
5288	ChallengeCode *string `locationName:"challengeCode" type:"string"`
5289
5290	SessionId *string `locationName:"sessionId" type:"string"`
5291
5292	Ttl *string `locationName:"ttl" type:"string"`
5293}
5294
5295// String returns the string representation
5296func (s GetTokenOutput) String() string {
5297	return awsutil.Prettify(s)
5298}
5299
5300// GoString returns the string representation
5301func (s GetTokenOutput) GoString() string {
5302	return s.String()
5303}
5304
5305// SetAppId sets the AppId field's value.
5306func (s *GetTokenOutput) SetAppId(v string) *GetTokenOutput {
5307	s.AppId = &v
5308	return s
5309}
5310
5311// SetChallengeCode sets the ChallengeCode field's value.
5312func (s *GetTokenOutput) SetChallengeCode(v string) *GetTokenOutput {
5313	s.ChallengeCode = &v
5314	return s
5315}
5316
5317// SetSessionId sets the SessionId field's value.
5318func (s *GetTokenOutput) SetSessionId(v string) *GetTokenOutput {
5319	s.SessionId = &v
5320	return s
5321}
5322
5323// SetTtl sets the Ttl field's value.
5324func (s *GetTokenOutput) SetTtl(v string) *GetTokenOutput {
5325	s.Ttl = &v
5326	return s
5327}
5328
5329type ImportBackendAuthInput struct {
5330	_ struct{} `type:"structure"`
5331
5332	// AppId is a required field
5333	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5334
5335	// BackendEnvironmentName is a required field
5336	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
5337
5338	IdentityPoolId *string `locationName:"identityPoolId" type:"string"`
5339
5340	// NativeClientId is a required field
5341	NativeClientId *string `locationName:"nativeClientId" type:"string" required:"true"`
5342
5343	// UserPoolId is a required field
5344	UserPoolId *string `locationName:"userPoolId" type:"string" required:"true"`
5345
5346	// WebClientId is a required field
5347	WebClientId *string `locationName:"webClientId" type:"string" required:"true"`
5348}
5349
5350// String returns the string representation
5351func (s ImportBackendAuthInput) String() string {
5352	return awsutil.Prettify(s)
5353}
5354
5355// GoString returns the string representation
5356func (s ImportBackendAuthInput) GoString() string {
5357	return s.String()
5358}
5359
5360// Validate inspects the fields of the type to determine if they are valid.
5361func (s *ImportBackendAuthInput) Validate() error {
5362	invalidParams := request.ErrInvalidParams{Context: "ImportBackendAuthInput"}
5363	if s.AppId == nil {
5364		invalidParams.Add(request.NewErrParamRequired("AppId"))
5365	}
5366	if s.AppId != nil && len(*s.AppId) < 1 {
5367		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5368	}
5369	if s.BackendEnvironmentName == nil {
5370		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
5371	}
5372	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
5373		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
5374	}
5375	if s.NativeClientId == nil {
5376		invalidParams.Add(request.NewErrParamRequired("NativeClientId"))
5377	}
5378	if s.UserPoolId == nil {
5379		invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
5380	}
5381	if s.WebClientId == nil {
5382		invalidParams.Add(request.NewErrParamRequired("WebClientId"))
5383	}
5384
5385	if invalidParams.Len() > 0 {
5386		return invalidParams
5387	}
5388	return nil
5389}
5390
5391// SetAppId sets the AppId field's value.
5392func (s *ImportBackendAuthInput) SetAppId(v string) *ImportBackendAuthInput {
5393	s.AppId = &v
5394	return s
5395}
5396
5397// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5398func (s *ImportBackendAuthInput) SetBackendEnvironmentName(v string) *ImportBackendAuthInput {
5399	s.BackendEnvironmentName = &v
5400	return s
5401}
5402
5403// SetIdentityPoolId sets the IdentityPoolId field's value.
5404func (s *ImportBackendAuthInput) SetIdentityPoolId(v string) *ImportBackendAuthInput {
5405	s.IdentityPoolId = &v
5406	return s
5407}
5408
5409// SetNativeClientId sets the NativeClientId field's value.
5410func (s *ImportBackendAuthInput) SetNativeClientId(v string) *ImportBackendAuthInput {
5411	s.NativeClientId = &v
5412	return s
5413}
5414
5415// SetUserPoolId sets the UserPoolId field's value.
5416func (s *ImportBackendAuthInput) SetUserPoolId(v string) *ImportBackendAuthInput {
5417	s.UserPoolId = &v
5418	return s
5419}
5420
5421// SetWebClientId sets the WebClientId field's value.
5422func (s *ImportBackendAuthInput) SetWebClientId(v string) *ImportBackendAuthInput {
5423	s.WebClientId = &v
5424	return s
5425}
5426
5427type ImportBackendAuthOutput struct {
5428	_ struct{} `type:"structure"`
5429
5430	AppId *string `locationName:"appId" type:"string"`
5431
5432	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
5433
5434	Error *string `locationName:"error" type:"string"`
5435
5436	JobId *string `locationName:"jobId" type:"string"`
5437
5438	Operation *string `locationName:"operation" type:"string"`
5439
5440	Status *string `locationName:"status" type:"string"`
5441}
5442
5443// String returns the string representation
5444func (s ImportBackendAuthOutput) String() string {
5445	return awsutil.Prettify(s)
5446}
5447
5448// GoString returns the string representation
5449func (s ImportBackendAuthOutput) GoString() string {
5450	return s.String()
5451}
5452
5453// SetAppId sets the AppId field's value.
5454func (s *ImportBackendAuthOutput) SetAppId(v string) *ImportBackendAuthOutput {
5455	s.AppId = &v
5456	return s
5457}
5458
5459// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5460func (s *ImportBackendAuthOutput) SetBackendEnvironmentName(v string) *ImportBackendAuthOutput {
5461	s.BackendEnvironmentName = &v
5462	return s
5463}
5464
5465// SetError sets the Error field's value.
5466func (s *ImportBackendAuthOutput) SetError(v string) *ImportBackendAuthOutput {
5467	s.Error = &v
5468	return s
5469}
5470
5471// SetJobId sets the JobId field's value.
5472func (s *ImportBackendAuthOutput) SetJobId(v string) *ImportBackendAuthOutput {
5473	s.JobId = &v
5474	return s
5475}
5476
5477// SetOperation sets the Operation field's value.
5478func (s *ImportBackendAuthOutput) SetOperation(v string) *ImportBackendAuthOutput {
5479	s.Operation = &v
5480	return s
5481}
5482
5483// SetStatus sets the Status field's value.
5484func (s *ImportBackendAuthOutput) SetStatus(v string) *ImportBackendAuthOutput {
5485	s.Status = &v
5486	return s
5487}
5488
5489type ListBackendJobsInput struct {
5490	_ struct{} `type:"structure"`
5491
5492	// AppId is a required field
5493	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5494
5495	// BackendEnvironmentName is a required field
5496	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
5497
5498	JobId *string `locationName:"jobId" type:"string"`
5499
5500	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
5501
5502	NextToken *string `locationName:"nextToken" type:"string"`
5503
5504	Operation *string `locationName:"operation" type:"string"`
5505
5506	Status *string `locationName:"status" type:"string"`
5507}
5508
5509// String returns the string representation
5510func (s ListBackendJobsInput) String() string {
5511	return awsutil.Prettify(s)
5512}
5513
5514// GoString returns the string representation
5515func (s ListBackendJobsInput) GoString() string {
5516	return s.String()
5517}
5518
5519// Validate inspects the fields of the type to determine if they are valid.
5520func (s *ListBackendJobsInput) Validate() error {
5521	invalidParams := request.ErrInvalidParams{Context: "ListBackendJobsInput"}
5522	if s.AppId == nil {
5523		invalidParams.Add(request.NewErrParamRequired("AppId"))
5524	}
5525	if s.AppId != nil && len(*s.AppId) < 1 {
5526		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5527	}
5528	if s.BackendEnvironmentName == nil {
5529		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
5530	}
5531	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
5532		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
5533	}
5534	if s.MaxResults != nil && *s.MaxResults < 1 {
5535		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
5536	}
5537
5538	if invalidParams.Len() > 0 {
5539		return invalidParams
5540	}
5541	return nil
5542}
5543
5544// SetAppId sets the AppId field's value.
5545func (s *ListBackendJobsInput) SetAppId(v string) *ListBackendJobsInput {
5546	s.AppId = &v
5547	return s
5548}
5549
5550// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5551func (s *ListBackendJobsInput) SetBackendEnvironmentName(v string) *ListBackendJobsInput {
5552	s.BackendEnvironmentName = &v
5553	return s
5554}
5555
5556// SetJobId sets the JobId field's value.
5557func (s *ListBackendJobsInput) SetJobId(v string) *ListBackendJobsInput {
5558	s.JobId = &v
5559	return s
5560}
5561
5562// SetMaxResults sets the MaxResults field's value.
5563func (s *ListBackendJobsInput) SetMaxResults(v int64) *ListBackendJobsInput {
5564	s.MaxResults = &v
5565	return s
5566}
5567
5568// SetNextToken sets the NextToken field's value.
5569func (s *ListBackendJobsInput) SetNextToken(v string) *ListBackendJobsInput {
5570	s.NextToken = &v
5571	return s
5572}
5573
5574// SetOperation sets the Operation field's value.
5575func (s *ListBackendJobsInput) SetOperation(v string) *ListBackendJobsInput {
5576	s.Operation = &v
5577	return s
5578}
5579
5580// SetStatus sets the Status field's value.
5581func (s *ListBackendJobsInput) SetStatus(v string) *ListBackendJobsInput {
5582	s.Status = &v
5583	return s
5584}
5585
5586type ListBackendJobsOutput struct {
5587	_ struct{} `type:"structure"`
5588
5589	Jobs []*BackendJobRespObj `locationName:"jobs" type:"list"`
5590
5591	NextToken *string `locationName:"nextToken" type:"string"`
5592}
5593
5594// String returns the string representation
5595func (s ListBackendJobsOutput) String() string {
5596	return awsutil.Prettify(s)
5597}
5598
5599// GoString returns the string representation
5600func (s ListBackendJobsOutput) GoString() string {
5601	return s.String()
5602}
5603
5604// SetJobs sets the Jobs field's value.
5605func (s *ListBackendJobsOutput) SetJobs(v []*BackendJobRespObj) *ListBackendJobsOutput {
5606	s.Jobs = v
5607	return s
5608}
5609
5610// SetNextToken sets the NextToken field's value.
5611func (s *ListBackendJobsOutput) SetNextToken(v string) *ListBackendJobsOutput {
5612	s.NextToken = &v
5613	return s
5614}
5615
5616// The request object for this operation.
5617type LoginAuthConfigReqObj struct {
5618	_ struct{} `type:"structure"`
5619
5620	// The Amazon Cognito identity pool ID used for the Amplify Admin UI login authorization.
5621	AwsCognitoIdentityPoolId *string `locationName:"aws_cognito_identity_pool_id" type:"string"`
5622
5623	// The AWS Region for the Amplify Admin UI login.
5624	AwsCognitoRegion *string `locationName:"aws_cognito_region" type:"string"`
5625
5626	// The Amazon Cognito user pool ID used for Amplify Admin UI login authentication.
5627	AwsUserPoolsId *string `locationName:"aws_user_pools_id" type:"string"`
5628
5629	// The web client ID for the Amazon Cognito user pools.
5630	AwsUserPoolsWebClientId *string `locationName:"aws_user_pools_web_client_id" type:"string"`
5631}
5632
5633// String returns the string representation
5634func (s LoginAuthConfigReqObj) String() string {
5635	return awsutil.Prettify(s)
5636}
5637
5638// GoString returns the string representation
5639func (s LoginAuthConfigReqObj) GoString() string {
5640	return s.String()
5641}
5642
5643// SetAwsCognitoIdentityPoolId sets the AwsCognitoIdentityPoolId field's value.
5644func (s *LoginAuthConfigReqObj) SetAwsCognitoIdentityPoolId(v string) *LoginAuthConfigReqObj {
5645	s.AwsCognitoIdentityPoolId = &v
5646	return s
5647}
5648
5649// SetAwsCognitoRegion sets the AwsCognitoRegion field's value.
5650func (s *LoginAuthConfigReqObj) SetAwsCognitoRegion(v string) *LoginAuthConfigReqObj {
5651	s.AwsCognitoRegion = &v
5652	return s
5653}
5654
5655// SetAwsUserPoolsId sets the AwsUserPoolsId field's value.
5656func (s *LoginAuthConfigReqObj) SetAwsUserPoolsId(v string) *LoginAuthConfigReqObj {
5657	s.AwsUserPoolsId = &v
5658	return s
5659}
5660
5661// SetAwsUserPoolsWebClientId sets the AwsUserPoolsWebClientId field's value.
5662func (s *LoginAuthConfigReqObj) SetAwsUserPoolsWebClientId(v string) *LoginAuthConfigReqObj {
5663	s.AwsUserPoolsWebClientId = &v
5664	return s
5665}
5666
5667// An error returned when a specific resource type is not found.
5668type NotFoundException struct {
5669	_            struct{}                  `type:"structure"`
5670	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
5671
5672	// An error message to inform that the request has failed.
5673	Message_ *string `locationName:"message" type:"string"`
5674
5675	// The type of resource that is not found.
5676	ResourceType *string `locationName:"resourceType" type:"string"`
5677}
5678
5679// String returns the string representation
5680func (s NotFoundException) String() string {
5681	return awsutil.Prettify(s)
5682}
5683
5684// GoString returns the string representation
5685func (s NotFoundException) GoString() string {
5686	return s.String()
5687}
5688
5689func newErrorNotFoundException(v protocol.ResponseMetadata) error {
5690	return &NotFoundException{
5691		RespMetadata: v,
5692	}
5693}
5694
5695// Code returns the exception type name.
5696func (s *NotFoundException) Code() string {
5697	return "NotFoundException"
5698}
5699
5700// Message returns the exception's message.
5701func (s *NotFoundException) Message() string {
5702	if s.Message_ != nil {
5703		return *s.Message_
5704	}
5705	return ""
5706}
5707
5708// OrigErr always returns nil, satisfies awserr.Error interface.
5709func (s *NotFoundException) OrigErr() error {
5710	return nil
5711}
5712
5713func (s *NotFoundException) Error() string {
5714	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
5715}
5716
5717// Status code returns the HTTP status code for the request's response error.
5718func (s *NotFoundException) StatusCode() int {
5719	return s.RespMetadata.StatusCode
5720}
5721
5722// RequestID returns the service's response RequestID for request.
5723func (s *NotFoundException) RequestID() string {
5724	return s.RespMetadata.RequestID
5725}
5726
5727type RemoveAllBackendsInput struct {
5728	_ struct{} `type:"structure"`
5729
5730	// AppId is a required field
5731	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5732
5733	CleanAmplifyApp *bool `locationName:"cleanAmplifyApp" type:"boolean"`
5734}
5735
5736// String returns the string representation
5737func (s RemoveAllBackendsInput) String() string {
5738	return awsutil.Prettify(s)
5739}
5740
5741// GoString returns the string representation
5742func (s RemoveAllBackendsInput) GoString() string {
5743	return s.String()
5744}
5745
5746// Validate inspects the fields of the type to determine if they are valid.
5747func (s *RemoveAllBackendsInput) Validate() error {
5748	invalidParams := request.ErrInvalidParams{Context: "RemoveAllBackendsInput"}
5749	if s.AppId == nil {
5750		invalidParams.Add(request.NewErrParamRequired("AppId"))
5751	}
5752	if s.AppId != nil && len(*s.AppId) < 1 {
5753		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5754	}
5755
5756	if invalidParams.Len() > 0 {
5757		return invalidParams
5758	}
5759	return nil
5760}
5761
5762// SetAppId sets the AppId field's value.
5763func (s *RemoveAllBackendsInput) SetAppId(v string) *RemoveAllBackendsInput {
5764	s.AppId = &v
5765	return s
5766}
5767
5768// SetCleanAmplifyApp sets the CleanAmplifyApp field's value.
5769func (s *RemoveAllBackendsInput) SetCleanAmplifyApp(v bool) *RemoveAllBackendsInput {
5770	s.CleanAmplifyApp = &v
5771	return s
5772}
5773
5774type RemoveAllBackendsOutput struct {
5775	_ struct{} `type:"structure"`
5776
5777	AppId *string `locationName:"appId" type:"string"`
5778
5779	Error *string `locationName:"error" type:"string"`
5780
5781	JobId *string `locationName:"jobId" type:"string"`
5782
5783	Operation *string `locationName:"operation" type:"string"`
5784
5785	Status *string `locationName:"status" type:"string"`
5786}
5787
5788// String returns the string representation
5789func (s RemoveAllBackendsOutput) String() string {
5790	return awsutil.Prettify(s)
5791}
5792
5793// GoString returns the string representation
5794func (s RemoveAllBackendsOutput) GoString() string {
5795	return s.String()
5796}
5797
5798// SetAppId sets the AppId field's value.
5799func (s *RemoveAllBackendsOutput) SetAppId(v string) *RemoveAllBackendsOutput {
5800	s.AppId = &v
5801	return s
5802}
5803
5804// SetError sets the Error field's value.
5805func (s *RemoveAllBackendsOutput) SetError(v string) *RemoveAllBackendsOutput {
5806	s.Error = &v
5807	return s
5808}
5809
5810// SetJobId sets the JobId field's value.
5811func (s *RemoveAllBackendsOutput) SetJobId(v string) *RemoveAllBackendsOutput {
5812	s.JobId = &v
5813	return s
5814}
5815
5816// SetOperation sets the Operation field's value.
5817func (s *RemoveAllBackendsOutput) SetOperation(v string) *RemoveAllBackendsOutput {
5818	s.Operation = &v
5819	return s
5820}
5821
5822// SetStatus sets the Status field's value.
5823func (s *RemoveAllBackendsOutput) SetStatus(v string) *RemoveAllBackendsOutput {
5824	s.Status = &v
5825	return s
5826}
5827
5828type RemoveBackendConfigInput struct {
5829	_ struct{} `type:"structure"`
5830
5831	// AppId is a required field
5832	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5833}
5834
5835// String returns the string representation
5836func (s RemoveBackendConfigInput) String() string {
5837	return awsutil.Prettify(s)
5838}
5839
5840// GoString returns the string representation
5841func (s RemoveBackendConfigInput) GoString() string {
5842	return s.String()
5843}
5844
5845// Validate inspects the fields of the type to determine if they are valid.
5846func (s *RemoveBackendConfigInput) Validate() error {
5847	invalidParams := request.ErrInvalidParams{Context: "RemoveBackendConfigInput"}
5848	if s.AppId == nil {
5849		invalidParams.Add(request.NewErrParamRequired("AppId"))
5850	}
5851	if s.AppId != nil && len(*s.AppId) < 1 {
5852		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5853	}
5854
5855	if invalidParams.Len() > 0 {
5856		return invalidParams
5857	}
5858	return nil
5859}
5860
5861// SetAppId sets the AppId field's value.
5862func (s *RemoveBackendConfigInput) SetAppId(v string) *RemoveBackendConfigInput {
5863	s.AppId = &v
5864	return s
5865}
5866
5867type RemoveBackendConfigOutput struct {
5868	_ struct{} `type:"structure"`
5869
5870	Error *string `locationName:"error" type:"string"`
5871}
5872
5873// String returns the string representation
5874func (s RemoveBackendConfigOutput) String() string {
5875	return awsutil.Prettify(s)
5876}
5877
5878// GoString returns the string representation
5879func (s RemoveBackendConfigOutput) GoString() string {
5880	return s.String()
5881}
5882
5883// SetError sets the Error field's value.
5884func (s *RemoveBackendConfigOutput) SetError(v string) *RemoveBackendConfigOutput {
5885	s.Error = &v
5886	return s
5887}
5888
5889type ResourceConfig struct {
5890	_ struct{} `type:"structure"`
5891}
5892
5893// String returns the string representation
5894func (s ResourceConfig) String() string {
5895	return awsutil.Prettify(s)
5896}
5897
5898// GoString returns the string representation
5899func (s ResourceConfig) GoString() string {
5900	return s.String()
5901}
5902
5903type Settings struct {
5904	_ struct{} `type:"structure"`
5905
5906	MfaTypes []*string `locationName:"mfaTypes" type:"list"`
5907
5908	// The body of the SMS message.
5909	SmsMessage *string `locationName:"smsMessage" type:"string"`
5910}
5911
5912// String returns the string representation
5913func (s Settings) String() string {
5914	return awsutil.Prettify(s)
5915}
5916
5917// GoString returns the string representation
5918func (s Settings) GoString() string {
5919	return s.String()
5920}
5921
5922// SetMfaTypes sets the MfaTypes field's value.
5923func (s *Settings) SetMfaTypes(v []*string) *Settings {
5924	s.MfaTypes = v
5925	return s
5926}
5927
5928// SetSmsMessage sets the SmsMessage field's value.
5929func (s *Settings) SetSmsMessage(v string) *Settings {
5930	s.SmsMessage = &v
5931	return s
5932}
5933
5934type SmsSettings struct {
5935	_ struct{} `type:"structure"`
5936
5937	// The body of the SMS message.
5938	SmsMessage *string `locationName:"smsMessage" type:"string"`
5939}
5940
5941// String returns the string representation
5942func (s SmsSettings) String() string {
5943	return awsutil.Prettify(s)
5944}
5945
5946// GoString returns the string representation
5947func (s SmsSettings) GoString() string {
5948	return s.String()
5949}
5950
5951// SetSmsMessage sets the SmsMessage field's value.
5952func (s *SmsSettings) SetSmsMessage(v string) *SmsSettings {
5953	s.SmsMessage = &v
5954	return s
5955}
5956
5957type SocialProviderSettings struct {
5958	_ struct{} `type:"structure"`
5959
5960	// Describes third-party social federation configurations for allowing your
5961	// app users to sign in using OAuth.
5962	Facebook *BackendAuthSocialProviderConfig `type:"structure"`
5963
5964	// Describes third-party social federation configurations for allowing your
5965	// app users to sign in using OAuth.
5966	Google *BackendAuthSocialProviderConfig `type:"structure"`
5967
5968	// Describes third-party social federation configurations for allowing your
5969	// app users to sign in using OAuth.
5970	LoginWithAmazon *BackendAuthSocialProviderConfig `type:"structure"`
5971}
5972
5973// String returns the string representation
5974func (s SocialProviderSettings) String() string {
5975	return awsutil.Prettify(s)
5976}
5977
5978// GoString returns the string representation
5979func (s SocialProviderSettings) GoString() string {
5980	return s.String()
5981}
5982
5983// SetFacebook sets the Facebook field's value.
5984func (s *SocialProviderSettings) SetFacebook(v *BackendAuthSocialProviderConfig) *SocialProviderSettings {
5985	s.Facebook = v
5986	return s
5987}
5988
5989// SetGoogle sets the Google field's value.
5990func (s *SocialProviderSettings) SetGoogle(v *BackendAuthSocialProviderConfig) *SocialProviderSettings {
5991	s.Google = v
5992	return s
5993}
5994
5995// SetLoginWithAmazon sets the LoginWithAmazon field's value.
5996func (s *SocialProviderSettings) SetLoginWithAmazon(v *BackendAuthSocialProviderConfig) *SocialProviderSettings {
5997	s.LoginWithAmazon = v
5998	return s
5999}
6000
6001// An error that is returned when a limit of a specific type has been exceeded.
6002type TooManyRequestsException struct {
6003	_            struct{}                  `type:"structure"`
6004	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
6005
6006	LimitType *string `locationName:"limitType" type:"string"`
6007
6008	Message_ *string `locationName:"message" type:"string"`
6009}
6010
6011// String returns the string representation
6012func (s TooManyRequestsException) String() string {
6013	return awsutil.Prettify(s)
6014}
6015
6016// GoString returns the string representation
6017func (s TooManyRequestsException) GoString() string {
6018	return s.String()
6019}
6020
6021func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
6022	return &TooManyRequestsException{
6023		RespMetadata: v,
6024	}
6025}
6026
6027// Code returns the exception type name.
6028func (s *TooManyRequestsException) Code() string {
6029	return "TooManyRequestsException"
6030}
6031
6032// Message returns the exception's message.
6033func (s *TooManyRequestsException) Message() string {
6034	if s.Message_ != nil {
6035		return *s.Message_
6036	}
6037	return ""
6038}
6039
6040// OrigErr always returns nil, satisfies awserr.Error interface.
6041func (s *TooManyRequestsException) OrigErr() error {
6042	return nil
6043}
6044
6045func (s *TooManyRequestsException) Error() string {
6046	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
6047}
6048
6049// Status code returns the HTTP status code for the request's response error.
6050func (s *TooManyRequestsException) StatusCode() int {
6051	return s.RespMetadata.StatusCode
6052}
6053
6054// RequestID returns the service's response RequestID for request.
6055func (s *TooManyRequestsException) RequestID() string {
6056	return s.RespMetadata.RequestID
6057}
6058
6059type UpdateBackendAPIInput struct {
6060	_ struct{} `type:"structure"`
6061
6062	// AppId is a required field
6063	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
6064
6065	// BackendEnvironmentName is a required field
6066	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
6067
6068	// The resource config for the data model, configured as a part of the Amplify
6069	// project.
6070	ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure"`
6071
6072	// ResourceName is a required field
6073	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
6074}
6075
6076// String returns the string representation
6077func (s UpdateBackendAPIInput) String() string {
6078	return awsutil.Prettify(s)
6079}
6080
6081// GoString returns the string representation
6082func (s UpdateBackendAPIInput) GoString() string {
6083	return s.String()
6084}
6085
6086// Validate inspects the fields of the type to determine if they are valid.
6087func (s *UpdateBackendAPIInput) Validate() error {
6088	invalidParams := request.ErrInvalidParams{Context: "UpdateBackendAPIInput"}
6089	if s.AppId == nil {
6090		invalidParams.Add(request.NewErrParamRequired("AppId"))
6091	}
6092	if s.AppId != nil && len(*s.AppId) < 1 {
6093		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6094	}
6095	if s.BackendEnvironmentName == nil {
6096		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
6097	}
6098	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
6099		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
6100	}
6101	if s.ResourceName == nil {
6102		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
6103	}
6104
6105	if invalidParams.Len() > 0 {
6106		return invalidParams
6107	}
6108	return nil
6109}
6110
6111// SetAppId sets the AppId field's value.
6112func (s *UpdateBackendAPIInput) SetAppId(v string) *UpdateBackendAPIInput {
6113	s.AppId = &v
6114	return s
6115}
6116
6117// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
6118func (s *UpdateBackendAPIInput) SetBackendEnvironmentName(v string) *UpdateBackendAPIInput {
6119	s.BackendEnvironmentName = &v
6120	return s
6121}
6122
6123// SetResourceConfig sets the ResourceConfig field's value.
6124func (s *UpdateBackendAPIInput) SetResourceConfig(v *BackendAPIResourceConfig) *UpdateBackendAPIInput {
6125	s.ResourceConfig = v
6126	return s
6127}
6128
6129// SetResourceName sets the ResourceName field's value.
6130func (s *UpdateBackendAPIInput) SetResourceName(v string) *UpdateBackendAPIInput {
6131	s.ResourceName = &v
6132	return s
6133}
6134
6135type UpdateBackendAPIOutput struct {
6136	_ struct{} `type:"structure"`
6137
6138	AppId *string `locationName:"appId" type:"string"`
6139
6140	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
6141
6142	Error *string `locationName:"error" type:"string"`
6143
6144	JobId *string `locationName:"jobId" type:"string"`
6145
6146	Operation *string `locationName:"operation" type:"string"`
6147
6148	Status *string `locationName:"status" type:"string"`
6149}
6150
6151// String returns the string representation
6152func (s UpdateBackendAPIOutput) String() string {
6153	return awsutil.Prettify(s)
6154}
6155
6156// GoString returns the string representation
6157func (s UpdateBackendAPIOutput) GoString() string {
6158	return s.String()
6159}
6160
6161// SetAppId sets the AppId field's value.
6162func (s *UpdateBackendAPIOutput) SetAppId(v string) *UpdateBackendAPIOutput {
6163	s.AppId = &v
6164	return s
6165}
6166
6167// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
6168func (s *UpdateBackendAPIOutput) SetBackendEnvironmentName(v string) *UpdateBackendAPIOutput {
6169	s.BackendEnvironmentName = &v
6170	return s
6171}
6172
6173// SetError sets the Error field's value.
6174func (s *UpdateBackendAPIOutput) SetError(v string) *UpdateBackendAPIOutput {
6175	s.Error = &v
6176	return s
6177}
6178
6179// SetJobId sets the JobId field's value.
6180func (s *UpdateBackendAPIOutput) SetJobId(v string) *UpdateBackendAPIOutput {
6181	s.JobId = &v
6182	return s
6183}
6184
6185// SetOperation sets the Operation field's value.
6186func (s *UpdateBackendAPIOutput) SetOperation(v string) *UpdateBackendAPIOutput {
6187	s.Operation = &v
6188	return s
6189}
6190
6191// SetStatus sets the Status field's value.
6192func (s *UpdateBackendAPIOutput) SetStatus(v string) *UpdateBackendAPIOutput {
6193	s.Status = &v
6194	return s
6195}
6196
6197// Describes the forgot password policy for authenticating into the Amplify
6198// app.
6199type UpdateBackendAuthForgotPasswordConfig struct {
6200	_ struct{} `type:"structure"`
6201
6202	// Describes which mode to use (either SMS or email) to deliver messages to
6203	// app users that want to recover their password.
6204	DeliveryMethod *string `locationName:"deliveryMethod" type:"string" enum:"DeliveryMethod"`
6205
6206	// The configuration for the email sent when an app user forgets their password.
6207	EmailSettings *EmailSettings `locationName:"emailSettings" type:"structure"`
6208
6209	// The configuration for the SMS message sent when an Amplify app user forgets
6210	// their password.
6211	SmsSettings *SmsSettings `locationName:"smsSettings" type:"structure"`
6212}
6213
6214// String returns the string representation
6215func (s UpdateBackendAuthForgotPasswordConfig) String() string {
6216	return awsutil.Prettify(s)
6217}
6218
6219// GoString returns the string representation
6220func (s UpdateBackendAuthForgotPasswordConfig) GoString() string {
6221	return s.String()
6222}
6223
6224// SetDeliveryMethod sets the DeliveryMethod field's value.
6225func (s *UpdateBackendAuthForgotPasswordConfig) SetDeliveryMethod(v string) *UpdateBackendAuthForgotPasswordConfig {
6226	s.DeliveryMethod = &v
6227	return s
6228}
6229
6230// SetEmailSettings sets the EmailSettings field's value.
6231func (s *UpdateBackendAuthForgotPasswordConfig) SetEmailSettings(v *EmailSettings) *UpdateBackendAuthForgotPasswordConfig {
6232	s.EmailSettings = v
6233	return s
6234}
6235
6236// SetSmsSettings sets the SmsSettings field's value.
6237func (s *UpdateBackendAuthForgotPasswordConfig) SetSmsSettings(v *SmsSettings) *UpdateBackendAuthForgotPasswordConfig {
6238	s.SmsSettings = v
6239	return s
6240}
6241
6242// Describes the authorization configuration for the Amazon Cognito identity
6243// pool, provisioned as a part of your auth resource in the Amplify project.
6244type UpdateBackendAuthIdentityPoolConfig struct {
6245	_ struct{} `type:"structure"`
6246
6247	// A boolean value which can be set to allow or disallow guest-level authorization
6248	// into your Amplify app.
6249	UnauthenticatedLogin *bool `locationName:"unauthenticatedLogin" type:"boolean"`
6250}
6251
6252// String returns the string representation
6253func (s UpdateBackendAuthIdentityPoolConfig) String() string {
6254	return awsutil.Prettify(s)
6255}
6256
6257// GoString returns the string representation
6258func (s UpdateBackendAuthIdentityPoolConfig) GoString() string {
6259	return s.String()
6260}
6261
6262// SetUnauthenticatedLogin sets the UnauthenticatedLogin field's value.
6263func (s *UpdateBackendAuthIdentityPoolConfig) SetUnauthenticatedLogin(v bool) *UpdateBackendAuthIdentityPoolConfig {
6264	s.UnauthenticatedLogin = &v
6265	return s
6266}
6267
6268type UpdateBackendAuthInput struct {
6269	_ struct{} `type:"structure"`
6270
6271	// AppId is a required field
6272	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
6273
6274	// BackendEnvironmentName is a required field
6275	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
6276
6277	// Defines the resource configuration when updating an authentication resource
6278	// in your Amplify project.
6279	//
6280	// ResourceConfig is a required field
6281	ResourceConfig *UpdateBackendAuthResourceConfig `locationName:"resourceConfig" type:"structure" required:"true"`
6282
6283	// ResourceName is a required field
6284	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
6285}
6286
6287// String returns the string representation
6288func (s UpdateBackendAuthInput) String() string {
6289	return awsutil.Prettify(s)
6290}
6291
6292// GoString returns the string representation
6293func (s UpdateBackendAuthInput) GoString() string {
6294	return s.String()
6295}
6296
6297// Validate inspects the fields of the type to determine if they are valid.
6298func (s *UpdateBackendAuthInput) Validate() error {
6299	invalidParams := request.ErrInvalidParams{Context: "UpdateBackendAuthInput"}
6300	if s.AppId == nil {
6301		invalidParams.Add(request.NewErrParamRequired("AppId"))
6302	}
6303	if s.AppId != nil && len(*s.AppId) < 1 {
6304		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6305	}
6306	if s.BackendEnvironmentName == nil {
6307		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
6308	}
6309	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
6310		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
6311	}
6312	if s.ResourceConfig == nil {
6313		invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
6314	}
6315	if s.ResourceName == nil {
6316		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
6317	}
6318	if s.ResourceConfig != nil {
6319		if err := s.ResourceConfig.Validate(); err != nil {
6320			invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
6321		}
6322	}
6323
6324	if invalidParams.Len() > 0 {
6325		return invalidParams
6326	}
6327	return nil
6328}
6329
6330// SetAppId sets the AppId field's value.
6331func (s *UpdateBackendAuthInput) SetAppId(v string) *UpdateBackendAuthInput {
6332	s.AppId = &v
6333	return s
6334}
6335
6336// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
6337func (s *UpdateBackendAuthInput) SetBackendEnvironmentName(v string) *UpdateBackendAuthInput {
6338	s.BackendEnvironmentName = &v
6339	return s
6340}
6341
6342// SetResourceConfig sets the ResourceConfig field's value.
6343func (s *UpdateBackendAuthInput) SetResourceConfig(v *UpdateBackendAuthResourceConfig) *UpdateBackendAuthInput {
6344	s.ResourceConfig = v
6345	return s
6346}
6347
6348// SetResourceName sets the ResourceName field's value.
6349func (s *UpdateBackendAuthInput) SetResourceName(v string) *UpdateBackendAuthInput {
6350	s.ResourceName = &v
6351	return s
6352}
6353
6354// Updates the multi-factor authentication (MFA) configuration for the backend
6355// of your Amplify project.
6356type UpdateBackendAuthMFAConfig struct {
6357	_ struct{} `type:"structure"`
6358
6359	// The MFA mode for the backend of your Amplify project.
6360	MFAMode *string `type:"string" enum:"MFAMode"`
6361
6362	// The settings of your MFA configuration for the backend of your Amplify project.
6363	Settings *Settings `locationName:"settings" type:"structure"`
6364}
6365
6366// String returns the string representation
6367func (s UpdateBackendAuthMFAConfig) String() string {
6368	return awsutil.Prettify(s)
6369}
6370
6371// GoString returns the string representation
6372func (s UpdateBackendAuthMFAConfig) GoString() string {
6373	return s.String()
6374}
6375
6376// SetMFAMode sets the MFAMode field's value.
6377func (s *UpdateBackendAuthMFAConfig) SetMFAMode(v string) *UpdateBackendAuthMFAConfig {
6378	s.MFAMode = &v
6379	return s
6380}
6381
6382// SetSettings sets the Settings field's value.
6383func (s *UpdateBackendAuthMFAConfig) SetSettings(v *Settings) *UpdateBackendAuthMFAConfig {
6384	s.Settings = v
6385	return s
6386}
6387
6388// The OAuth configurations for authenticating users into your Amplify app.
6389type UpdateBackendAuthOAuthConfig struct {
6390	_ struct{} `type:"structure"`
6391
6392	// The Amazon Cognito domain prefix used to create a hosted UI for authentication.
6393	DomainPrefix *string `locationName:"domainPrefix" type:"string"`
6394
6395	// The OAuth grant type to allow app users to authenticate from your Amplify
6396	// app.
6397	OAuthGrantType *string `locationName:"oAuthGrantType" type:"string" enum:"OAuthGrantType"`
6398
6399	// The list of OAuth-related flows that can allow users to authenticate from
6400	// your Amplify app.
6401	OAuthScopes []*string `locationName:"oAuthScopes" type:"list"`
6402
6403	// Redirect URLs used by OAuth when a user signs in to an Amplify app.
6404	RedirectSignInURIs []*string `locationName:"redirectSignInURIs" type:"list"`
6405
6406	// Redirect URLs used by OAuth when a user signs out of an Amplify app.
6407	RedirectSignOutURIs []*string `locationName:"redirectSignOutURIs" type:"list"`
6408
6409	// Describes third-party social federation configurations for allowing your
6410	// users to sign in with OAuth.
6411	SocialProviderSettings *SocialProviderSettings `locationName:"socialProviderSettings" type:"structure"`
6412}
6413
6414// String returns the string representation
6415func (s UpdateBackendAuthOAuthConfig) String() string {
6416	return awsutil.Prettify(s)
6417}
6418
6419// GoString returns the string representation
6420func (s UpdateBackendAuthOAuthConfig) GoString() string {
6421	return s.String()
6422}
6423
6424// SetDomainPrefix sets the DomainPrefix field's value.
6425func (s *UpdateBackendAuthOAuthConfig) SetDomainPrefix(v string) *UpdateBackendAuthOAuthConfig {
6426	s.DomainPrefix = &v
6427	return s
6428}
6429
6430// SetOAuthGrantType sets the OAuthGrantType field's value.
6431func (s *UpdateBackendAuthOAuthConfig) SetOAuthGrantType(v string) *UpdateBackendAuthOAuthConfig {
6432	s.OAuthGrantType = &v
6433	return s
6434}
6435
6436// SetOAuthScopes sets the OAuthScopes field's value.
6437func (s *UpdateBackendAuthOAuthConfig) SetOAuthScopes(v []*string) *UpdateBackendAuthOAuthConfig {
6438	s.OAuthScopes = v
6439	return s
6440}
6441
6442// SetRedirectSignInURIs sets the RedirectSignInURIs field's value.
6443func (s *UpdateBackendAuthOAuthConfig) SetRedirectSignInURIs(v []*string) *UpdateBackendAuthOAuthConfig {
6444	s.RedirectSignInURIs = v
6445	return s
6446}
6447
6448// SetRedirectSignOutURIs sets the RedirectSignOutURIs field's value.
6449func (s *UpdateBackendAuthOAuthConfig) SetRedirectSignOutURIs(v []*string) *UpdateBackendAuthOAuthConfig {
6450	s.RedirectSignOutURIs = v
6451	return s
6452}
6453
6454// SetSocialProviderSettings sets the SocialProviderSettings field's value.
6455func (s *UpdateBackendAuthOAuthConfig) SetSocialProviderSettings(v *SocialProviderSettings) *UpdateBackendAuthOAuthConfig {
6456	s.SocialProviderSettings = v
6457	return s
6458}
6459
6460type UpdateBackendAuthOutput struct {
6461	_ struct{} `type:"structure"`
6462
6463	AppId *string `locationName:"appId" type:"string"`
6464
6465	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
6466
6467	Error *string `locationName:"error" type:"string"`
6468
6469	JobId *string `locationName:"jobId" type:"string"`
6470
6471	Operation *string `locationName:"operation" type:"string"`
6472
6473	Status *string `locationName:"status" type:"string"`
6474}
6475
6476// String returns the string representation
6477func (s UpdateBackendAuthOutput) String() string {
6478	return awsutil.Prettify(s)
6479}
6480
6481// GoString returns the string representation
6482func (s UpdateBackendAuthOutput) GoString() string {
6483	return s.String()
6484}
6485
6486// SetAppId sets the AppId field's value.
6487func (s *UpdateBackendAuthOutput) SetAppId(v string) *UpdateBackendAuthOutput {
6488	s.AppId = &v
6489	return s
6490}
6491
6492// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
6493func (s *UpdateBackendAuthOutput) SetBackendEnvironmentName(v string) *UpdateBackendAuthOutput {
6494	s.BackendEnvironmentName = &v
6495	return s
6496}
6497
6498// SetError sets the Error field's value.
6499func (s *UpdateBackendAuthOutput) SetError(v string) *UpdateBackendAuthOutput {
6500	s.Error = &v
6501	return s
6502}
6503
6504// SetJobId sets the JobId field's value.
6505func (s *UpdateBackendAuthOutput) SetJobId(v string) *UpdateBackendAuthOutput {
6506	s.JobId = &v
6507	return s
6508}
6509
6510// SetOperation sets the Operation field's value.
6511func (s *UpdateBackendAuthOutput) SetOperation(v string) *UpdateBackendAuthOutput {
6512	s.Operation = &v
6513	return s
6514}
6515
6516// SetStatus sets the Status field's value.
6517func (s *UpdateBackendAuthOutput) SetStatus(v string) *UpdateBackendAuthOutput {
6518	s.Status = &v
6519	return s
6520}
6521
6522// Describes the password policy for your Amazon Cognito user pool configured
6523// as a part of your Amplify project.
6524type UpdateBackendAuthPasswordPolicyConfig struct {
6525	_ struct{} `type:"structure"`
6526
6527	// Describes additional constraints on password requirements to sign in to the
6528	// auth resource, configured as a part of your Amplify project.
6529	AdditionalConstraints []*string `locationName:"additionalConstraints" type:"list"`
6530
6531	// Describes the minimum length of the password required to sign in to the auth
6532	// resource, configured as a part of your Amplify project.
6533	MinimumLength *float64 `locationName:"minimumLength" type:"double"`
6534}
6535
6536// String returns the string representation
6537func (s UpdateBackendAuthPasswordPolicyConfig) String() string {
6538	return awsutil.Prettify(s)
6539}
6540
6541// GoString returns the string representation
6542func (s UpdateBackendAuthPasswordPolicyConfig) GoString() string {
6543	return s.String()
6544}
6545
6546// SetAdditionalConstraints sets the AdditionalConstraints field's value.
6547func (s *UpdateBackendAuthPasswordPolicyConfig) SetAdditionalConstraints(v []*string) *UpdateBackendAuthPasswordPolicyConfig {
6548	s.AdditionalConstraints = v
6549	return s
6550}
6551
6552// SetMinimumLength sets the MinimumLength field's value.
6553func (s *UpdateBackendAuthPasswordPolicyConfig) SetMinimumLength(v float64) *UpdateBackendAuthPasswordPolicyConfig {
6554	s.MinimumLength = &v
6555	return s
6556}
6557
6558// Defines the resource configuration when updating an authentication resource
6559// in your Amplify project.
6560type UpdateBackendAuthResourceConfig struct {
6561	_ struct{} `type:"structure"`
6562
6563	// Defines the service name to use when configuring an authentication resource
6564	// in your Amplify project.
6565	//
6566	// AuthResources is a required field
6567	AuthResources *string `locationName:"authResources" type:"string" required:"true" enum:"AuthResources"`
6568
6569	// Describes the authorization configuration for the Amazon Cognito identity
6570	// pool, provisioned as a part of your auth resource in the Amplify project.
6571	IdentityPoolConfigs *UpdateBackendAuthIdentityPoolConfig `locationName:"identityPoolConfigs" type:"structure"`
6572
6573	// Defines the service name to use when configuring an authentication resource
6574	// in your Amplify project.
6575	//
6576	// Service is a required field
6577	Service *string `locationName:"service" type:"string" required:"true" enum:"Service"`
6578
6579	// Describes the authentication configuration for the Amazon Cognito user pool,
6580	// provisioned as a part of your auth resource in the Amplify project.
6581	//
6582	// UserPoolConfigs is a required field
6583	UserPoolConfigs *UpdateBackendAuthUserPoolConfig `locationName:"userPoolConfigs" type:"structure" required:"true"`
6584}
6585
6586// String returns the string representation
6587func (s UpdateBackendAuthResourceConfig) String() string {
6588	return awsutil.Prettify(s)
6589}
6590
6591// GoString returns the string representation
6592func (s UpdateBackendAuthResourceConfig) GoString() string {
6593	return s.String()
6594}
6595
6596// Validate inspects the fields of the type to determine if they are valid.
6597func (s *UpdateBackendAuthResourceConfig) Validate() error {
6598	invalidParams := request.ErrInvalidParams{Context: "UpdateBackendAuthResourceConfig"}
6599	if s.AuthResources == nil {
6600		invalidParams.Add(request.NewErrParamRequired("AuthResources"))
6601	}
6602	if s.Service == nil {
6603		invalidParams.Add(request.NewErrParamRequired("Service"))
6604	}
6605	if s.UserPoolConfigs == nil {
6606		invalidParams.Add(request.NewErrParamRequired("UserPoolConfigs"))
6607	}
6608
6609	if invalidParams.Len() > 0 {
6610		return invalidParams
6611	}
6612	return nil
6613}
6614
6615// SetAuthResources sets the AuthResources field's value.
6616func (s *UpdateBackendAuthResourceConfig) SetAuthResources(v string) *UpdateBackendAuthResourceConfig {
6617	s.AuthResources = &v
6618	return s
6619}
6620
6621// SetIdentityPoolConfigs sets the IdentityPoolConfigs field's value.
6622func (s *UpdateBackendAuthResourceConfig) SetIdentityPoolConfigs(v *UpdateBackendAuthIdentityPoolConfig) *UpdateBackendAuthResourceConfig {
6623	s.IdentityPoolConfigs = v
6624	return s
6625}
6626
6627// SetService sets the Service field's value.
6628func (s *UpdateBackendAuthResourceConfig) SetService(v string) *UpdateBackendAuthResourceConfig {
6629	s.Service = &v
6630	return s
6631}
6632
6633// SetUserPoolConfigs sets the UserPoolConfigs field's value.
6634func (s *UpdateBackendAuthResourceConfig) SetUserPoolConfigs(v *UpdateBackendAuthUserPoolConfig) *UpdateBackendAuthResourceConfig {
6635	s.UserPoolConfigs = v
6636	return s
6637}
6638
6639// Describes the Amazon Cognito user pool configuration for the authorization
6640// resource to be configured for your Amplify project on an update.
6641type UpdateBackendAuthUserPoolConfig struct {
6642	_ struct{} `type:"structure"`
6643
6644	// Describes the forgot password policy for your Amazon Cognito user pool, configured
6645	// as a part of your Amplify project.
6646	ForgotPassword *UpdateBackendAuthForgotPasswordConfig `locationName:"forgotPassword" type:"structure"`
6647
6648	// Describes whether multi-factor authentication policies should be applied
6649	// for your Amazon Cognito user pool configured as a part of your Amplify project.
6650	Mfa *UpdateBackendAuthMFAConfig `locationName:"mfa" type:"structure"`
6651
6652	// Describes the OAuth policy and rules for your Amazon Cognito user pool, configured
6653	// as a part of your Amplify project.
6654	OAuth *UpdateBackendAuthOAuthConfig `locationName:"oAuth" type:"structure"`
6655
6656	// Describes the password policy for your Amazon Cognito user pool, configured
6657	// as a part of your Amplify project.
6658	PasswordPolicy *UpdateBackendAuthPasswordPolicyConfig `locationName:"passwordPolicy" type:"structure"`
6659}
6660
6661// String returns the string representation
6662func (s UpdateBackendAuthUserPoolConfig) String() string {
6663	return awsutil.Prettify(s)
6664}
6665
6666// GoString returns the string representation
6667func (s UpdateBackendAuthUserPoolConfig) GoString() string {
6668	return s.String()
6669}
6670
6671// SetForgotPassword sets the ForgotPassword field's value.
6672func (s *UpdateBackendAuthUserPoolConfig) SetForgotPassword(v *UpdateBackendAuthForgotPasswordConfig) *UpdateBackendAuthUserPoolConfig {
6673	s.ForgotPassword = v
6674	return s
6675}
6676
6677// SetMfa sets the Mfa field's value.
6678func (s *UpdateBackendAuthUserPoolConfig) SetMfa(v *UpdateBackendAuthMFAConfig) *UpdateBackendAuthUserPoolConfig {
6679	s.Mfa = v
6680	return s
6681}
6682
6683// SetOAuth sets the OAuth field's value.
6684func (s *UpdateBackendAuthUserPoolConfig) SetOAuth(v *UpdateBackendAuthOAuthConfig) *UpdateBackendAuthUserPoolConfig {
6685	s.OAuth = v
6686	return s
6687}
6688
6689// SetPasswordPolicy sets the PasswordPolicy field's value.
6690func (s *UpdateBackendAuthUserPoolConfig) SetPasswordPolicy(v *UpdateBackendAuthPasswordPolicyConfig) *UpdateBackendAuthUserPoolConfig {
6691	s.PasswordPolicy = v
6692	return s
6693}
6694
6695type UpdateBackendConfigInput struct {
6696	_ struct{} `type:"structure"`
6697
6698	// AppId is a required field
6699	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
6700
6701	// The request object for this operation.
6702	LoginAuthConfig *LoginAuthConfigReqObj `locationName:"loginAuthConfig" type:"structure"`
6703}
6704
6705// String returns the string representation
6706func (s UpdateBackendConfigInput) String() string {
6707	return awsutil.Prettify(s)
6708}
6709
6710// GoString returns the string representation
6711func (s UpdateBackendConfigInput) GoString() string {
6712	return s.String()
6713}
6714
6715// Validate inspects the fields of the type to determine if they are valid.
6716func (s *UpdateBackendConfigInput) Validate() error {
6717	invalidParams := request.ErrInvalidParams{Context: "UpdateBackendConfigInput"}
6718	if s.AppId == nil {
6719		invalidParams.Add(request.NewErrParamRequired("AppId"))
6720	}
6721	if s.AppId != nil && len(*s.AppId) < 1 {
6722		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6723	}
6724
6725	if invalidParams.Len() > 0 {
6726		return invalidParams
6727	}
6728	return nil
6729}
6730
6731// SetAppId sets the AppId field's value.
6732func (s *UpdateBackendConfigInput) SetAppId(v string) *UpdateBackendConfigInput {
6733	s.AppId = &v
6734	return s
6735}
6736
6737// SetLoginAuthConfig sets the LoginAuthConfig field's value.
6738func (s *UpdateBackendConfigInput) SetLoginAuthConfig(v *LoginAuthConfigReqObj) *UpdateBackendConfigInput {
6739	s.LoginAuthConfig = v
6740	return s
6741}
6742
6743type UpdateBackendConfigOutput struct {
6744	_ struct{} `type:"structure"`
6745
6746	AppId *string `locationName:"appId" type:"string"`
6747
6748	BackendManagerAppId *string `locationName:"backendManagerAppId" type:"string"`
6749
6750	Error *string `locationName:"error" type:"string"`
6751
6752	// The request object for this operation.
6753	LoginAuthConfig *LoginAuthConfigReqObj `locationName:"loginAuthConfig" type:"structure"`
6754}
6755
6756// String returns the string representation
6757func (s UpdateBackendConfigOutput) String() string {
6758	return awsutil.Prettify(s)
6759}
6760
6761// GoString returns the string representation
6762func (s UpdateBackendConfigOutput) GoString() string {
6763	return s.String()
6764}
6765
6766// SetAppId sets the AppId field's value.
6767func (s *UpdateBackendConfigOutput) SetAppId(v string) *UpdateBackendConfigOutput {
6768	s.AppId = &v
6769	return s
6770}
6771
6772// SetBackendManagerAppId sets the BackendManagerAppId field's value.
6773func (s *UpdateBackendConfigOutput) SetBackendManagerAppId(v string) *UpdateBackendConfigOutput {
6774	s.BackendManagerAppId = &v
6775	return s
6776}
6777
6778// SetError sets the Error field's value.
6779func (s *UpdateBackendConfigOutput) SetError(v string) *UpdateBackendConfigOutput {
6780	s.Error = &v
6781	return s
6782}
6783
6784// SetLoginAuthConfig sets the LoginAuthConfig field's value.
6785func (s *UpdateBackendConfigOutput) SetLoginAuthConfig(v *LoginAuthConfigReqObj) *UpdateBackendConfigOutput {
6786	s.LoginAuthConfig = v
6787	return s
6788}
6789
6790type UpdateBackendJobInput struct {
6791	_ struct{} `type:"structure"`
6792
6793	// AppId is a required field
6794	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
6795
6796	// BackendEnvironmentName is a required field
6797	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
6798
6799	// JobId is a required field
6800	JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
6801
6802	Operation *string `locationName:"operation" type:"string"`
6803
6804	Status *string `locationName:"status" type:"string"`
6805}
6806
6807// String returns the string representation
6808func (s UpdateBackendJobInput) String() string {
6809	return awsutil.Prettify(s)
6810}
6811
6812// GoString returns the string representation
6813func (s UpdateBackendJobInput) GoString() string {
6814	return s.String()
6815}
6816
6817// Validate inspects the fields of the type to determine if they are valid.
6818func (s *UpdateBackendJobInput) Validate() error {
6819	invalidParams := request.ErrInvalidParams{Context: "UpdateBackendJobInput"}
6820	if s.AppId == nil {
6821		invalidParams.Add(request.NewErrParamRequired("AppId"))
6822	}
6823	if s.AppId != nil && len(*s.AppId) < 1 {
6824		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6825	}
6826	if s.BackendEnvironmentName == nil {
6827		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
6828	}
6829	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
6830		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
6831	}
6832	if s.JobId == nil {
6833		invalidParams.Add(request.NewErrParamRequired("JobId"))
6834	}
6835	if s.JobId != nil && len(*s.JobId) < 1 {
6836		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
6837	}
6838
6839	if invalidParams.Len() > 0 {
6840		return invalidParams
6841	}
6842	return nil
6843}
6844
6845// SetAppId sets the AppId field's value.
6846func (s *UpdateBackendJobInput) SetAppId(v string) *UpdateBackendJobInput {
6847	s.AppId = &v
6848	return s
6849}
6850
6851// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
6852func (s *UpdateBackendJobInput) SetBackendEnvironmentName(v string) *UpdateBackendJobInput {
6853	s.BackendEnvironmentName = &v
6854	return s
6855}
6856
6857// SetJobId sets the JobId field's value.
6858func (s *UpdateBackendJobInput) SetJobId(v string) *UpdateBackendJobInput {
6859	s.JobId = &v
6860	return s
6861}
6862
6863// SetOperation sets the Operation field's value.
6864func (s *UpdateBackendJobInput) SetOperation(v string) *UpdateBackendJobInput {
6865	s.Operation = &v
6866	return s
6867}
6868
6869// SetStatus sets the Status field's value.
6870func (s *UpdateBackendJobInput) SetStatus(v string) *UpdateBackendJobInput {
6871	s.Status = &v
6872	return s
6873}
6874
6875type UpdateBackendJobOutput struct {
6876	_ struct{} `type:"structure"`
6877
6878	AppId *string `locationName:"appId" type:"string"`
6879
6880	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
6881
6882	CreateTime *string `locationName:"createTime" type:"string"`
6883
6884	Error *string `locationName:"error" type:"string"`
6885
6886	JobId *string `locationName:"jobId" type:"string"`
6887
6888	Operation *string `locationName:"operation" type:"string"`
6889
6890	Status *string `locationName:"status" type:"string"`
6891
6892	UpdateTime *string `locationName:"updateTime" type:"string"`
6893}
6894
6895// String returns the string representation
6896func (s UpdateBackendJobOutput) String() string {
6897	return awsutil.Prettify(s)
6898}
6899
6900// GoString returns the string representation
6901func (s UpdateBackendJobOutput) GoString() string {
6902	return s.String()
6903}
6904
6905// SetAppId sets the AppId field's value.
6906func (s *UpdateBackendJobOutput) SetAppId(v string) *UpdateBackendJobOutput {
6907	s.AppId = &v
6908	return s
6909}
6910
6911// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
6912func (s *UpdateBackendJobOutput) SetBackendEnvironmentName(v string) *UpdateBackendJobOutput {
6913	s.BackendEnvironmentName = &v
6914	return s
6915}
6916
6917// SetCreateTime sets the CreateTime field's value.
6918func (s *UpdateBackendJobOutput) SetCreateTime(v string) *UpdateBackendJobOutput {
6919	s.CreateTime = &v
6920	return s
6921}
6922
6923// SetError sets the Error field's value.
6924func (s *UpdateBackendJobOutput) SetError(v string) *UpdateBackendJobOutput {
6925	s.Error = &v
6926	return s
6927}
6928
6929// SetJobId sets the JobId field's value.
6930func (s *UpdateBackendJobOutput) SetJobId(v string) *UpdateBackendJobOutput {
6931	s.JobId = &v
6932	return s
6933}
6934
6935// SetOperation sets the Operation field's value.
6936func (s *UpdateBackendJobOutput) SetOperation(v string) *UpdateBackendJobOutput {
6937	s.Operation = &v
6938	return s
6939}
6940
6941// SetStatus sets the Status field's value.
6942func (s *UpdateBackendJobOutput) SetStatus(v string) *UpdateBackendJobOutput {
6943	s.Status = &v
6944	return s
6945}
6946
6947// SetUpdateTime sets the UpdateTime field's value.
6948func (s *UpdateBackendJobOutput) SetUpdateTime(v string) *UpdateBackendJobOutput {
6949	s.UpdateTime = &v
6950	return s
6951}
6952
6953const (
6954	// AdditionalConstraintsElementRequireDigit is a AdditionalConstraintsElement enum value
6955	AdditionalConstraintsElementRequireDigit = "REQUIRE_DIGIT"
6956
6957	// AdditionalConstraintsElementRequireLowercase is a AdditionalConstraintsElement enum value
6958	AdditionalConstraintsElementRequireLowercase = "REQUIRE_LOWERCASE"
6959
6960	// AdditionalConstraintsElementRequireSymbol is a AdditionalConstraintsElement enum value
6961	AdditionalConstraintsElementRequireSymbol = "REQUIRE_SYMBOL"
6962
6963	// AdditionalConstraintsElementRequireUppercase is a AdditionalConstraintsElement enum value
6964	AdditionalConstraintsElementRequireUppercase = "REQUIRE_UPPERCASE"
6965)
6966
6967// AdditionalConstraintsElement_Values returns all elements of the AdditionalConstraintsElement enum
6968func AdditionalConstraintsElement_Values() []string {
6969	return []string{
6970		AdditionalConstraintsElementRequireDigit,
6971		AdditionalConstraintsElementRequireLowercase,
6972		AdditionalConstraintsElementRequireSymbol,
6973		AdditionalConstraintsElementRequireUppercase,
6974	}
6975}
6976
6977const (
6978	// AuthResourcesUserPoolOnly is a AuthResources enum value
6979	AuthResourcesUserPoolOnly = "USER_POOL_ONLY"
6980
6981	// AuthResourcesIdentityPoolAndUserPool is a AuthResources enum value
6982	AuthResourcesIdentityPoolAndUserPool = "IDENTITY_POOL_AND_USER_POOL"
6983)
6984
6985// AuthResources_Values returns all elements of the AuthResources enum
6986func AuthResources_Values() []string {
6987	return []string{
6988		AuthResourcesUserPoolOnly,
6989		AuthResourcesIdentityPoolAndUserPool,
6990	}
6991}
6992
6993const (
6994	// DeliveryMethodEmail is a DeliveryMethod enum value
6995	DeliveryMethodEmail = "EMAIL"
6996
6997	// DeliveryMethodSms is a DeliveryMethod enum value
6998	DeliveryMethodSms = "SMS"
6999)
7000
7001// DeliveryMethod_Values returns all elements of the DeliveryMethod enum
7002func DeliveryMethod_Values() []string {
7003	return []string{
7004		DeliveryMethodEmail,
7005		DeliveryMethodSms,
7006	}
7007}
7008
7009const (
7010	// MFAModeOn is a MFAMode enum value
7011	MFAModeOn = "ON"
7012
7013	// MFAModeOff is a MFAMode enum value
7014	MFAModeOff = "OFF"
7015
7016	// MFAModeOptional is a MFAMode enum value
7017	MFAModeOptional = "OPTIONAL"
7018)
7019
7020// MFAMode_Values returns all elements of the MFAMode enum
7021func MFAMode_Values() []string {
7022	return []string{
7023		MFAModeOn,
7024		MFAModeOff,
7025		MFAModeOptional,
7026	}
7027}
7028
7029const (
7030	// MfaTypesElementSms is a MfaTypesElement enum value
7031	MfaTypesElementSms = "SMS"
7032
7033	// MfaTypesElementTotp is a MfaTypesElement enum value
7034	MfaTypesElementTotp = "TOTP"
7035)
7036
7037// MfaTypesElement_Values returns all elements of the MfaTypesElement enum
7038func MfaTypesElement_Values() []string {
7039	return []string{
7040		MfaTypesElementSms,
7041		MfaTypesElementTotp,
7042	}
7043}
7044
7045const (
7046	// ModeApiKey is a Mode enum value
7047	ModeApiKey = "API_KEY"
7048
7049	// ModeAwsIam is a Mode enum value
7050	ModeAwsIam = "AWS_IAM"
7051
7052	// ModeAmazonCognitoUserPools is a Mode enum value
7053	ModeAmazonCognitoUserPools = "AMAZON_COGNITO_USER_POOLS"
7054
7055	// ModeOpenidConnect is a Mode enum value
7056	ModeOpenidConnect = "OPENID_CONNECT"
7057)
7058
7059// Mode_Values returns all elements of the Mode enum
7060func Mode_Values() []string {
7061	return []string{
7062		ModeApiKey,
7063		ModeAwsIam,
7064		ModeAmazonCognitoUserPools,
7065		ModeOpenidConnect,
7066	}
7067}
7068
7069const (
7070	// OAuthGrantTypeCode is a OAuthGrantType enum value
7071	OAuthGrantTypeCode = "CODE"
7072
7073	// OAuthGrantTypeImplicit is a OAuthGrantType enum value
7074	OAuthGrantTypeImplicit = "IMPLICIT"
7075)
7076
7077// OAuthGrantType_Values returns all elements of the OAuthGrantType enum
7078func OAuthGrantType_Values() []string {
7079	return []string{
7080		OAuthGrantTypeCode,
7081		OAuthGrantTypeImplicit,
7082	}
7083}
7084
7085const (
7086	// OAuthScopesElementPhone is a OAuthScopesElement enum value
7087	OAuthScopesElementPhone = "PHONE"
7088
7089	// OAuthScopesElementEmail is a OAuthScopesElement enum value
7090	OAuthScopesElementEmail = "EMAIL"
7091
7092	// OAuthScopesElementOpenid is a OAuthScopesElement enum value
7093	OAuthScopesElementOpenid = "OPENID"
7094
7095	// OAuthScopesElementProfile is a OAuthScopesElement enum value
7096	OAuthScopesElementProfile = "PROFILE"
7097
7098	// OAuthScopesElementAwsCognitoSigninUserAdmin is a OAuthScopesElement enum value
7099	OAuthScopesElementAwsCognitoSigninUserAdmin = "AWS_COGNITO_SIGNIN_USER_ADMIN"
7100)
7101
7102// OAuthScopesElement_Values returns all elements of the OAuthScopesElement enum
7103func OAuthScopesElement_Values() []string {
7104	return []string{
7105		OAuthScopesElementPhone,
7106		OAuthScopesElementEmail,
7107		OAuthScopesElementOpenid,
7108		OAuthScopesElementProfile,
7109		OAuthScopesElementAwsCognitoSigninUserAdmin,
7110	}
7111}
7112
7113const (
7114	// RequiredSignUpAttributesElementAddress is a RequiredSignUpAttributesElement enum value
7115	RequiredSignUpAttributesElementAddress = "ADDRESS"
7116
7117	// RequiredSignUpAttributesElementBirthdate is a RequiredSignUpAttributesElement enum value
7118	RequiredSignUpAttributesElementBirthdate = "BIRTHDATE"
7119
7120	// RequiredSignUpAttributesElementEmail is a RequiredSignUpAttributesElement enum value
7121	RequiredSignUpAttributesElementEmail = "EMAIL"
7122
7123	// RequiredSignUpAttributesElementFamilyName is a RequiredSignUpAttributesElement enum value
7124	RequiredSignUpAttributesElementFamilyName = "FAMILY_NAME"
7125
7126	// RequiredSignUpAttributesElementGender is a RequiredSignUpAttributesElement enum value
7127	RequiredSignUpAttributesElementGender = "GENDER"
7128
7129	// RequiredSignUpAttributesElementGivenName is a RequiredSignUpAttributesElement enum value
7130	RequiredSignUpAttributesElementGivenName = "GIVEN_NAME"
7131
7132	// RequiredSignUpAttributesElementLocale is a RequiredSignUpAttributesElement enum value
7133	RequiredSignUpAttributesElementLocale = "LOCALE"
7134
7135	// RequiredSignUpAttributesElementMiddleName is a RequiredSignUpAttributesElement enum value
7136	RequiredSignUpAttributesElementMiddleName = "MIDDLE_NAME"
7137
7138	// RequiredSignUpAttributesElementName is a RequiredSignUpAttributesElement enum value
7139	RequiredSignUpAttributesElementName = "NAME"
7140
7141	// RequiredSignUpAttributesElementNickname is a RequiredSignUpAttributesElement enum value
7142	RequiredSignUpAttributesElementNickname = "NICKNAME"
7143
7144	// RequiredSignUpAttributesElementPhoneNumber is a RequiredSignUpAttributesElement enum value
7145	RequiredSignUpAttributesElementPhoneNumber = "PHONE_NUMBER"
7146
7147	// RequiredSignUpAttributesElementPicture is a RequiredSignUpAttributesElement enum value
7148	RequiredSignUpAttributesElementPicture = "PICTURE"
7149
7150	// RequiredSignUpAttributesElementPreferredUsername is a RequiredSignUpAttributesElement enum value
7151	RequiredSignUpAttributesElementPreferredUsername = "PREFERRED_USERNAME"
7152
7153	// RequiredSignUpAttributesElementProfile is a RequiredSignUpAttributesElement enum value
7154	RequiredSignUpAttributesElementProfile = "PROFILE"
7155
7156	// RequiredSignUpAttributesElementUpdatedAt is a RequiredSignUpAttributesElement enum value
7157	RequiredSignUpAttributesElementUpdatedAt = "UPDATED_AT"
7158
7159	// RequiredSignUpAttributesElementWebsite is a RequiredSignUpAttributesElement enum value
7160	RequiredSignUpAttributesElementWebsite = "WEBSITE"
7161
7162	// RequiredSignUpAttributesElementZoneInfo is a RequiredSignUpAttributesElement enum value
7163	RequiredSignUpAttributesElementZoneInfo = "ZONE_INFO"
7164)
7165
7166// RequiredSignUpAttributesElement_Values returns all elements of the RequiredSignUpAttributesElement enum
7167func RequiredSignUpAttributesElement_Values() []string {
7168	return []string{
7169		RequiredSignUpAttributesElementAddress,
7170		RequiredSignUpAttributesElementBirthdate,
7171		RequiredSignUpAttributesElementEmail,
7172		RequiredSignUpAttributesElementFamilyName,
7173		RequiredSignUpAttributesElementGender,
7174		RequiredSignUpAttributesElementGivenName,
7175		RequiredSignUpAttributesElementLocale,
7176		RequiredSignUpAttributesElementMiddleName,
7177		RequiredSignUpAttributesElementName,
7178		RequiredSignUpAttributesElementNickname,
7179		RequiredSignUpAttributesElementPhoneNumber,
7180		RequiredSignUpAttributesElementPicture,
7181		RequiredSignUpAttributesElementPreferredUsername,
7182		RequiredSignUpAttributesElementProfile,
7183		RequiredSignUpAttributesElementUpdatedAt,
7184		RequiredSignUpAttributesElementWebsite,
7185		RequiredSignUpAttributesElementZoneInfo,
7186	}
7187}
7188
7189const (
7190	// ResolutionStrategyOptimisticConcurrency is a ResolutionStrategy enum value
7191	ResolutionStrategyOptimisticConcurrency = "OPTIMISTIC_CONCURRENCY"
7192
7193	// ResolutionStrategyLambda is a ResolutionStrategy enum value
7194	ResolutionStrategyLambda = "LAMBDA"
7195
7196	// ResolutionStrategyAutomerge is a ResolutionStrategy enum value
7197	ResolutionStrategyAutomerge = "AUTOMERGE"
7198
7199	// ResolutionStrategyNone is a ResolutionStrategy enum value
7200	ResolutionStrategyNone = "NONE"
7201)
7202
7203// ResolutionStrategy_Values returns all elements of the ResolutionStrategy enum
7204func ResolutionStrategy_Values() []string {
7205	return []string{
7206		ResolutionStrategyOptimisticConcurrency,
7207		ResolutionStrategyLambda,
7208		ResolutionStrategyAutomerge,
7209		ResolutionStrategyNone,
7210	}
7211}
7212
7213const (
7214	// ServiceCognito is a Service enum value
7215	ServiceCognito = "COGNITO"
7216)
7217
7218// Service_Values returns all elements of the Service enum
7219func Service_Values() []string {
7220	return []string{
7221		ServiceCognito,
7222	}
7223}
7224
7225const (
7226	// SignInMethodEmail is a SignInMethod enum value
7227	SignInMethodEmail = "EMAIL"
7228
7229	// SignInMethodEmailAndPhoneNumber is a SignInMethod enum value
7230	SignInMethodEmailAndPhoneNumber = "EMAIL_AND_PHONE_NUMBER"
7231
7232	// SignInMethodPhoneNumber is a SignInMethod enum value
7233	SignInMethodPhoneNumber = "PHONE_NUMBER"
7234
7235	// SignInMethodUsername is a SignInMethod enum value
7236	SignInMethodUsername = "USERNAME"
7237)
7238
7239// SignInMethod_Values returns all elements of the SignInMethod enum
7240func SignInMethod_Values() []string {
7241	return []string{
7242		SignInMethodEmail,
7243		SignInMethodEmailAndPhoneNumber,
7244		SignInMethodPhoneNumber,
7245		SignInMethodUsername,
7246	}
7247}
7248
7249const (
7250	// StatusLatest is a Status enum value
7251	StatusLatest = "LATEST"
7252
7253	// StatusStale is a Status enum value
7254	StatusStale = "STALE"
7255)
7256
7257// Status_Values returns all elements of the Status enum
7258func Status_Values() []string {
7259	return []string{
7260		StatusLatest,
7261		StatusStale,
7262	}
7263}
7264