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.
2311//
2312// API parameter values that are decorated as "sensitive" in the API will not
2313// be included in the string output. The member name will be present, but the
2314// value will be replaced with "sensitive".
2315func (s BackendAPIAppSyncAuthSettings) String() string {
2316	return awsutil.Prettify(s)
2317}
2318
2319// GoString returns the string representation.
2320//
2321// API parameter values that are decorated as "sensitive" in the API will not
2322// be included in the string output. The member name will be present, but the
2323// value will be replaced with "sensitive".
2324func (s BackendAPIAppSyncAuthSettings) GoString() string {
2325	return s.String()
2326}
2327
2328// SetCognitoUserPoolId sets the CognitoUserPoolId field's value.
2329func (s *BackendAPIAppSyncAuthSettings) SetCognitoUserPoolId(v string) *BackendAPIAppSyncAuthSettings {
2330	s.CognitoUserPoolId = &v
2331	return s
2332}
2333
2334// SetDescription sets the Description field's value.
2335func (s *BackendAPIAppSyncAuthSettings) SetDescription(v string) *BackendAPIAppSyncAuthSettings {
2336	s.Description = &v
2337	return s
2338}
2339
2340// SetExpirationTime sets the ExpirationTime field's value.
2341func (s *BackendAPIAppSyncAuthSettings) SetExpirationTime(v float64) *BackendAPIAppSyncAuthSettings {
2342	s.ExpirationTime = &v
2343	return s
2344}
2345
2346// SetOpenIDAuthTTL sets the OpenIDAuthTTL field's value.
2347func (s *BackendAPIAppSyncAuthSettings) SetOpenIDAuthTTL(v string) *BackendAPIAppSyncAuthSettings {
2348	s.OpenIDAuthTTL = &v
2349	return s
2350}
2351
2352// SetOpenIDClientId sets the OpenIDClientId field's value.
2353func (s *BackendAPIAppSyncAuthSettings) SetOpenIDClientId(v string) *BackendAPIAppSyncAuthSettings {
2354	s.OpenIDClientId = &v
2355	return s
2356}
2357
2358// SetOpenIDIatTTL sets the OpenIDIatTTL field's value.
2359func (s *BackendAPIAppSyncAuthSettings) SetOpenIDIatTTL(v string) *BackendAPIAppSyncAuthSettings {
2360	s.OpenIDIatTTL = &v
2361	return s
2362}
2363
2364// SetOpenIDIssueURL sets the OpenIDIssueURL field's value.
2365func (s *BackendAPIAppSyncAuthSettings) SetOpenIDIssueURL(v string) *BackendAPIAppSyncAuthSettings {
2366	s.OpenIDIssueURL = &v
2367	return s
2368}
2369
2370// SetOpenIDProviderName sets the OpenIDProviderName field's value.
2371func (s *BackendAPIAppSyncAuthSettings) SetOpenIDProviderName(v string) *BackendAPIAppSyncAuthSettings {
2372	s.OpenIDProviderName = &v
2373	return s
2374}
2375
2376// Describes the auth types for your configured data models.
2377type BackendAPIAuthType struct {
2378	_ struct{} `type:"structure"`
2379
2380	// Describes the authentication mode.
2381	Mode *string `locationName:"mode" type:"string" enum:"Mode"`
2382
2383	// Describes settings for the authentication mode.
2384	Settings *BackendAPIAppSyncAuthSettings `locationName:"settings" type:"structure"`
2385}
2386
2387// String returns the string representation.
2388//
2389// API parameter values that are decorated as "sensitive" in the API will not
2390// be included in the string output. The member name will be present, but the
2391// value will be replaced with "sensitive".
2392func (s BackendAPIAuthType) String() string {
2393	return awsutil.Prettify(s)
2394}
2395
2396// GoString returns the string representation.
2397//
2398// API parameter values that are decorated as "sensitive" in the API will not
2399// be included in the string output. The member name will be present, but the
2400// value will be replaced with "sensitive".
2401func (s BackendAPIAuthType) GoString() string {
2402	return s.String()
2403}
2404
2405// SetMode sets the Mode field's value.
2406func (s *BackendAPIAuthType) SetMode(v string) *BackendAPIAuthType {
2407	s.Mode = &v
2408	return s
2409}
2410
2411// SetSettings sets the Settings field's value.
2412func (s *BackendAPIAuthType) SetSettings(v *BackendAPIAppSyncAuthSettings) *BackendAPIAuthType {
2413	s.Settings = v
2414	return s
2415}
2416
2417// Describes the conflict resolution configuration for your data model configured
2418// in your Amplify project.
2419type BackendAPIConflictResolution struct {
2420	_ struct{} `type:"structure"`
2421
2422	// The strategy for conflict resolution.
2423	ResolutionStrategy *string `locationName:"resolutionStrategy" type:"string" enum:"ResolutionStrategy"`
2424}
2425
2426// String returns the string representation.
2427//
2428// API parameter values that are decorated as "sensitive" in the API will not
2429// be included in the string output. The member name will be present, but the
2430// value will be replaced with "sensitive".
2431func (s BackendAPIConflictResolution) String() string {
2432	return awsutil.Prettify(s)
2433}
2434
2435// GoString returns the string representation.
2436//
2437// API parameter values that are decorated as "sensitive" in the API will not
2438// be included in the string output. The member name will be present, but the
2439// value will be replaced with "sensitive".
2440func (s BackendAPIConflictResolution) GoString() string {
2441	return s.String()
2442}
2443
2444// SetResolutionStrategy sets the ResolutionStrategy field's value.
2445func (s *BackendAPIConflictResolution) SetResolutionStrategy(v string) *BackendAPIConflictResolution {
2446	s.ResolutionStrategy = &v
2447	return s
2448}
2449
2450// The resource config for the data model, configured as a part of the Amplify
2451// project.
2452type BackendAPIResourceConfig struct {
2453	_ struct{} `type:"structure"`
2454
2455	// Additional authentication methods used to interact with your data models.
2456	AdditionalAuthTypes []*BackendAPIAuthType `locationName:"additionalAuthTypes" type:"list"`
2457
2458	// The API name used to interact with the data model, configured as a part of
2459	// your Amplify project.
2460	ApiName *string `locationName:"apiName" type:"string"`
2461
2462	// The conflict resolution strategy for your data stored in the data models.
2463	ConflictResolution *BackendAPIConflictResolution `locationName:"conflictResolution" type:"structure"`
2464
2465	// The default authentication type for interacting with the configured data
2466	// models in your Amplify project.
2467	DefaultAuthType *BackendAPIAuthType `locationName:"defaultAuthType" type:"structure"`
2468
2469	// The service used to provision and interact with the data model.
2470	Service *string `locationName:"service" type:"string"`
2471
2472	// The definition of the data model in the annotated transform of the GraphQL
2473	// schema.
2474	TransformSchema *string `locationName:"transformSchema" type:"string"`
2475}
2476
2477// String returns the string representation.
2478//
2479// API parameter values that are decorated as "sensitive" in the API will not
2480// be included in the string output. The member name will be present, but the
2481// value will be replaced with "sensitive".
2482func (s BackendAPIResourceConfig) String() string {
2483	return awsutil.Prettify(s)
2484}
2485
2486// GoString returns the string representation.
2487//
2488// API parameter values that are decorated as "sensitive" in the API will not
2489// be included in the string output. The member name will be present, but the
2490// value will be replaced with "sensitive".
2491func (s BackendAPIResourceConfig) GoString() string {
2492	return s.String()
2493}
2494
2495// SetAdditionalAuthTypes sets the AdditionalAuthTypes field's value.
2496func (s *BackendAPIResourceConfig) SetAdditionalAuthTypes(v []*BackendAPIAuthType) *BackendAPIResourceConfig {
2497	s.AdditionalAuthTypes = v
2498	return s
2499}
2500
2501// SetApiName sets the ApiName field's value.
2502func (s *BackendAPIResourceConfig) SetApiName(v string) *BackendAPIResourceConfig {
2503	s.ApiName = &v
2504	return s
2505}
2506
2507// SetConflictResolution sets the ConflictResolution field's value.
2508func (s *BackendAPIResourceConfig) SetConflictResolution(v *BackendAPIConflictResolution) *BackendAPIResourceConfig {
2509	s.ConflictResolution = v
2510	return s
2511}
2512
2513// SetDefaultAuthType sets the DefaultAuthType field's value.
2514func (s *BackendAPIResourceConfig) SetDefaultAuthType(v *BackendAPIAuthType) *BackendAPIResourceConfig {
2515	s.DefaultAuthType = v
2516	return s
2517}
2518
2519// SetService sets the Service field's value.
2520func (s *BackendAPIResourceConfig) SetService(v string) *BackendAPIResourceConfig {
2521	s.Service = &v
2522	return s
2523}
2524
2525// SetTransformSchema sets the TransformSchema field's value.
2526func (s *BackendAPIResourceConfig) SetTransformSchema(v string) *BackendAPIResourceConfig {
2527	s.TransformSchema = &v
2528	return s
2529}
2530
2531// Describes Apple social federation configurations for allowing your app users
2532// to sign in using OAuth.
2533type BackendAuthAppleProviderConfig struct {
2534	_ struct{} `type:"structure"`
2535
2536	// Describes the client_id (also called Services ID) that comes from Apple.
2537	ClientId *string `locationName:"client_id" type:"string"`
2538
2539	// Describes the key_id that comes from Apple.
2540	KeyId *string `locationName:"key_id" type:"string"`
2541
2542	// Describes the private_key that comes from Apple.
2543	PrivateKey *string `locationName:"private_key" type:"string"`
2544
2545	// Describes the team_id that comes from Apple.
2546	TeamId *string `locationName:"team_id" type:"string"`
2547}
2548
2549// String returns the string representation.
2550//
2551// API parameter values that are decorated as "sensitive" in the API will not
2552// be included in the string output. The member name will be present, but the
2553// value will be replaced with "sensitive".
2554func (s BackendAuthAppleProviderConfig) String() string {
2555	return awsutil.Prettify(s)
2556}
2557
2558// GoString returns the string representation.
2559//
2560// API parameter values that are decorated as "sensitive" in the API will not
2561// be included in the string output. The member name will be present, but the
2562// value will be replaced with "sensitive".
2563func (s BackendAuthAppleProviderConfig) GoString() string {
2564	return s.String()
2565}
2566
2567// SetClientId sets the ClientId field's value.
2568func (s *BackendAuthAppleProviderConfig) SetClientId(v string) *BackendAuthAppleProviderConfig {
2569	s.ClientId = &v
2570	return s
2571}
2572
2573// SetKeyId sets the KeyId field's value.
2574func (s *BackendAuthAppleProviderConfig) SetKeyId(v string) *BackendAuthAppleProviderConfig {
2575	s.KeyId = &v
2576	return s
2577}
2578
2579// SetPrivateKey sets the PrivateKey field's value.
2580func (s *BackendAuthAppleProviderConfig) SetPrivateKey(v string) *BackendAuthAppleProviderConfig {
2581	s.PrivateKey = &v
2582	return s
2583}
2584
2585// SetTeamId sets the TeamId field's value.
2586func (s *BackendAuthAppleProviderConfig) SetTeamId(v string) *BackendAuthAppleProviderConfig {
2587	s.TeamId = &v
2588	return s
2589}
2590
2591// Describes third-party social federation configurations for allowing your
2592// app users to sign in using OAuth.
2593type BackendAuthSocialProviderConfig struct {
2594	_ struct{} `type:"structure"`
2595
2596	// Describes the client_id, which can be obtained from the third-party social
2597	// federation provider.
2598	ClientId *string `locationName:"client_id" type:"string"`
2599
2600	// Describes the client_secret, which can be obtained from third-party social
2601	// federation providers.
2602	ClientSecret *string `locationName:"client_secret" type:"string"`
2603}
2604
2605// String returns the string representation.
2606//
2607// API parameter values that are decorated as "sensitive" in the API will not
2608// be included in the string output. The member name will be present, but the
2609// value will be replaced with "sensitive".
2610func (s BackendAuthSocialProviderConfig) String() string {
2611	return awsutil.Prettify(s)
2612}
2613
2614// GoString returns the string representation.
2615//
2616// API parameter values that are decorated as "sensitive" in the API will not
2617// be included in the string output. The member name will be present, but the
2618// value will be replaced with "sensitive".
2619func (s BackendAuthSocialProviderConfig) GoString() string {
2620	return s.String()
2621}
2622
2623// SetClientId sets the ClientId field's value.
2624func (s *BackendAuthSocialProviderConfig) SetClientId(v string) *BackendAuthSocialProviderConfig {
2625	s.ClientId = &v
2626	return s
2627}
2628
2629// SetClientSecret sets the ClientSecret field's value.
2630func (s *BackendAuthSocialProviderConfig) SetClientSecret(v string) *BackendAuthSocialProviderConfig {
2631	s.ClientSecret = &v
2632	return s
2633}
2634
2635// The response object for this operation.
2636type BackendJobRespObj struct {
2637	_ struct{} `type:"structure"`
2638
2639	// The app ID.
2640	//
2641	// AppId is a required field
2642	AppId *string `locationName:"appId" type:"string" required:"true"`
2643
2644	// The name of the backend environment.
2645	//
2646	// BackendEnvironmentName is a required field
2647	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string" required:"true"`
2648
2649	// The time when the job was created.
2650	CreateTime *string `locationName:"createTime" type:"string"`
2651
2652	// If the request fails, this error is returned.
2653	Error *string `locationName:"error" type:"string"`
2654
2655	// The ID for the job.
2656	JobId *string `locationName:"jobId" type:"string"`
2657
2658	// The name of the operation.
2659	Operation *string `locationName:"operation" type:"string"`
2660
2661	// The current status of the request.
2662	Status *string `locationName:"status" type:"string"`
2663
2664	// The time when the job was last updated.
2665	UpdateTime *string `locationName:"updateTime" type:"string"`
2666}
2667
2668// String returns the string representation.
2669//
2670// API parameter values that are decorated as "sensitive" in the API will not
2671// be included in the string output. The member name will be present, but the
2672// value will be replaced with "sensitive".
2673func (s BackendJobRespObj) String() string {
2674	return awsutil.Prettify(s)
2675}
2676
2677// GoString returns the string representation.
2678//
2679// API parameter values that are decorated as "sensitive" in the API will not
2680// be included in the string output. The member name will be present, but the
2681// value will be replaced with "sensitive".
2682func (s BackendJobRespObj) GoString() string {
2683	return s.String()
2684}
2685
2686// SetAppId sets the AppId field's value.
2687func (s *BackendJobRespObj) SetAppId(v string) *BackendJobRespObj {
2688	s.AppId = &v
2689	return s
2690}
2691
2692// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
2693func (s *BackendJobRespObj) SetBackendEnvironmentName(v string) *BackendJobRespObj {
2694	s.BackendEnvironmentName = &v
2695	return s
2696}
2697
2698// SetCreateTime sets the CreateTime field's value.
2699func (s *BackendJobRespObj) SetCreateTime(v string) *BackendJobRespObj {
2700	s.CreateTime = &v
2701	return s
2702}
2703
2704// SetError sets the Error field's value.
2705func (s *BackendJobRespObj) SetError(v string) *BackendJobRespObj {
2706	s.Error = &v
2707	return s
2708}
2709
2710// SetJobId sets the JobId field's value.
2711func (s *BackendJobRespObj) SetJobId(v string) *BackendJobRespObj {
2712	s.JobId = &v
2713	return s
2714}
2715
2716// SetOperation sets the Operation field's value.
2717func (s *BackendJobRespObj) SetOperation(v string) *BackendJobRespObj {
2718	s.Operation = &v
2719	return s
2720}
2721
2722// SetStatus sets the Status field's value.
2723func (s *BackendJobRespObj) SetStatus(v string) *BackendJobRespObj {
2724	s.Status = &v
2725	return s
2726}
2727
2728// SetUpdateTime sets the UpdateTime field's value.
2729func (s *BackendJobRespObj) SetUpdateTime(v string) *BackendJobRespObj {
2730	s.UpdateTime = &v
2731	return s
2732}
2733
2734// An error returned if a request is not formed properly.
2735type BadRequestException struct {
2736	_            struct{}                  `type:"structure"`
2737	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
2738
2739	// An error message to inform that the request failed.
2740	Message_ *string `locationName:"message" type:"string"`
2741}
2742
2743// String returns the string representation.
2744//
2745// API parameter values that are decorated as "sensitive" in the API will not
2746// be included in the string output. The member name will be present, but the
2747// value will be replaced with "sensitive".
2748func (s BadRequestException) String() string {
2749	return awsutil.Prettify(s)
2750}
2751
2752// GoString returns the string representation.
2753//
2754// API parameter values that are decorated as "sensitive" in the API will not
2755// be included in the string output. The member name will be present, but the
2756// value will be replaced with "sensitive".
2757func (s BadRequestException) GoString() string {
2758	return s.String()
2759}
2760
2761func newErrorBadRequestException(v protocol.ResponseMetadata) error {
2762	return &BadRequestException{
2763		RespMetadata: v,
2764	}
2765}
2766
2767// Code returns the exception type name.
2768func (s *BadRequestException) Code() string {
2769	return "BadRequestException"
2770}
2771
2772// Message returns the exception's message.
2773func (s *BadRequestException) Message() string {
2774	if s.Message_ != nil {
2775		return *s.Message_
2776	}
2777	return ""
2778}
2779
2780// OrigErr always returns nil, satisfies awserr.Error interface.
2781func (s *BadRequestException) OrigErr() error {
2782	return nil
2783}
2784
2785func (s *BadRequestException) Error() string {
2786	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
2787}
2788
2789// Status code returns the HTTP status code for the request's response error.
2790func (s *BadRequestException) StatusCode() int {
2791	return s.RespMetadata.StatusCode
2792}
2793
2794// RequestID returns the service's response RequestID for request.
2795func (s *BadRequestException) RequestID() string {
2796	return s.RespMetadata.RequestID
2797}
2798
2799type CloneBackendInput struct {
2800	_ struct{} `type:"structure"`
2801
2802	// AppId is a required field
2803	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
2804
2805	// BackendEnvironmentName is a required field
2806	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
2807
2808	// TargetEnvironmentName is a required field
2809	TargetEnvironmentName *string `locationName:"targetEnvironmentName" type:"string" required:"true"`
2810}
2811
2812// String returns the string representation.
2813//
2814// API parameter values that are decorated as "sensitive" in the API will not
2815// be included in the string output. The member name will be present, but the
2816// value will be replaced with "sensitive".
2817func (s CloneBackendInput) String() string {
2818	return awsutil.Prettify(s)
2819}
2820
2821// GoString returns the string representation.
2822//
2823// API parameter values that are decorated as "sensitive" in the API will not
2824// be included in the string output. The member name will be present, but the
2825// value will be replaced with "sensitive".
2826func (s CloneBackendInput) GoString() string {
2827	return s.String()
2828}
2829
2830// Validate inspects the fields of the type to determine if they are valid.
2831func (s *CloneBackendInput) Validate() error {
2832	invalidParams := request.ErrInvalidParams{Context: "CloneBackendInput"}
2833	if s.AppId == nil {
2834		invalidParams.Add(request.NewErrParamRequired("AppId"))
2835	}
2836	if s.AppId != nil && len(*s.AppId) < 1 {
2837		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
2838	}
2839	if s.BackendEnvironmentName == nil {
2840		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
2841	}
2842	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
2843		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
2844	}
2845	if s.TargetEnvironmentName == nil {
2846		invalidParams.Add(request.NewErrParamRequired("TargetEnvironmentName"))
2847	}
2848
2849	if invalidParams.Len() > 0 {
2850		return invalidParams
2851	}
2852	return nil
2853}
2854
2855// SetAppId sets the AppId field's value.
2856func (s *CloneBackendInput) SetAppId(v string) *CloneBackendInput {
2857	s.AppId = &v
2858	return s
2859}
2860
2861// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
2862func (s *CloneBackendInput) SetBackendEnvironmentName(v string) *CloneBackendInput {
2863	s.BackendEnvironmentName = &v
2864	return s
2865}
2866
2867// SetTargetEnvironmentName sets the TargetEnvironmentName field's value.
2868func (s *CloneBackendInput) SetTargetEnvironmentName(v string) *CloneBackendInput {
2869	s.TargetEnvironmentName = &v
2870	return s
2871}
2872
2873type CloneBackendOutput struct {
2874	_ struct{} `type:"structure"`
2875
2876	AppId *string `locationName:"appId" type:"string"`
2877
2878	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
2879
2880	Error *string `locationName:"error" type:"string"`
2881
2882	JobId *string `locationName:"jobId" type:"string"`
2883
2884	Operation *string `locationName:"operation" type:"string"`
2885
2886	Status *string `locationName:"status" type:"string"`
2887}
2888
2889// String returns the string representation.
2890//
2891// API parameter values that are decorated as "sensitive" in the API will not
2892// be included in the string output. The member name will be present, but the
2893// value will be replaced with "sensitive".
2894func (s CloneBackendOutput) String() string {
2895	return awsutil.Prettify(s)
2896}
2897
2898// GoString returns the string representation.
2899//
2900// API parameter values that are decorated as "sensitive" in the API will not
2901// be included in the string output. The member name will be present, but the
2902// value will be replaced with "sensitive".
2903func (s CloneBackendOutput) GoString() string {
2904	return s.String()
2905}
2906
2907// SetAppId sets the AppId field's value.
2908func (s *CloneBackendOutput) SetAppId(v string) *CloneBackendOutput {
2909	s.AppId = &v
2910	return s
2911}
2912
2913// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
2914func (s *CloneBackendOutput) SetBackendEnvironmentName(v string) *CloneBackendOutput {
2915	s.BackendEnvironmentName = &v
2916	return s
2917}
2918
2919// SetError sets the Error field's value.
2920func (s *CloneBackendOutput) SetError(v string) *CloneBackendOutput {
2921	s.Error = &v
2922	return s
2923}
2924
2925// SetJobId sets the JobId field's value.
2926func (s *CloneBackendOutput) SetJobId(v string) *CloneBackendOutput {
2927	s.JobId = &v
2928	return s
2929}
2930
2931// SetOperation sets the Operation field's value.
2932func (s *CloneBackendOutput) SetOperation(v string) *CloneBackendOutput {
2933	s.Operation = &v
2934	return s
2935}
2936
2937// SetStatus sets the Status field's value.
2938func (s *CloneBackendOutput) SetStatus(v string) *CloneBackendOutput {
2939	s.Status = &v
2940	return s
2941}
2942
2943type CreateBackendAPIInput struct {
2944	_ struct{} `type:"structure"`
2945
2946	// AppId is a required field
2947	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
2948
2949	// BackendEnvironmentName is a required field
2950	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string" required:"true"`
2951
2952	// The resource config for the data model, configured as a part of the Amplify
2953	// project.
2954	//
2955	// ResourceConfig is a required field
2956	ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure" required:"true"`
2957
2958	// ResourceName is a required field
2959	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
2960}
2961
2962// String returns the string representation.
2963//
2964// API parameter values that are decorated as "sensitive" in the API will not
2965// be included in the string output. The member name will be present, but the
2966// value will be replaced with "sensitive".
2967func (s CreateBackendAPIInput) String() string {
2968	return awsutil.Prettify(s)
2969}
2970
2971// GoString returns the string representation.
2972//
2973// API parameter values that are decorated as "sensitive" in the API will not
2974// be included in the string output. The member name will be present, but the
2975// value will be replaced with "sensitive".
2976func (s CreateBackendAPIInput) GoString() string {
2977	return s.String()
2978}
2979
2980// Validate inspects the fields of the type to determine if they are valid.
2981func (s *CreateBackendAPIInput) Validate() error {
2982	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAPIInput"}
2983	if s.AppId == nil {
2984		invalidParams.Add(request.NewErrParamRequired("AppId"))
2985	}
2986	if s.AppId != nil && len(*s.AppId) < 1 {
2987		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
2988	}
2989	if s.BackendEnvironmentName == nil {
2990		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
2991	}
2992	if s.ResourceConfig == nil {
2993		invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
2994	}
2995	if s.ResourceName == nil {
2996		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
2997	}
2998
2999	if invalidParams.Len() > 0 {
3000		return invalidParams
3001	}
3002	return nil
3003}
3004
3005// SetAppId sets the AppId field's value.
3006func (s *CreateBackendAPIInput) SetAppId(v string) *CreateBackendAPIInput {
3007	s.AppId = &v
3008	return s
3009}
3010
3011// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
3012func (s *CreateBackendAPIInput) SetBackendEnvironmentName(v string) *CreateBackendAPIInput {
3013	s.BackendEnvironmentName = &v
3014	return s
3015}
3016
3017// SetResourceConfig sets the ResourceConfig field's value.
3018func (s *CreateBackendAPIInput) SetResourceConfig(v *BackendAPIResourceConfig) *CreateBackendAPIInput {
3019	s.ResourceConfig = v
3020	return s
3021}
3022
3023// SetResourceName sets the ResourceName field's value.
3024func (s *CreateBackendAPIInput) SetResourceName(v string) *CreateBackendAPIInput {
3025	s.ResourceName = &v
3026	return s
3027}
3028
3029type CreateBackendAPIOutput struct {
3030	_ struct{} `type:"structure"`
3031
3032	AppId *string `locationName:"appId" type:"string"`
3033
3034	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
3035
3036	Error *string `locationName:"error" type:"string"`
3037
3038	JobId *string `locationName:"jobId" type:"string"`
3039
3040	Operation *string `locationName:"operation" type:"string"`
3041
3042	Status *string `locationName:"status" type:"string"`
3043}
3044
3045// String returns the string representation.
3046//
3047// API parameter values that are decorated as "sensitive" in the API will not
3048// be included in the string output. The member name will be present, but the
3049// value will be replaced with "sensitive".
3050func (s CreateBackendAPIOutput) String() string {
3051	return awsutil.Prettify(s)
3052}
3053
3054// GoString returns the string representation.
3055//
3056// API parameter values that are decorated as "sensitive" in the API will not
3057// be included in the string output. The member name will be present, but the
3058// value will be replaced with "sensitive".
3059func (s CreateBackendAPIOutput) GoString() string {
3060	return s.String()
3061}
3062
3063// SetAppId sets the AppId field's value.
3064func (s *CreateBackendAPIOutput) SetAppId(v string) *CreateBackendAPIOutput {
3065	s.AppId = &v
3066	return s
3067}
3068
3069// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
3070func (s *CreateBackendAPIOutput) SetBackendEnvironmentName(v string) *CreateBackendAPIOutput {
3071	s.BackendEnvironmentName = &v
3072	return s
3073}
3074
3075// SetError sets the Error field's value.
3076func (s *CreateBackendAPIOutput) SetError(v string) *CreateBackendAPIOutput {
3077	s.Error = &v
3078	return s
3079}
3080
3081// SetJobId sets the JobId field's value.
3082func (s *CreateBackendAPIOutput) SetJobId(v string) *CreateBackendAPIOutput {
3083	s.JobId = &v
3084	return s
3085}
3086
3087// SetOperation sets the Operation field's value.
3088func (s *CreateBackendAPIOutput) SetOperation(v string) *CreateBackendAPIOutput {
3089	s.Operation = &v
3090	return s
3091}
3092
3093// SetStatus sets the Status field's value.
3094func (s *CreateBackendAPIOutput) SetStatus(v string) *CreateBackendAPIOutput {
3095	s.Status = &v
3096	return s
3097}
3098
3099// Describes the forgot password policy for authenticating into the Amplify
3100// app.
3101type CreateBackendAuthForgotPasswordConfig struct {
3102	_ struct{} `type:"structure"`
3103
3104	// Describes which mode to use (either SMS or email) to deliver messages to
3105	// app users who want to recover their password.
3106	//
3107	// DeliveryMethod is a required field
3108	DeliveryMethod *string `locationName:"deliveryMethod" type:"string" required:"true" enum:"DeliveryMethod"`
3109
3110	// The configuration for the email sent when an app user forgets their password.
3111	EmailSettings *EmailSettings `locationName:"emailSettings" type:"structure"`
3112
3113	// The configuration for the SMS message sent when an app user forgets their
3114	// password.
3115	SmsSettings *SmsSettings `locationName:"smsSettings" type:"structure"`
3116}
3117
3118// String returns the string representation.
3119//
3120// API parameter values that are decorated as "sensitive" in the API will not
3121// be included in the string output. The member name will be present, but the
3122// value will be replaced with "sensitive".
3123func (s CreateBackendAuthForgotPasswordConfig) String() string {
3124	return awsutil.Prettify(s)
3125}
3126
3127// GoString returns the string representation.
3128//
3129// API parameter values that are decorated as "sensitive" in the API will not
3130// be included in the string output. The member name will be present, but the
3131// value will be replaced with "sensitive".
3132func (s CreateBackendAuthForgotPasswordConfig) GoString() string {
3133	return s.String()
3134}
3135
3136// Validate inspects the fields of the type to determine if they are valid.
3137func (s *CreateBackendAuthForgotPasswordConfig) Validate() error {
3138	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthForgotPasswordConfig"}
3139	if s.DeliveryMethod == nil {
3140		invalidParams.Add(request.NewErrParamRequired("DeliveryMethod"))
3141	}
3142
3143	if invalidParams.Len() > 0 {
3144		return invalidParams
3145	}
3146	return nil
3147}
3148
3149// SetDeliveryMethod sets the DeliveryMethod field's value.
3150func (s *CreateBackendAuthForgotPasswordConfig) SetDeliveryMethod(v string) *CreateBackendAuthForgotPasswordConfig {
3151	s.DeliveryMethod = &v
3152	return s
3153}
3154
3155// SetEmailSettings sets the EmailSettings field's value.
3156func (s *CreateBackendAuthForgotPasswordConfig) SetEmailSettings(v *EmailSettings) *CreateBackendAuthForgotPasswordConfig {
3157	s.EmailSettings = v
3158	return s
3159}
3160
3161// SetSmsSettings sets the SmsSettings field's value.
3162func (s *CreateBackendAuthForgotPasswordConfig) SetSmsSettings(v *SmsSettings) *CreateBackendAuthForgotPasswordConfig {
3163	s.SmsSettings = v
3164	return s
3165}
3166
3167// Describes authorization configurations for the auth resources, configured
3168// as a part of your Amplify project.
3169type CreateBackendAuthIdentityPoolConfig struct {
3170	_ struct{} `type:"structure"`
3171
3172	// Name of the Amazon Cognito identity pool used for authorization.
3173	//
3174	// IdentityPoolName is a required field
3175	IdentityPoolName *string `locationName:"identityPoolName" type:"string" required:"true"`
3176
3177	// Set to true or false based on whether you want to enable guest authorization
3178	// to your Amplify app.
3179	//
3180	// UnauthenticatedLogin is a required field
3181	UnauthenticatedLogin *bool `locationName:"unauthenticatedLogin" type:"boolean" required:"true"`
3182}
3183
3184// String returns the string representation.
3185//
3186// API parameter values that are decorated as "sensitive" in the API will not
3187// be included in the string output. The member name will be present, but the
3188// value will be replaced with "sensitive".
3189func (s CreateBackendAuthIdentityPoolConfig) String() string {
3190	return awsutil.Prettify(s)
3191}
3192
3193// GoString returns the string representation.
3194//
3195// API parameter values that are decorated as "sensitive" in the API will not
3196// be included in the string output. The member name will be present, but the
3197// value will be replaced with "sensitive".
3198func (s CreateBackendAuthIdentityPoolConfig) GoString() string {
3199	return s.String()
3200}
3201
3202// Validate inspects the fields of the type to determine if they are valid.
3203func (s *CreateBackendAuthIdentityPoolConfig) Validate() error {
3204	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthIdentityPoolConfig"}
3205	if s.IdentityPoolName == nil {
3206		invalidParams.Add(request.NewErrParamRequired("IdentityPoolName"))
3207	}
3208	if s.UnauthenticatedLogin == nil {
3209		invalidParams.Add(request.NewErrParamRequired("UnauthenticatedLogin"))
3210	}
3211
3212	if invalidParams.Len() > 0 {
3213		return invalidParams
3214	}
3215	return nil
3216}
3217
3218// SetIdentityPoolName sets the IdentityPoolName field's value.
3219func (s *CreateBackendAuthIdentityPoolConfig) SetIdentityPoolName(v string) *CreateBackendAuthIdentityPoolConfig {
3220	s.IdentityPoolName = &v
3221	return s
3222}
3223
3224// SetUnauthenticatedLogin sets the UnauthenticatedLogin field's value.
3225func (s *CreateBackendAuthIdentityPoolConfig) SetUnauthenticatedLogin(v bool) *CreateBackendAuthIdentityPoolConfig {
3226	s.UnauthenticatedLogin = &v
3227	return s
3228}
3229
3230type CreateBackendAuthInput struct {
3231	_ struct{} `type:"structure"`
3232
3233	// AppId is a required field
3234	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
3235
3236	// BackendEnvironmentName is a required field
3237	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string" required:"true"`
3238
3239	// Defines the resource configuration when creating an auth resource in your
3240	// Amplify project.
3241	//
3242	// ResourceConfig is a required field
3243	ResourceConfig *CreateBackendAuthResourceConfig `locationName:"resourceConfig" type:"structure" required:"true"`
3244
3245	// ResourceName is a required field
3246	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
3247}
3248
3249// String returns the string representation.
3250//
3251// API parameter values that are decorated as "sensitive" in the API will not
3252// be included in the string output. The member name will be present, but the
3253// value will be replaced with "sensitive".
3254func (s CreateBackendAuthInput) String() string {
3255	return awsutil.Prettify(s)
3256}
3257
3258// GoString returns the string representation.
3259//
3260// API parameter values that are decorated as "sensitive" in the API will not
3261// be included in the string output. The member name will be present, but the
3262// value will be replaced with "sensitive".
3263func (s CreateBackendAuthInput) GoString() string {
3264	return s.String()
3265}
3266
3267// Validate inspects the fields of the type to determine if they are valid.
3268func (s *CreateBackendAuthInput) Validate() error {
3269	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthInput"}
3270	if s.AppId == nil {
3271		invalidParams.Add(request.NewErrParamRequired("AppId"))
3272	}
3273	if s.AppId != nil && len(*s.AppId) < 1 {
3274		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
3275	}
3276	if s.BackendEnvironmentName == nil {
3277		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
3278	}
3279	if s.ResourceConfig == nil {
3280		invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
3281	}
3282	if s.ResourceName == nil {
3283		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
3284	}
3285	if s.ResourceConfig != nil {
3286		if err := s.ResourceConfig.Validate(); err != nil {
3287			invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
3288		}
3289	}
3290
3291	if invalidParams.Len() > 0 {
3292		return invalidParams
3293	}
3294	return nil
3295}
3296
3297// SetAppId sets the AppId field's value.
3298func (s *CreateBackendAuthInput) SetAppId(v string) *CreateBackendAuthInput {
3299	s.AppId = &v
3300	return s
3301}
3302
3303// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
3304func (s *CreateBackendAuthInput) SetBackendEnvironmentName(v string) *CreateBackendAuthInput {
3305	s.BackendEnvironmentName = &v
3306	return s
3307}
3308
3309// SetResourceConfig sets the ResourceConfig field's value.
3310func (s *CreateBackendAuthInput) SetResourceConfig(v *CreateBackendAuthResourceConfig) *CreateBackendAuthInput {
3311	s.ResourceConfig = v
3312	return s
3313}
3314
3315// SetResourceName sets the ResourceName field's value.
3316func (s *CreateBackendAuthInput) SetResourceName(v string) *CreateBackendAuthInput {
3317	s.ResourceName = &v
3318	return s
3319}
3320
3321// Describes whether to apply multi-factor authentication policies for your
3322// Amazon Cognito user pool configured as a part of your Amplify project.
3323type CreateBackendAuthMFAConfig struct {
3324	_ struct{} `type:"structure"`
3325
3326	// Describes whether MFA should be [ON, OFF, or OPTIONAL] for authentication
3327	// in your Amplify project.
3328	//
3329	// MFAMode is a required field
3330	MFAMode *string `type:"string" required:"true" enum:"MFAMode"`
3331
3332	// Describes the configuration settings and methods for your Amplify app users
3333	// to use MFA.
3334	Settings *Settings `locationName:"settings" type:"structure"`
3335}
3336
3337// String returns the string representation.
3338//
3339// API parameter values that are decorated as "sensitive" in the API will not
3340// be included in the string output. The member name will be present, but the
3341// value will be replaced with "sensitive".
3342func (s CreateBackendAuthMFAConfig) String() string {
3343	return awsutil.Prettify(s)
3344}
3345
3346// GoString returns the string representation.
3347//
3348// API parameter values that are decorated as "sensitive" in the API will not
3349// be included in the string output. The member name will be present, but the
3350// value will be replaced with "sensitive".
3351func (s CreateBackendAuthMFAConfig) GoString() string {
3352	return s.String()
3353}
3354
3355// Validate inspects the fields of the type to determine if they are valid.
3356func (s *CreateBackendAuthMFAConfig) Validate() error {
3357	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthMFAConfig"}
3358	if s.MFAMode == nil {
3359		invalidParams.Add(request.NewErrParamRequired("MFAMode"))
3360	}
3361
3362	if invalidParams.Len() > 0 {
3363		return invalidParams
3364	}
3365	return nil
3366}
3367
3368// SetMFAMode sets the MFAMode field's value.
3369func (s *CreateBackendAuthMFAConfig) SetMFAMode(v string) *CreateBackendAuthMFAConfig {
3370	s.MFAMode = &v
3371	return s
3372}
3373
3374// SetSettings sets the Settings field's value.
3375func (s *CreateBackendAuthMFAConfig) SetSettings(v *Settings) *CreateBackendAuthMFAConfig {
3376	s.Settings = v
3377	return s
3378}
3379
3380// Creates the OAuth configuration for your Amplify project.
3381type CreateBackendAuthOAuthConfig struct {
3382	_ struct{} `type:"structure"`
3383
3384	// The domain prefix for your Amplify app.
3385	DomainPrefix *string `locationName:"domainPrefix" type:"string"`
3386
3387	// The OAuth grant type that you use to allow app users to authenticate from
3388	// your Amplify app.
3389	//
3390	// OAuthGrantType is a required field
3391	OAuthGrantType *string `locationName:"oAuthGrantType" type:"string" required:"true" enum:"OAuthGrantType"`
3392
3393	// List of OAuth-related flows used to allow your app users to authenticate
3394	// from your Amplify app.
3395	//
3396	// OAuthScopes is a required field
3397	OAuthScopes []*string `locationName:"oAuthScopes" type:"list" required:"true"`
3398
3399	// The redirected URI for signing in to your Amplify app.
3400	//
3401	// RedirectSignInURIs is a required field
3402	RedirectSignInURIs []*string `locationName:"redirectSignInURIs" type:"list" required:"true"`
3403
3404	// Redirect URLs that OAuth uses when a user signs out of an Amplify app.
3405	//
3406	// RedirectSignOutURIs is a required field
3407	RedirectSignOutURIs []*string `locationName:"redirectSignOutURIs" type:"list" required:"true"`
3408
3409	// The settings for using social providers to access your Amplify app.
3410	SocialProviderSettings *SocialProviderSettings `locationName:"socialProviderSettings" type:"structure"`
3411}
3412
3413// String returns the string representation.
3414//
3415// API parameter values that are decorated as "sensitive" in the API will not
3416// be included in the string output. The member name will be present, but the
3417// value will be replaced with "sensitive".
3418func (s CreateBackendAuthOAuthConfig) String() string {
3419	return awsutil.Prettify(s)
3420}
3421
3422// GoString returns the string representation.
3423//
3424// API parameter values that are decorated as "sensitive" in the API will not
3425// be included in the string output. The member name will be present, but the
3426// value will be replaced with "sensitive".
3427func (s CreateBackendAuthOAuthConfig) GoString() string {
3428	return s.String()
3429}
3430
3431// Validate inspects the fields of the type to determine if they are valid.
3432func (s *CreateBackendAuthOAuthConfig) Validate() error {
3433	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthOAuthConfig"}
3434	if s.OAuthGrantType == nil {
3435		invalidParams.Add(request.NewErrParamRequired("OAuthGrantType"))
3436	}
3437	if s.OAuthScopes == nil {
3438		invalidParams.Add(request.NewErrParamRequired("OAuthScopes"))
3439	}
3440	if s.RedirectSignInURIs == nil {
3441		invalidParams.Add(request.NewErrParamRequired("RedirectSignInURIs"))
3442	}
3443	if s.RedirectSignOutURIs == nil {
3444		invalidParams.Add(request.NewErrParamRequired("RedirectSignOutURIs"))
3445	}
3446
3447	if invalidParams.Len() > 0 {
3448		return invalidParams
3449	}
3450	return nil
3451}
3452
3453// SetDomainPrefix sets the DomainPrefix field's value.
3454func (s *CreateBackendAuthOAuthConfig) SetDomainPrefix(v string) *CreateBackendAuthOAuthConfig {
3455	s.DomainPrefix = &v
3456	return s
3457}
3458
3459// SetOAuthGrantType sets the OAuthGrantType field's value.
3460func (s *CreateBackendAuthOAuthConfig) SetOAuthGrantType(v string) *CreateBackendAuthOAuthConfig {
3461	s.OAuthGrantType = &v
3462	return s
3463}
3464
3465// SetOAuthScopes sets the OAuthScopes field's value.
3466func (s *CreateBackendAuthOAuthConfig) SetOAuthScopes(v []*string) *CreateBackendAuthOAuthConfig {
3467	s.OAuthScopes = v
3468	return s
3469}
3470
3471// SetRedirectSignInURIs sets the RedirectSignInURIs field's value.
3472func (s *CreateBackendAuthOAuthConfig) SetRedirectSignInURIs(v []*string) *CreateBackendAuthOAuthConfig {
3473	s.RedirectSignInURIs = v
3474	return s
3475}
3476
3477// SetRedirectSignOutURIs sets the RedirectSignOutURIs field's value.
3478func (s *CreateBackendAuthOAuthConfig) SetRedirectSignOutURIs(v []*string) *CreateBackendAuthOAuthConfig {
3479	s.RedirectSignOutURIs = v
3480	return s
3481}
3482
3483// SetSocialProviderSettings sets the SocialProviderSettings field's value.
3484func (s *CreateBackendAuthOAuthConfig) SetSocialProviderSettings(v *SocialProviderSettings) *CreateBackendAuthOAuthConfig {
3485	s.SocialProviderSettings = v
3486	return s
3487}
3488
3489type CreateBackendAuthOutput struct {
3490	_ struct{} `type:"structure"`
3491
3492	AppId *string `locationName:"appId" type:"string"`
3493
3494	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
3495
3496	Error *string `locationName:"error" type:"string"`
3497
3498	JobId *string `locationName:"jobId" type:"string"`
3499
3500	Operation *string `locationName:"operation" type:"string"`
3501
3502	Status *string `locationName:"status" type:"string"`
3503}
3504
3505// String returns the string representation.
3506//
3507// API parameter values that are decorated as "sensitive" in the API will not
3508// be included in the string output. The member name will be present, but the
3509// value will be replaced with "sensitive".
3510func (s CreateBackendAuthOutput) String() string {
3511	return awsutil.Prettify(s)
3512}
3513
3514// GoString returns the string representation.
3515//
3516// API parameter values that are decorated as "sensitive" in the API will not
3517// be included in the string output. The member name will be present, but the
3518// value will be replaced with "sensitive".
3519func (s CreateBackendAuthOutput) GoString() string {
3520	return s.String()
3521}
3522
3523// SetAppId sets the AppId field's value.
3524func (s *CreateBackendAuthOutput) SetAppId(v string) *CreateBackendAuthOutput {
3525	s.AppId = &v
3526	return s
3527}
3528
3529// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
3530func (s *CreateBackendAuthOutput) SetBackendEnvironmentName(v string) *CreateBackendAuthOutput {
3531	s.BackendEnvironmentName = &v
3532	return s
3533}
3534
3535// SetError sets the Error field's value.
3536func (s *CreateBackendAuthOutput) SetError(v string) *CreateBackendAuthOutput {
3537	s.Error = &v
3538	return s
3539}
3540
3541// SetJobId sets the JobId field's value.
3542func (s *CreateBackendAuthOutput) SetJobId(v string) *CreateBackendAuthOutput {
3543	s.JobId = &v
3544	return s
3545}
3546
3547// SetOperation sets the Operation field's value.
3548func (s *CreateBackendAuthOutput) SetOperation(v string) *CreateBackendAuthOutput {
3549	s.Operation = &v
3550	return s
3551}
3552
3553// SetStatus sets the Status field's value.
3554func (s *CreateBackendAuthOutput) SetStatus(v string) *CreateBackendAuthOutput {
3555	s.Status = &v
3556	return s
3557}
3558
3559// The password policy configuration for the backend to your Amplify project.
3560type CreateBackendAuthPasswordPolicyConfig struct {
3561	_ struct{} `type:"structure"`
3562
3563	// Additional constraints for the password used to access the backend of your
3564	// Amplify project.
3565	AdditionalConstraints []*string `locationName:"additionalConstraints" type:"list"`
3566
3567	// The minimum length of the password used to access the backend of your Amplify
3568	// project.
3569	//
3570	// MinimumLength is a required field
3571	MinimumLength *float64 `locationName:"minimumLength" type:"double" required:"true"`
3572}
3573
3574// String returns the string representation.
3575//
3576// API parameter values that are decorated as "sensitive" in the API will not
3577// be included in the string output. The member name will be present, but the
3578// value will be replaced with "sensitive".
3579func (s CreateBackendAuthPasswordPolicyConfig) String() string {
3580	return awsutil.Prettify(s)
3581}
3582
3583// GoString returns the string representation.
3584//
3585// API parameter values that are decorated as "sensitive" in the API will not
3586// be included in the string output. The member name will be present, but the
3587// value will be replaced with "sensitive".
3588func (s CreateBackendAuthPasswordPolicyConfig) GoString() string {
3589	return s.String()
3590}
3591
3592// Validate inspects the fields of the type to determine if they are valid.
3593func (s *CreateBackendAuthPasswordPolicyConfig) Validate() error {
3594	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthPasswordPolicyConfig"}
3595	if s.MinimumLength == nil {
3596		invalidParams.Add(request.NewErrParamRequired("MinimumLength"))
3597	}
3598
3599	if invalidParams.Len() > 0 {
3600		return invalidParams
3601	}
3602	return nil
3603}
3604
3605// SetAdditionalConstraints sets the AdditionalConstraints field's value.
3606func (s *CreateBackendAuthPasswordPolicyConfig) SetAdditionalConstraints(v []*string) *CreateBackendAuthPasswordPolicyConfig {
3607	s.AdditionalConstraints = v
3608	return s
3609}
3610
3611// SetMinimumLength sets the MinimumLength field's value.
3612func (s *CreateBackendAuthPasswordPolicyConfig) SetMinimumLength(v float64) *CreateBackendAuthPasswordPolicyConfig {
3613	s.MinimumLength = &v
3614	return s
3615}
3616
3617// Defines the resource configuration when creating an auth resource in your
3618// Amplify project.
3619type CreateBackendAuthResourceConfig struct {
3620	_ struct{} `type:"structure"`
3621
3622	// Defines whether you want to configure only authentication or both authentication
3623	// and authorization settings.
3624	//
3625	// AuthResources is a required field
3626	AuthResources *string `locationName:"authResources" type:"string" required:"true" enum:"AuthResources"`
3627
3628	// Describes the authorization configuration for the Amazon Cognito identity
3629	// pool, provisioned as a part of your auth resource in the Amplify project.
3630	IdentityPoolConfigs *CreateBackendAuthIdentityPoolConfig `locationName:"identityPoolConfigs" type:"structure"`
3631
3632	// Defines the service name to use when configuring an authentication resource
3633	// in your Amplify project.
3634	//
3635	// Service is a required field
3636	Service *string `locationName:"service" type:"string" required:"true" enum:"Service"`
3637
3638	// Describes authentication configuration for the Amazon Cognito user pool,
3639	// provisioned as a part of your auth resource in the Amplify project.
3640	//
3641	// UserPoolConfigs is a required field
3642	UserPoolConfigs *CreateBackendAuthUserPoolConfig `locationName:"userPoolConfigs" type:"structure" required:"true"`
3643}
3644
3645// String returns the string representation.
3646//
3647// API parameter values that are decorated as "sensitive" in the API will not
3648// be included in the string output. The member name will be present, but the
3649// value will be replaced with "sensitive".
3650func (s CreateBackendAuthResourceConfig) String() string {
3651	return awsutil.Prettify(s)
3652}
3653
3654// GoString returns the string representation.
3655//
3656// API parameter values that are decorated as "sensitive" in the API will not
3657// be included in the string output. The member name will be present, but the
3658// value will be replaced with "sensitive".
3659func (s CreateBackendAuthResourceConfig) GoString() string {
3660	return s.String()
3661}
3662
3663// Validate inspects the fields of the type to determine if they are valid.
3664func (s *CreateBackendAuthResourceConfig) Validate() error {
3665	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthResourceConfig"}
3666	if s.AuthResources == nil {
3667		invalidParams.Add(request.NewErrParamRequired("AuthResources"))
3668	}
3669	if s.Service == nil {
3670		invalidParams.Add(request.NewErrParamRequired("Service"))
3671	}
3672	if s.UserPoolConfigs == nil {
3673		invalidParams.Add(request.NewErrParamRequired("UserPoolConfigs"))
3674	}
3675	if s.IdentityPoolConfigs != nil {
3676		if err := s.IdentityPoolConfigs.Validate(); err != nil {
3677			invalidParams.AddNested("IdentityPoolConfigs", err.(request.ErrInvalidParams))
3678		}
3679	}
3680	if s.UserPoolConfigs != nil {
3681		if err := s.UserPoolConfigs.Validate(); err != nil {
3682			invalidParams.AddNested("UserPoolConfigs", err.(request.ErrInvalidParams))
3683		}
3684	}
3685
3686	if invalidParams.Len() > 0 {
3687		return invalidParams
3688	}
3689	return nil
3690}
3691
3692// SetAuthResources sets the AuthResources field's value.
3693func (s *CreateBackendAuthResourceConfig) SetAuthResources(v string) *CreateBackendAuthResourceConfig {
3694	s.AuthResources = &v
3695	return s
3696}
3697
3698// SetIdentityPoolConfigs sets the IdentityPoolConfigs field's value.
3699func (s *CreateBackendAuthResourceConfig) SetIdentityPoolConfigs(v *CreateBackendAuthIdentityPoolConfig) *CreateBackendAuthResourceConfig {
3700	s.IdentityPoolConfigs = v
3701	return s
3702}
3703
3704// SetService sets the Service field's value.
3705func (s *CreateBackendAuthResourceConfig) SetService(v string) *CreateBackendAuthResourceConfig {
3706	s.Service = &v
3707	return s
3708}
3709
3710// SetUserPoolConfigs sets the UserPoolConfigs field's value.
3711func (s *CreateBackendAuthResourceConfig) SetUserPoolConfigs(v *CreateBackendAuthUserPoolConfig) *CreateBackendAuthResourceConfig {
3712	s.UserPoolConfigs = v
3713	return s
3714}
3715
3716// Describes the Amazon Cognito user pool configuration for the auth resource
3717// to be configured for your Amplify project.
3718type CreateBackendAuthUserPoolConfig struct {
3719	_ struct{} `type:"structure"`
3720
3721	// Describes the forgotten password policy for your Amazon Cognito user pool,
3722	// configured as a part of your Amplify project.
3723	ForgotPassword *CreateBackendAuthForgotPasswordConfig `locationName:"forgotPassword" type:"structure"`
3724
3725	// Describes whether to apply multi-factor authentication policies for your
3726	// Amazon Cognito user pool configured as a part of your Amplify project.
3727	Mfa *CreateBackendAuthMFAConfig `locationName:"mfa" type:"structure"`
3728
3729	// Describes the OAuth policy and rules for your Amazon Cognito user pool, configured
3730	// as a part of your Amplify project.
3731	OAuth *CreateBackendAuthOAuthConfig `locationName:"oAuth" type:"structure"`
3732
3733	// Describes the password policy for your Amazon Cognito user pool, configured
3734	// as a part of your Amplify project.
3735	PasswordPolicy *CreateBackendAuthPasswordPolicyConfig `locationName:"passwordPolicy" type:"structure"`
3736
3737	// The required attributes to sign up new users in the user pool.
3738	//
3739	// RequiredSignUpAttributes is a required field
3740	RequiredSignUpAttributes []*string `locationName:"requiredSignUpAttributes" type:"list" required:"true"`
3741
3742	// Describes the sign-in methods that your Amplify app users use to log in using
3743	// the Amazon Cognito user pool, configured as a part of your Amplify project.
3744	//
3745	// SignInMethod is a required field
3746	SignInMethod *string `locationName:"signInMethod" type:"string" required:"true" enum:"SignInMethod"`
3747
3748	// The Amazon Cognito user pool name.
3749	//
3750	// UserPoolName is a required field
3751	UserPoolName *string `locationName:"userPoolName" type:"string" required:"true"`
3752}
3753
3754// String returns the string representation.
3755//
3756// API parameter values that are decorated as "sensitive" in the API will not
3757// be included in the string output. The member name will be present, but the
3758// value will be replaced with "sensitive".
3759func (s CreateBackendAuthUserPoolConfig) String() string {
3760	return awsutil.Prettify(s)
3761}
3762
3763// GoString returns the string representation.
3764//
3765// API parameter values that are decorated as "sensitive" in the API will not
3766// be included in the string output. The member name will be present, but the
3767// value will be replaced with "sensitive".
3768func (s CreateBackendAuthUserPoolConfig) GoString() string {
3769	return s.String()
3770}
3771
3772// Validate inspects the fields of the type to determine if they are valid.
3773func (s *CreateBackendAuthUserPoolConfig) Validate() error {
3774	invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthUserPoolConfig"}
3775	if s.RequiredSignUpAttributes == nil {
3776		invalidParams.Add(request.NewErrParamRequired("RequiredSignUpAttributes"))
3777	}
3778	if s.SignInMethod == nil {
3779		invalidParams.Add(request.NewErrParamRequired("SignInMethod"))
3780	}
3781	if s.UserPoolName == nil {
3782		invalidParams.Add(request.NewErrParamRequired("UserPoolName"))
3783	}
3784	if s.ForgotPassword != nil {
3785		if err := s.ForgotPassword.Validate(); err != nil {
3786			invalidParams.AddNested("ForgotPassword", err.(request.ErrInvalidParams))
3787		}
3788	}
3789	if s.Mfa != nil {
3790		if err := s.Mfa.Validate(); err != nil {
3791			invalidParams.AddNested("Mfa", err.(request.ErrInvalidParams))
3792		}
3793	}
3794	if s.OAuth != nil {
3795		if err := s.OAuth.Validate(); err != nil {
3796			invalidParams.AddNested("OAuth", err.(request.ErrInvalidParams))
3797		}
3798	}
3799	if s.PasswordPolicy != nil {
3800		if err := s.PasswordPolicy.Validate(); err != nil {
3801			invalidParams.AddNested("PasswordPolicy", err.(request.ErrInvalidParams))
3802		}
3803	}
3804
3805	if invalidParams.Len() > 0 {
3806		return invalidParams
3807	}
3808	return nil
3809}
3810
3811// SetForgotPassword sets the ForgotPassword field's value.
3812func (s *CreateBackendAuthUserPoolConfig) SetForgotPassword(v *CreateBackendAuthForgotPasswordConfig) *CreateBackendAuthUserPoolConfig {
3813	s.ForgotPassword = v
3814	return s
3815}
3816
3817// SetMfa sets the Mfa field's value.
3818func (s *CreateBackendAuthUserPoolConfig) SetMfa(v *CreateBackendAuthMFAConfig) *CreateBackendAuthUserPoolConfig {
3819	s.Mfa = v
3820	return s
3821}
3822
3823// SetOAuth sets the OAuth field's value.
3824func (s *CreateBackendAuthUserPoolConfig) SetOAuth(v *CreateBackendAuthOAuthConfig) *CreateBackendAuthUserPoolConfig {
3825	s.OAuth = v
3826	return s
3827}
3828
3829// SetPasswordPolicy sets the PasswordPolicy field's value.
3830func (s *CreateBackendAuthUserPoolConfig) SetPasswordPolicy(v *CreateBackendAuthPasswordPolicyConfig) *CreateBackendAuthUserPoolConfig {
3831	s.PasswordPolicy = v
3832	return s
3833}
3834
3835// SetRequiredSignUpAttributes sets the RequiredSignUpAttributes field's value.
3836func (s *CreateBackendAuthUserPoolConfig) SetRequiredSignUpAttributes(v []*string) *CreateBackendAuthUserPoolConfig {
3837	s.RequiredSignUpAttributes = v
3838	return s
3839}
3840
3841// SetSignInMethod sets the SignInMethod field's value.
3842func (s *CreateBackendAuthUserPoolConfig) SetSignInMethod(v string) *CreateBackendAuthUserPoolConfig {
3843	s.SignInMethod = &v
3844	return s
3845}
3846
3847// SetUserPoolName sets the UserPoolName field's value.
3848func (s *CreateBackendAuthUserPoolConfig) SetUserPoolName(v string) *CreateBackendAuthUserPoolConfig {
3849	s.UserPoolName = &v
3850	return s
3851}
3852
3853type CreateBackendConfigInput struct {
3854	_ struct{} `type:"structure"`
3855
3856	// AppId is a required field
3857	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
3858
3859	BackendManagerAppId *string `locationName:"backendManagerAppId" type:"string"`
3860}
3861
3862// String returns the string representation.
3863//
3864// API parameter values that are decorated as "sensitive" in the API will not
3865// be included in the string output. The member name will be present, but the
3866// value will be replaced with "sensitive".
3867func (s CreateBackendConfigInput) String() string {
3868	return awsutil.Prettify(s)
3869}
3870
3871// GoString returns the string representation.
3872//
3873// API parameter values that are decorated as "sensitive" in the API will not
3874// be included in the string output. The member name will be present, but the
3875// value will be replaced with "sensitive".
3876func (s CreateBackendConfigInput) GoString() string {
3877	return s.String()
3878}
3879
3880// Validate inspects the fields of the type to determine if they are valid.
3881func (s *CreateBackendConfigInput) Validate() error {
3882	invalidParams := request.ErrInvalidParams{Context: "CreateBackendConfigInput"}
3883	if s.AppId == nil {
3884		invalidParams.Add(request.NewErrParamRequired("AppId"))
3885	}
3886	if s.AppId != nil && len(*s.AppId) < 1 {
3887		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
3888	}
3889
3890	if invalidParams.Len() > 0 {
3891		return invalidParams
3892	}
3893	return nil
3894}
3895
3896// SetAppId sets the AppId field's value.
3897func (s *CreateBackendConfigInput) SetAppId(v string) *CreateBackendConfigInput {
3898	s.AppId = &v
3899	return s
3900}
3901
3902// SetBackendManagerAppId sets the BackendManagerAppId field's value.
3903func (s *CreateBackendConfigInput) SetBackendManagerAppId(v string) *CreateBackendConfigInput {
3904	s.BackendManagerAppId = &v
3905	return s
3906}
3907
3908type CreateBackendConfigOutput struct {
3909	_ struct{} `type:"structure"`
3910
3911	AppId *string `locationName:"appId" type:"string"`
3912
3913	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
3914
3915	JobId *string `locationName:"jobId" type:"string"`
3916
3917	Status *string `locationName:"status" type:"string"`
3918}
3919
3920// String returns the string representation.
3921//
3922// API parameter values that are decorated as "sensitive" in the API will not
3923// be included in the string output. The member name will be present, but the
3924// value will be replaced with "sensitive".
3925func (s CreateBackendConfigOutput) String() string {
3926	return awsutil.Prettify(s)
3927}
3928
3929// GoString returns the string representation.
3930//
3931// API parameter values that are decorated as "sensitive" in the API will not
3932// be included in the string output. The member name will be present, but the
3933// value will be replaced with "sensitive".
3934func (s CreateBackendConfigOutput) GoString() string {
3935	return s.String()
3936}
3937
3938// SetAppId sets the AppId field's value.
3939func (s *CreateBackendConfigOutput) SetAppId(v string) *CreateBackendConfigOutput {
3940	s.AppId = &v
3941	return s
3942}
3943
3944// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
3945func (s *CreateBackendConfigOutput) SetBackendEnvironmentName(v string) *CreateBackendConfigOutput {
3946	s.BackendEnvironmentName = &v
3947	return s
3948}
3949
3950// SetJobId sets the JobId field's value.
3951func (s *CreateBackendConfigOutput) SetJobId(v string) *CreateBackendConfigOutput {
3952	s.JobId = &v
3953	return s
3954}
3955
3956// SetStatus sets the Status field's value.
3957func (s *CreateBackendConfigOutput) SetStatus(v string) *CreateBackendConfigOutput {
3958	s.Status = &v
3959	return s
3960}
3961
3962type CreateBackendInput struct {
3963	_ struct{} `type:"structure"`
3964
3965	// AppId is a required field
3966	AppId *string `locationName:"appId" type:"string" required:"true"`
3967
3968	// AppName is a required field
3969	AppName *string `locationName:"appName" type:"string" required:"true"`
3970
3971	// BackendEnvironmentName is a required field
3972	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string" required:"true"`
3973
3974	ResourceConfig *ResourceConfig `locationName:"resourceConfig" type:"structure"`
3975
3976	ResourceName *string `locationName:"resourceName" type:"string"`
3977}
3978
3979// String returns the string representation.
3980//
3981// API parameter values that are decorated as "sensitive" in the API will not
3982// be included in the string output. The member name will be present, but the
3983// value will be replaced with "sensitive".
3984func (s CreateBackendInput) String() string {
3985	return awsutil.Prettify(s)
3986}
3987
3988// GoString returns the string representation.
3989//
3990// API parameter values that are decorated as "sensitive" in the API will not
3991// be included in the string output. The member name will be present, but the
3992// value will be replaced with "sensitive".
3993func (s CreateBackendInput) GoString() string {
3994	return s.String()
3995}
3996
3997// Validate inspects the fields of the type to determine if they are valid.
3998func (s *CreateBackendInput) Validate() error {
3999	invalidParams := request.ErrInvalidParams{Context: "CreateBackendInput"}
4000	if s.AppId == nil {
4001		invalidParams.Add(request.NewErrParamRequired("AppId"))
4002	}
4003	if s.AppName == nil {
4004		invalidParams.Add(request.NewErrParamRequired("AppName"))
4005	}
4006	if s.BackendEnvironmentName == nil {
4007		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
4008	}
4009
4010	if invalidParams.Len() > 0 {
4011		return invalidParams
4012	}
4013	return nil
4014}
4015
4016// SetAppId sets the AppId field's value.
4017func (s *CreateBackendInput) SetAppId(v string) *CreateBackendInput {
4018	s.AppId = &v
4019	return s
4020}
4021
4022// SetAppName sets the AppName field's value.
4023func (s *CreateBackendInput) SetAppName(v string) *CreateBackendInput {
4024	s.AppName = &v
4025	return s
4026}
4027
4028// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4029func (s *CreateBackendInput) SetBackendEnvironmentName(v string) *CreateBackendInput {
4030	s.BackendEnvironmentName = &v
4031	return s
4032}
4033
4034// SetResourceConfig sets the ResourceConfig field's value.
4035func (s *CreateBackendInput) SetResourceConfig(v *ResourceConfig) *CreateBackendInput {
4036	s.ResourceConfig = v
4037	return s
4038}
4039
4040// SetResourceName sets the ResourceName field's value.
4041func (s *CreateBackendInput) SetResourceName(v string) *CreateBackendInput {
4042	s.ResourceName = &v
4043	return s
4044}
4045
4046type CreateBackendOutput struct {
4047	_ struct{} `type:"structure"`
4048
4049	AppId *string `locationName:"appId" type:"string"`
4050
4051	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
4052
4053	Error *string `locationName:"error" type:"string"`
4054
4055	JobId *string `locationName:"jobId" type:"string"`
4056
4057	Operation *string `locationName:"operation" type:"string"`
4058
4059	Status *string `locationName:"status" type:"string"`
4060}
4061
4062// String returns the string representation.
4063//
4064// API parameter values that are decorated as "sensitive" in the API will not
4065// be included in the string output. The member name will be present, but the
4066// value will be replaced with "sensitive".
4067func (s CreateBackendOutput) String() string {
4068	return awsutil.Prettify(s)
4069}
4070
4071// GoString returns the string representation.
4072//
4073// API parameter values that are decorated as "sensitive" in the API will not
4074// be included in the string output. The member name will be present, but the
4075// value will be replaced with "sensitive".
4076func (s CreateBackendOutput) GoString() string {
4077	return s.String()
4078}
4079
4080// SetAppId sets the AppId field's value.
4081func (s *CreateBackendOutput) SetAppId(v string) *CreateBackendOutput {
4082	s.AppId = &v
4083	return s
4084}
4085
4086// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4087func (s *CreateBackendOutput) SetBackendEnvironmentName(v string) *CreateBackendOutput {
4088	s.BackendEnvironmentName = &v
4089	return s
4090}
4091
4092// SetError sets the Error field's value.
4093func (s *CreateBackendOutput) SetError(v string) *CreateBackendOutput {
4094	s.Error = &v
4095	return s
4096}
4097
4098// SetJobId sets the JobId field's value.
4099func (s *CreateBackendOutput) SetJobId(v string) *CreateBackendOutput {
4100	s.JobId = &v
4101	return s
4102}
4103
4104// SetOperation sets the Operation field's value.
4105func (s *CreateBackendOutput) SetOperation(v string) *CreateBackendOutput {
4106	s.Operation = &v
4107	return s
4108}
4109
4110// SetStatus sets the Status field's value.
4111func (s *CreateBackendOutput) SetStatus(v string) *CreateBackendOutput {
4112	s.Status = &v
4113	return s
4114}
4115
4116type CreateTokenInput struct {
4117	_ struct{} `type:"structure" nopayload:"true"`
4118
4119	// AppId is a required field
4120	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4121}
4122
4123// String returns the string representation.
4124//
4125// API parameter values that are decorated as "sensitive" in the API will not
4126// be included in the string output. The member name will be present, but the
4127// value will be replaced with "sensitive".
4128func (s CreateTokenInput) String() string {
4129	return awsutil.Prettify(s)
4130}
4131
4132// GoString returns the string representation.
4133//
4134// API parameter values that are decorated as "sensitive" in the API will not
4135// be included in the string output. The member name will be present, but the
4136// value will be replaced with "sensitive".
4137func (s CreateTokenInput) GoString() string {
4138	return s.String()
4139}
4140
4141// Validate inspects the fields of the type to determine if they are valid.
4142func (s *CreateTokenInput) Validate() error {
4143	invalidParams := request.ErrInvalidParams{Context: "CreateTokenInput"}
4144	if s.AppId == nil {
4145		invalidParams.Add(request.NewErrParamRequired("AppId"))
4146	}
4147	if s.AppId != nil && len(*s.AppId) < 1 {
4148		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4149	}
4150
4151	if invalidParams.Len() > 0 {
4152		return invalidParams
4153	}
4154	return nil
4155}
4156
4157// SetAppId sets the AppId field's value.
4158func (s *CreateTokenInput) SetAppId(v string) *CreateTokenInput {
4159	s.AppId = &v
4160	return s
4161}
4162
4163type CreateTokenOutput struct {
4164	_ struct{} `type:"structure"`
4165
4166	AppId *string `locationName:"appId" type:"string"`
4167
4168	ChallengeCode *string `locationName:"challengeCode" type:"string"`
4169
4170	SessionId *string `locationName:"sessionId" type:"string"`
4171
4172	Ttl *string `locationName:"ttl" type:"string"`
4173}
4174
4175// String returns the string representation.
4176//
4177// API parameter values that are decorated as "sensitive" in the API will not
4178// be included in the string output. The member name will be present, but the
4179// value will be replaced with "sensitive".
4180func (s CreateTokenOutput) String() string {
4181	return awsutil.Prettify(s)
4182}
4183
4184// GoString returns the string representation.
4185//
4186// API parameter values that are decorated as "sensitive" in the API will not
4187// be included in the string output. The member name will be present, but the
4188// value will be replaced with "sensitive".
4189func (s CreateTokenOutput) GoString() string {
4190	return s.String()
4191}
4192
4193// SetAppId sets the AppId field's value.
4194func (s *CreateTokenOutput) SetAppId(v string) *CreateTokenOutput {
4195	s.AppId = &v
4196	return s
4197}
4198
4199// SetChallengeCode sets the ChallengeCode field's value.
4200func (s *CreateTokenOutput) SetChallengeCode(v string) *CreateTokenOutput {
4201	s.ChallengeCode = &v
4202	return s
4203}
4204
4205// SetSessionId sets the SessionId field's value.
4206func (s *CreateTokenOutput) SetSessionId(v string) *CreateTokenOutput {
4207	s.SessionId = &v
4208	return s
4209}
4210
4211// SetTtl sets the Ttl field's value.
4212func (s *CreateTokenOutput) SetTtl(v string) *CreateTokenOutput {
4213	s.Ttl = &v
4214	return s
4215}
4216
4217type DeleteBackendAPIInput struct {
4218	_ struct{} `type:"structure"`
4219
4220	// AppId is a required field
4221	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4222
4223	// BackendEnvironmentName is a required field
4224	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
4225
4226	// The resource config for the data model, configured as a part of the Amplify
4227	// project.
4228	ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure"`
4229
4230	// ResourceName is a required field
4231	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
4232}
4233
4234// String returns the string representation.
4235//
4236// API parameter values that are decorated as "sensitive" in the API will not
4237// be included in the string output. The member name will be present, but the
4238// value will be replaced with "sensitive".
4239func (s DeleteBackendAPIInput) String() string {
4240	return awsutil.Prettify(s)
4241}
4242
4243// GoString returns the string representation.
4244//
4245// API parameter values that are decorated as "sensitive" in the API will not
4246// be included in the string output. The member name will be present, but the
4247// value will be replaced with "sensitive".
4248func (s DeleteBackendAPIInput) GoString() string {
4249	return s.String()
4250}
4251
4252// Validate inspects the fields of the type to determine if they are valid.
4253func (s *DeleteBackendAPIInput) Validate() error {
4254	invalidParams := request.ErrInvalidParams{Context: "DeleteBackendAPIInput"}
4255	if s.AppId == nil {
4256		invalidParams.Add(request.NewErrParamRequired("AppId"))
4257	}
4258	if s.AppId != nil && len(*s.AppId) < 1 {
4259		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4260	}
4261	if s.BackendEnvironmentName == nil {
4262		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
4263	}
4264	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
4265		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
4266	}
4267	if s.ResourceName == nil {
4268		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
4269	}
4270
4271	if invalidParams.Len() > 0 {
4272		return invalidParams
4273	}
4274	return nil
4275}
4276
4277// SetAppId sets the AppId field's value.
4278func (s *DeleteBackendAPIInput) SetAppId(v string) *DeleteBackendAPIInput {
4279	s.AppId = &v
4280	return s
4281}
4282
4283// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4284func (s *DeleteBackendAPIInput) SetBackendEnvironmentName(v string) *DeleteBackendAPIInput {
4285	s.BackendEnvironmentName = &v
4286	return s
4287}
4288
4289// SetResourceConfig sets the ResourceConfig field's value.
4290func (s *DeleteBackendAPIInput) SetResourceConfig(v *BackendAPIResourceConfig) *DeleteBackendAPIInput {
4291	s.ResourceConfig = v
4292	return s
4293}
4294
4295// SetResourceName sets the ResourceName field's value.
4296func (s *DeleteBackendAPIInput) SetResourceName(v string) *DeleteBackendAPIInput {
4297	s.ResourceName = &v
4298	return s
4299}
4300
4301type DeleteBackendAPIOutput struct {
4302	_ struct{} `type:"structure"`
4303
4304	AppId *string `locationName:"appId" type:"string"`
4305
4306	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
4307
4308	Error *string `locationName:"error" type:"string"`
4309
4310	JobId *string `locationName:"jobId" type:"string"`
4311
4312	Operation *string `locationName:"operation" type:"string"`
4313
4314	Status *string `locationName:"status" type:"string"`
4315}
4316
4317// String returns the string representation.
4318//
4319// API parameter values that are decorated as "sensitive" in the API will not
4320// be included in the string output. The member name will be present, but the
4321// value will be replaced with "sensitive".
4322func (s DeleteBackendAPIOutput) String() string {
4323	return awsutil.Prettify(s)
4324}
4325
4326// GoString returns the string representation.
4327//
4328// API parameter values that are decorated as "sensitive" in the API will not
4329// be included in the string output. The member name will be present, but the
4330// value will be replaced with "sensitive".
4331func (s DeleteBackendAPIOutput) GoString() string {
4332	return s.String()
4333}
4334
4335// SetAppId sets the AppId field's value.
4336func (s *DeleteBackendAPIOutput) SetAppId(v string) *DeleteBackendAPIOutput {
4337	s.AppId = &v
4338	return s
4339}
4340
4341// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4342func (s *DeleteBackendAPIOutput) SetBackendEnvironmentName(v string) *DeleteBackendAPIOutput {
4343	s.BackendEnvironmentName = &v
4344	return s
4345}
4346
4347// SetError sets the Error field's value.
4348func (s *DeleteBackendAPIOutput) SetError(v string) *DeleteBackendAPIOutput {
4349	s.Error = &v
4350	return s
4351}
4352
4353// SetJobId sets the JobId field's value.
4354func (s *DeleteBackendAPIOutput) SetJobId(v string) *DeleteBackendAPIOutput {
4355	s.JobId = &v
4356	return s
4357}
4358
4359// SetOperation sets the Operation field's value.
4360func (s *DeleteBackendAPIOutput) SetOperation(v string) *DeleteBackendAPIOutput {
4361	s.Operation = &v
4362	return s
4363}
4364
4365// SetStatus sets the Status field's value.
4366func (s *DeleteBackendAPIOutput) SetStatus(v string) *DeleteBackendAPIOutput {
4367	s.Status = &v
4368	return s
4369}
4370
4371type DeleteBackendAuthInput struct {
4372	_ struct{} `type:"structure"`
4373
4374	// AppId is a required field
4375	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4376
4377	// BackendEnvironmentName is a required field
4378	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
4379
4380	// ResourceName is a required field
4381	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
4382}
4383
4384// String returns the string representation.
4385//
4386// API parameter values that are decorated as "sensitive" in the API will not
4387// be included in the string output. The member name will be present, but the
4388// value will be replaced with "sensitive".
4389func (s DeleteBackendAuthInput) String() string {
4390	return awsutil.Prettify(s)
4391}
4392
4393// GoString returns the string representation.
4394//
4395// API parameter values that are decorated as "sensitive" in the API will not
4396// be included in the string output. The member name will be present, but the
4397// value will be replaced with "sensitive".
4398func (s DeleteBackendAuthInput) GoString() string {
4399	return s.String()
4400}
4401
4402// Validate inspects the fields of the type to determine if they are valid.
4403func (s *DeleteBackendAuthInput) Validate() error {
4404	invalidParams := request.ErrInvalidParams{Context: "DeleteBackendAuthInput"}
4405	if s.AppId == nil {
4406		invalidParams.Add(request.NewErrParamRequired("AppId"))
4407	}
4408	if s.AppId != nil && len(*s.AppId) < 1 {
4409		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4410	}
4411	if s.BackendEnvironmentName == nil {
4412		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
4413	}
4414	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
4415		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
4416	}
4417	if s.ResourceName == nil {
4418		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
4419	}
4420
4421	if invalidParams.Len() > 0 {
4422		return invalidParams
4423	}
4424	return nil
4425}
4426
4427// SetAppId sets the AppId field's value.
4428func (s *DeleteBackendAuthInput) SetAppId(v string) *DeleteBackendAuthInput {
4429	s.AppId = &v
4430	return s
4431}
4432
4433// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4434func (s *DeleteBackendAuthInput) SetBackendEnvironmentName(v string) *DeleteBackendAuthInput {
4435	s.BackendEnvironmentName = &v
4436	return s
4437}
4438
4439// SetResourceName sets the ResourceName field's value.
4440func (s *DeleteBackendAuthInput) SetResourceName(v string) *DeleteBackendAuthInput {
4441	s.ResourceName = &v
4442	return s
4443}
4444
4445type DeleteBackendAuthOutput struct {
4446	_ struct{} `type:"structure"`
4447
4448	AppId *string `locationName:"appId" type:"string"`
4449
4450	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
4451
4452	Error *string `locationName:"error" type:"string"`
4453
4454	JobId *string `locationName:"jobId" type:"string"`
4455
4456	Operation *string `locationName:"operation" type:"string"`
4457
4458	Status *string `locationName:"status" type:"string"`
4459}
4460
4461// String returns the string representation.
4462//
4463// API parameter values that are decorated as "sensitive" in the API will not
4464// be included in the string output. The member name will be present, but the
4465// value will be replaced with "sensitive".
4466func (s DeleteBackendAuthOutput) String() string {
4467	return awsutil.Prettify(s)
4468}
4469
4470// GoString returns the string representation.
4471//
4472// API parameter values that are decorated as "sensitive" in the API will not
4473// be included in the string output. The member name will be present, but the
4474// value will be replaced with "sensitive".
4475func (s DeleteBackendAuthOutput) GoString() string {
4476	return s.String()
4477}
4478
4479// SetAppId sets the AppId field's value.
4480func (s *DeleteBackendAuthOutput) SetAppId(v string) *DeleteBackendAuthOutput {
4481	s.AppId = &v
4482	return s
4483}
4484
4485// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4486func (s *DeleteBackendAuthOutput) SetBackendEnvironmentName(v string) *DeleteBackendAuthOutput {
4487	s.BackendEnvironmentName = &v
4488	return s
4489}
4490
4491// SetError sets the Error field's value.
4492func (s *DeleteBackendAuthOutput) SetError(v string) *DeleteBackendAuthOutput {
4493	s.Error = &v
4494	return s
4495}
4496
4497// SetJobId sets the JobId field's value.
4498func (s *DeleteBackendAuthOutput) SetJobId(v string) *DeleteBackendAuthOutput {
4499	s.JobId = &v
4500	return s
4501}
4502
4503// SetOperation sets the Operation field's value.
4504func (s *DeleteBackendAuthOutput) SetOperation(v string) *DeleteBackendAuthOutput {
4505	s.Operation = &v
4506	return s
4507}
4508
4509// SetStatus sets the Status field's value.
4510func (s *DeleteBackendAuthOutput) SetStatus(v string) *DeleteBackendAuthOutput {
4511	s.Status = &v
4512	return s
4513}
4514
4515type DeleteBackendInput struct {
4516	_ struct{} `type:"structure" nopayload:"true"`
4517
4518	// AppId is a required field
4519	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4520
4521	// BackendEnvironmentName is a required field
4522	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
4523}
4524
4525// String returns the string representation.
4526//
4527// API parameter values that are decorated as "sensitive" in the API will not
4528// be included in the string output. The member name will be present, but the
4529// value will be replaced with "sensitive".
4530func (s DeleteBackendInput) String() string {
4531	return awsutil.Prettify(s)
4532}
4533
4534// GoString returns the string representation.
4535//
4536// API parameter values that are decorated as "sensitive" in the API will not
4537// be included in the string output. The member name will be present, but the
4538// value will be replaced with "sensitive".
4539func (s DeleteBackendInput) GoString() string {
4540	return s.String()
4541}
4542
4543// Validate inspects the fields of the type to determine if they are valid.
4544func (s *DeleteBackendInput) Validate() error {
4545	invalidParams := request.ErrInvalidParams{Context: "DeleteBackendInput"}
4546	if s.AppId == nil {
4547		invalidParams.Add(request.NewErrParamRequired("AppId"))
4548	}
4549	if s.AppId != nil && len(*s.AppId) < 1 {
4550		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4551	}
4552	if s.BackendEnvironmentName == nil {
4553		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
4554	}
4555	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
4556		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
4557	}
4558
4559	if invalidParams.Len() > 0 {
4560		return invalidParams
4561	}
4562	return nil
4563}
4564
4565// SetAppId sets the AppId field's value.
4566func (s *DeleteBackendInput) SetAppId(v string) *DeleteBackendInput {
4567	s.AppId = &v
4568	return s
4569}
4570
4571// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4572func (s *DeleteBackendInput) SetBackendEnvironmentName(v string) *DeleteBackendInput {
4573	s.BackendEnvironmentName = &v
4574	return s
4575}
4576
4577type DeleteBackendOutput struct {
4578	_ struct{} `type:"structure"`
4579
4580	AppId *string `locationName:"appId" type:"string"`
4581
4582	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
4583
4584	Error *string `locationName:"error" type:"string"`
4585
4586	JobId *string `locationName:"jobId" type:"string"`
4587
4588	Operation *string `locationName:"operation" type:"string"`
4589
4590	Status *string `locationName:"status" type:"string"`
4591}
4592
4593// String returns the string representation.
4594//
4595// API parameter values that are decorated as "sensitive" in the API will not
4596// be included in the string output. The member name will be present, but the
4597// value will be replaced with "sensitive".
4598func (s DeleteBackendOutput) String() string {
4599	return awsutil.Prettify(s)
4600}
4601
4602// GoString returns the string representation.
4603//
4604// API parameter values that are decorated as "sensitive" in the API will not
4605// be included in the string output. The member name will be present, but the
4606// value will be replaced with "sensitive".
4607func (s DeleteBackendOutput) GoString() string {
4608	return s.String()
4609}
4610
4611// SetAppId sets the AppId field's value.
4612func (s *DeleteBackendOutput) SetAppId(v string) *DeleteBackendOutput {
4613	s.AppId = &v
4614	return s
4615}
4616
4617// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4618func (s *DeleteBackendOutput) SetBackendEnvironmentName(v string) *DeleteBackendOutput {
4619	s.BackendEnvironmentName = &v
4620	return s
4621}
4622
4623// SetError sets the Error field's value.
4624func (s *DeleteBackendOutput) SetError(v string) *DeleteBackendOutput {
4625	s.Error = &v
4626	return s
4627}
4628
4629// SetJobId sets the JobId field's value.
4630func (s *DeleteBackendOutput) SetJobId(v string) *DeleteBackendOutput {
4631	s.JobId = &v
4632	return s
4633}
4634
4635// SetOperation sets the Operation field's value.
4636func (s *DeleteBackendOutput) SetOperation(v string) *DeleteBackendOutput {
4637	s.Operation = &v
4638	return s
4639}
4640
4641// SetStatus sets the Status field's value.
4642func (s *DeleteBackendOutput) SetStatus(v string) *DeleteBackendOutput {
4643	s.Status = &v
4644	return s
4645}
4646
4647type DeleteTokenInput struct {
4648	_ struct{} `type:"structure" nopayload:"true"`
4649
4650	// AppId is a required field
4651	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4652
4653	// SessionId is a required field
4654	SessionId *string `location:"uri" locationName:"sessionId" type:"string" required:"true"`
4655}
4656
4657// String returns the string representation.
4658//
4659// API parameter values that are decorated as "sensitive" in the API will not
4660// be included in the string output. The member name will be present, but the
4661// value will be replaced with "sensitive".
4662func (s DeleteTokenInput) String() string {
4663	return awsutil.Prettify(s)
4664}
4665
4666// GoString returns the string representation.
4667//
4668// API parameter values that are decorated as "sensitive" in the API will not
4669// be included in the string output. The member name will be present, but the
4670// value will be replaced with "sensitive".
4671func (s DeleteTokenInput) GoString() string {
4672	return s.String()
4673}
4674
4675// Validate inspects the fields of the type to determine if they are valid.
4676func (s *DeleteTokenInput) Validate() error {
4677	invalidParams := request.ErrInvalidParams{Context: "DeleteTokenInput"}
4678	if s.AppId == nil {
4679		invalidParams.Add(request.NewErrParamRequired("AppId"))
4680	}
4681	if s.AppId != nil && len(*s.AppId) < 1 {
4682		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
4683	}
4684	if s.SessionId == nil {
4685		invalidParams.Add(request.NewErrParamRequired("SessionId"))
4686	}
4687	if s.SessionId != nil && len(*s.SessionId) < 1 {
4688		invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
4689	}
4690
4691	if invalidParams.Len() > 0 {
4692		return invalidParams
4693	}
4694	return nil
4695}
4696
4697// SetAppId sets the AppId field's value.
4698func (s *DeleteTokenInput) SetAppId(v string) *DeleteTokenInput {
4699	s.AppId = &v
4700	return s
4701}
4702
4703// SetSessionId sets the SessionId field's value.
4704func (s *DeleteTokenInput) SetSessionId(v string) *DeleteTokenInput {
4705	s.SessionId = &v
4706	return s
4707}
4708
4709type DeleteTokenOutput struct {
4710	_ struct{} `type:"structure"`
4711
4712	IsSuccess *bool `locationName:"isSuccess" type:"boolean"`
4713}
4714
4715// String returns the string representation.
4716//
4717// API parameter values that are decorated as "sensitive" in the API will not
4718// be included in the string output. The member name will be present, but the
4719// value will be replaced with "sensitive".
4720func (s DeleteTokenOutput) String() string {
4721	return awsutil.Prettify(s)
4722}
4723
4724// GoString returns the string representation.
4725//
4726// API parameter values that are decorated as "sensitive" in the API will not
4727// be included in the string output. The member name will be present, but the
4728// value will be replaced with "sensitive".
4729func (s DeleteTokenOutput) GoString() string {
4730	return s.String()
4731}
4732
4733// SetIsSuccess sets the IsSuccess field's value.
4734func (s *DeleteTokenOutput) SetIsSuccess(v bool) *DeleteTokenOutput {
4735	s.IsSuccess = &v
4736	return s
4737}
4738
4739type EmailSettings struct {
4740	_ struct{} `type:"structure"`
4741
4742	// The body of the email.
4743	EmailMessage *string `locationName:"emailMessage" type:"string"`
4744
4745	// The subject of the email.
4746	EmailSubject *string `locationName:"emailSubject" type:"string"`
4747}
4748
4749// String returns the string representation.
4750//
4751// API parameter values that are decorated as "sensitive" in the API will not
4752// be included in the string output. The member name will be present, but the
4753// value will be replaced with "sensitive".
4754func (s EmailSettings) String() string {
4755	return awsutil.Prettify(s)
4756}
4757
4758// GoString returns the string representation.
4759//
4760// API parameter values that are decorated as "sensitive" in the API will not
4761// be included in the string output. The member name will be present, but the
4762// value will be replaced with "sensitive".
4763func (s EmailSettings) GoString() string {
4764	return s.String()
4765}
4766
4767// SetEmailMessage sets the EmailMessage field's value.
4768func (s *EmailSettings) SetEmailMessage(v string) *EmailSettings {
4769	s.EmailMessage = &v
4770	return s
4771}
4772
4773// SetEmailSubject sets the EmailSubject field's value.
4774func (s *EmailSettings) SetEmailSubject(v string) *EmailSettings {
4775	s.EmailSubject = &v
4776	return s
4777}
4778
4779// An error returned if there's a temporary issue with the service.
4780type GatewayTimeoutException struct {
4781	_            struct{}                  `type:"structure"`
4782	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
4783
4784	Message_ *string `locationName:"message" type:"string"`
4785}
4786
4787// String returns the string representation.
4788//
4789// API parameter values that are decorated as "sensitive" in the API will not
4790// be included in the string output. The member name will be present, but the
4791// value will be replaced with "sensitive".
4792func (s GatewayTimeoutException) String() string {
4793	return awsutil.Prettify(s)
4794}
4795
4796// GoString returns the string representation.
4797//
4798// API parameter values that are decorated as "sensitive" in the API will not
4799// be included in the string output. The member name will be present, but the
4800// value will be replaced with "sensitive".
4801func (s GatewayTimeoutException) GoString() string {
4802	return s.String()
4803}
4804
4805func newErrorGatewayTimeoutException(v protocol.ResponseMetadata) error {
4806	return &GatewayTimeoutException{
4807		RespMetadata: v,
4808	}
4809}
4810
4811// Code returns the exception type name.
4812func (s *GatewayTimeoutException) Code() string {
4813	return "GatewayTimeoutException"
4814}
4815
4816// Message returns the exception's message.
4817func (s *GatewayTimeoutException) Message() string {
4818	if s.Message_ != nil {
4819		return *s.Message_
4820	}
4821	return ""
4822}
4823
4824// OrigErr always returns nil, satisfies awserr.Error interface.
4825func (s *GatewayTimeoutException) OrigErr() error {
4826	return nil
4827}
4828
4829func (s *GatewayTimeoutException) Error() string {
4830	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
4831}
4832
4833// Status code returns the HTTP status code for the request's response error.
4834func (s *GatewayTimeoutException) StatusCode() int {
4835	return s.RespMetadata.StatusCode
4836}
4837
4838// RequestID returns the service's response RequestID for request.
4839func (s *GatewayTimeoutException) RequestID() string {
4840	return s.RespMetadata.RequestID
4841}
4842
4843type GenerateBackendAPIModelsInput struct {
4844	_ struct{} `type:"structure"`
4845
4846	// AppId is a required field
4847	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4848
4849	// BackendEnvironmentName is a required field
4850	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
4851
4852	// ResourceName is a required field
4853	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
4854}
4855
4856// String returns the string representation.
4857//
4858// API parameter values that are decorated as "sensitive" in the API will not
4859// be included in the string output. The member name will be present, but the
4860// value will be replaced with "sensitive".
4861func (s GenerateBackendAPIModelsInput) String() string {
4862	return awsutil.Prettify(s)
4863}
4864
4865// GoString returns the string representation.
4866//
4867// API parameter values that are decorated as "sensitive" in the API will not
4868// be included in the string output. The member name will be present, but the
4869// value will be replaced with "sensitive".
4870func (s GenerateBackendAPIModelsInput) GoString() string {
4871	return s.String()
4872}
4873
4874// Validate inspects the fields of the type to determine if they are valid.
4875func (s *GenerateBackendAPIModelsInput) Validate() error {
4876	invalidParams := request.ErrInvalidParams{Context: "GenerateBackendAPIModelsInput"}
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 *GenerateBackendAPIModelsInput) SetAppId(v string) *GenerateBackendAPIModelsInput {
4901	s.AppId = &v
4902	return s
4903}
4904
4905// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4906func (s *GenerateBackendAPIModelsInput) SetBackendEnvironmentName(v string) *GenerateBackendAPIModelsInput {
4907	s.BackendEnvironmentName = &v
4908	return s
4909}
4910
4911// SetResourceName sets the ResourceName field's value.
4912func (s *GenerateBackendAPIModelsInput) SetResourceName(v string) *GenerateBackendAPIModelsInput {
4913	s.ResourceName = &v
4914	return s
4915}
4916
4917type GenerateBackendAPIModelsOutput 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	JobId *string `locationName:"jobId" type:"string"`
4927
4928	Operation *string `locationName:"operation" type:"string"`
4929
4930	Status *string `locationName:"status" type:"string"`
4931}
4932
4933// String returns the string representation.
4934//
4935// API parameter values that are decorated as "sensitive" in the API will not
4936// be included in the string output. The member name will be present, but the
4937// value will be replaced with "sensitive".
4938func (s GenerateBackendAPIModelsOutput) String() string {
4939	return awsutil.Prettify(s)
4940}
4941
4942// GoString returns the string representation.
4943//
4944// API parameter values that are decorated as "sensitive" in the API will not
4945// be included in the string output. The member name will be present, but the
4946// value will be replaced with "sensitive".
4947func (s GenerateBackendAPIModelsOutput) GoString() string {
4948	return s.String()
4949}
4950
4951// SetAppId sets the AppId field's value.
4952func (s *GenerateBackendAPIModelsOutput) SetAppId(v string) *GenerateBackendAPIModelsOutput {
4953	s.AppId = &v
4954	return s
4955}
4956
4957// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
4958func (s *GenerateBackendAPIModelsOutput) SetBackendEnvironmentName(v string) *GenerateBackendAPIModelsOutput {
4959	s.BackendEnvironmentName = &v
4960	return s
4961}
4962
4963// SetError sets the Error field's value.
4964func (s *GenerateBackendAPIModelsOutput) SetError(v string) *GenerateBackendAPIModelsOutput {
4965	s.Error = &v
4966	return s
4967}
4968
4969// SetJobId sets the JobId field's value.
4970func (s *GenerateBackendAPIModelsOutput) SetJobId(v string) *GenerateBackendAPIModelsOutput {
4971	s.JobId = &v
4972	return s
4973}
4974
4975// SetOperation sets the Operation field's value.
4976func (s *GenerateBackendAPIModelsOutput) SetOperation(v string) *GenerateBackendAPIModelsOutput {
4977	s.Operation = &v
4978	return s
4979}
4980
4981// SetStatus sets the Status field's value.
4982func (s *GenerateBackendAPIModelsOutput) SetStatus(v string) *GenerateBackendAPIModelsOutput {
4983	s.Status = &v
4984	return s
4985}
4986
4987type GetBackendAPIInput struct {
4988	_ struct{} `type:"structure"`
4989
4990	// AppId is a required field
4991	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
4992
4993	// BackendEnvironmentName is a required field
4994	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
4995
4996	// The resource config for the data model, configured as a part of the Amplify
4997	// project.
4998	ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure"`
4999
5000	// ResourceName is a required field
5001	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
5002}
5003
5004// String returns the string representation.
5005//
5006// API parameter values that are decorated as "sensitive" in the API will not
5007// be included in the string output. The member name will be present, but the
5008// value will be replaced with "sensitive".
5009func (s GetBackendAPIInput) String() string {
5010	return awsutil.Prettify(s)
5011}
5012
5013// GoString returns the string representation.
5014//
5015// API parameter values that are decorated as "sensitive" in the API will not
5016// be included in the string output. The member name will be present, but the
5017// value will be replaced with "sensitive".
5018func (s GetBackendAPIInput) GoString() string {
5019	return s.String()
5020}
5021
5022// Validate inspects the fields of the type to determine if they are valid.
5023func (s *GetBackendAPIInput) Validate() error {
5024	invalidParams := request.ErrInvalidParams{Context: "GetBackendAPIInput"}
5025	if s.AppId == nil {
5026		invalidParams.Add(request.NewErrParamRequired("AppId"))
5027	}
5028	if s.AppId != nil && len(*s.AppId) < 1 {
5029		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5030	}
5031	if s.BackendEnvironmentName == nil {
5032		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
5033	}
5034	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
5035		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
5036	}
5037	if s.ResourceName == nil {
5038		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
5039	}
5040
5041	if invalidParams.Len() > 0 {
5042		return invalidParams
5043	}
5044	return nil
5045}
5046
5047// SetAppId sets the AppId field's value.
5048func (s *GetBackendAPIInput) SetAppId(v string) *GetBackendAPIInput {
5049	s.AppId = &v
5050	return s
5051}
5052
5053// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5054func (s *GetBackendAPIInput) SetBackendEnvironmentName(v string) *GetBackendAPIInput {
5055	s.BackendEnvironmentName = &v
5056	return s
5057}
5058
5059// SetResourceConfig sets the ResourceConfig field's value.
5060func (s *GetBackendAPIInput) SetResourceConfig(v *BackendAPIResourceConfig) *GetBackendAPIInput {
5061	s.ResourceConfig = v
5062	return s
5063}
5064
5065// SetResourceName sets the ResourceName field's value.
5066func (s *GetBackendAPIInput) SetResourceName(v string) *GetBackendAPIInput {
5067	s.ResourceName = &v
5068	return s
5069}
5070
5071type GetBackendAPIModelsInput struct {
5072	_ struct{} `type:"structure"`
5073
5074	// AppId is a required field
5075	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5076
5077	// BackendEnvironmentName is a required field
5078	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
5079
5080	// ResourceName is a required field
5081	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
5082}
5083
5084// String returns the string representation.
5085//
5086// API parameter values that are decorated as "sensitive" in the API will not
5087// be included in the string output. The member name will be present, but the
5088// value will be replaced with "sensitive".
5089func (s GetBackendAPIModelsInput) String() string {
5090	return awsutil.Prettify(s)
5091}
5092
5093// GoString returns the string representation.
5094//
5095// API parameter values that are decorated as "sensitive" in the API will not
5096// be included in the string output. The member name will be present, but the
5097// value will be replaced with "sensitive".
5098func (s GetBackendAPIModelsInput) GoString() string {
5099	return s.String()
5100}
5101
5102// Validate inspects the fields of the type to determine if they are valid.
5103func (s *GetBackendAPIModelsInput) Validate() error {
5104	invalidParams := request.ErrInvalidParams{Context: "GetBackendAPIModelsInput"}
5105	if s.AppId == nil {
5106		invalidParams.Add(request.NewErrParamRequired("AppId"))
5107	}
5108	if s.AppId != nil && len(*s.AppId) < 1 {
5109		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5110	}
5111	if s.BackendEnvironmentName == nil {
5112		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
5113	}
5114	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
5115		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
5116	}
5117	if s.ResourceName == nil {
5118		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
5119	}
5120
5121	if invalidParams.Len() > 0 {
5122		return invalidParams
5123	}
5124	return nil
5125}
5126
5127// SetAppId sets the AppId field's value.
5128func (s *GetBackendAPIModelsInput) SetAppId(v string) *GetBackendAPIModelsInput {
5129	s.AppId = &v
5130	return s
5131}
5132
5133// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5134func (s *GetBackendAPIModelsInput) SetBackendEnvironmentName(v string) *GetBackendAPIModelsInput {
5135	s.BackendEnvironmentName = &v
5136	return s
5137}
5138
5139// SetResourceName sets the ResourceName field's value.
5140func (s *GetBackendAPIModelsInput) SetResourceName(v string) *GetBackendAPIModelsInput {
5141	s.ResourceName = &v
5142	return s
5143}
5144
5145type GetBackendAPIModelsOutput struct {
5146	_ struct{} `type:"structure"`
5147
5148	Models *string `locationName:"models" type:"string"`
5149
5150	Status *string `locationName:"status" type:"string" enum:"Status"`
5151}
5152
5153// String returns the string representation.
5154//
5155// API parameter values that are decorated as "sensitive" in the API will not
5156// be included in the string output. The member name will be present, but the
5157// value will be replaced with "sensitive".
5158func (s GetBackendAPIModelsOutput) String() string {
5159	return awsutil.Prettify(s)
5160}
5161
5162// GoString returns the string representation.
5163//
5164// API parameter values that are decorated as "sensitive" in the API will not
5165// be included in the string output. The member name will be present, but the
5166// value will be replaced with "sensitive".
5167func (s GetBackendAPIModelsOutput) GoString() string {
5168	return s.String()
5169}
5170
5171// SetModels sets the Models field's value.
5172func (s *GetBackendAPIModelsOutput) SetModels(v string) *GetBackendAPIModelsOutput {
5173	s.Models = &v
5174	return s
5175}
5176
5177// SetStatus sets the Status field's value.
5178func (s *GetBackendAPIModelsOutput) SetStatus(v string) *GetBackendAPIModelsOutput {
5179	s.Status = &v
5180	return s
5181}
5182
5183type GetBackendAPIOutput struct {
5184	_ struct{} `type:"structure"`
5185
5186	AppId *string `locationName:"appId" type:"string"`
5187
5188	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
5189
5190	Error *string `locationName:"error" type:"string"`
5191
5192	// The resource config for the data model, configured as a part of the Amplify
5193	// project.
5194	ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure"`
5195
5196	ResourceName *string `locationName:"resourceName" type:"string"`
5197}
5198
5199// String returns the string representation.
5200//
5201// API parameter values that are decorated as "sensitive" in the API will not
5202// be included in the string output. The member name will be present, but the
5203// value will be replaced with "sensitive".
5204func (s GetBackendAPIOutput) String() string {
5205	return awsutil.Prettify(s)
5206}
5207
5208// GoString returns the string representation.
5209//
5210// API parameter values that are decorated as "sensitive" in the API will not
5211// be included in the string output. The member name will be present, but the
5212// value will be replaced with "sensitive".
5213func (s GetBackendAPIOutput) GoString() string {
5214	return s.String()
5215}
5216
5217// SetAppId sets the AppId field's value.
5218func (s *GetBackendAPIOutput) SetAppId(v string) *GetBackendAPIOutput {
5219	s.AppId = &v
5220	return s
5221}
5222
5223// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5224func (s *GetBackendAPIOutput) SetBackendEnvironmentName(v string) *GetBackendAPIOutput {
5225	s.BackendEnvironmentName = &v
5226	return s
5227}
5228
5229// SetError sets the Error field's value.
5230func (s *GetBackendAPIOutput) SetError(v string) *GetBackendAPIOutput {
5231	s.Error = &v
5232	return s
5233}
5234
5235// SetResourceConfig sets the ResourceConfig field's value.
5236func (s *GetBackendAPIOutput) SetResourceConfig(v *BackendAPIResourceConfig) *GetBackendAPIOutput {
5237	s.ResourceConfig = v
5238	return s
5239}
5240
5241// SetResourceName sets the ResourceName field's value.
5242func (s *GetBackendAPIOutput) SetResourceName(v string) *GetBackendAPIOutput {
5243	s.ResourceName = &v
5244	return s
5245}
5246
5247type GetBackendAuthInput struct {
5248	_ struct{} `type:"structure"`
5249
5250	// AppId is a required field
5251	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5252
5253	// BackendEnvironmentName is a required field
5254	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
5255
5256	// ResourceName is a required field
5257	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
5258}
5259
5260// String returns the string representation.
5261//
5262// API parameter values that are decorated as "sensitive" in the API will not
5263// be included in the string output. The member name will be present, but the
5264// value will be replaced with "sensitive".
5265func (s GetBackendAuthInput) String() string {
5266	return awsutil.Prettify(s)
5267}
5268
5269// GoString returns the string representation.
5270//
5271// API parameter values that are decorated as "sensitive" in the API will not
5272// be included in the string output. The member name will be present, but the
5273// value will be replaced with "sensitive".
5274func (s GetBackendAuthInput) GoString() string {
5275	return s.String()
5276}
5277
5278// Validate inspects the fields of the type to determine if they are valid.
5279func (s *GetBackendAuthInput) Validate() error {
5280	invalidParams := request.ErrInvalidParams{Context: "GetBackendAuthInput"}
5281	if s.AppId == nil {
5282		invalidParams.Add(request.NewErrParamRequired("AppId"))
5283	}
5284	if s.AppId != nil && len(*s.AppId) < 1 {
5285		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5286	}
5287	if s.BackendEnvironmentName == nil {
5288		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
5289	}
5290	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
5291		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
5292	}
5293	if s.ResourceName == nil {
5294		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
5295	}
5296
5297	if invalidParams.Len() > 0 {
5298		return invalidParams
5299	}
5300	return nil
5301}
5302
5303// SetAppId sets the AppId field's value.
5304func (s *GetBackendAuthInput) SetAppId(v string) *GetBackendAuthInput {
5305	s.AppId = &v
5306	return s
5307}
5308
5309// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5310func (s *GetBackendAuthInput) SetBackendEnvironmentName(v string) *GetBackendAuthInput {
5311	s.BackendEnvironmentName = &v
5312	return s
5313}
5314
5315// SetResourceName sets the ResourceName field's value.
5316func (s *GetBackendAuthInput) SetResourceName(v string) *GetBackendAuthInput {
5317	s.ResourceName = &v
5318	return s
5319}
5320
5321type GetBackendAuthOutput struct {
5322	_ struct{} `type:"structure"`
5323
5324	AppId *string `locationName:"appId" type:"string"`
5325
5326	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
5327
5328	Error *string `locationName:"error" type:"string"`
5329
5330	// Defines the resource configuration when creating an auth resource in your
5331	// Amplify project.
5332	ResourceConfig *CreateBackendAuthResourceConfig `locationName:"resourceConfig" type:"structure"`
5333
5334	ResourceName *string `locationName:"resourceName" type:"string"`
5335}
5336
5337// String returns the string representation.
5338//
5339// API parameter values that are decorated as "sensitive" in the API will not
5340// be included in the string output. The member name will be present, but the
5341// value will be replaced with "sensitive".
5342func (s GetBackendAuthOutput) String() string {
5343	return awsutil.Prettify(s)
5344}
5345
5346// GoString returns the string representation.
5347//
5348// API parameter values that are decorated as "sensitive" in the API will not
5349// be included in the string output. The member name will be present, but the
5350// value will be replaced with "sensitive".
5351func (s GetBackendAuthOutput) GoString() string {
5352	return s.String()
5353}
5354
5355// SetAppId sets the AppId field's value.
5356func (s *GetBackendAuthOutput) SetAppId(v string) *GetBackendAuthOutput {
5357	s.AppId = &v
5358	return s
5359}
5360
5361// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5362func (s *GetBackendAuthOutput) SetBackendEnvironmentName(v string) *GetBackendAuthOutput {
5363	s.BackendEnvironmentName = &v
5364	return s
5365}
5366
5367// SetError sets the Error field's value.
5368func (s *GetBackendAuthOutput) SetError(v string) *GetBackendAuthOutput {
5369	s.Error = &v
5370	return s
5371}
5372
5373// SetResourceConfig sets the ResourceConfig field's value.
5374func (s *GetBackendAuthOutput) SetResourceConfig(v *CreateBackendAuthResourceConfig) *GetBackendAuthOutput {
5375	s.ResourceConfig = v
5376	return s
5377}
5378
5379// SetResourceName sets the ResourceName field's value.
5380func (s *GetBackendAuthOutput) SetResourceName(v string) *GetBackendAuthOutput {
5381	s.ResourceName = &v
5382	return s
5383}
5384
5385type GetBackendInput struct {
5386	_ struct{} `type:"structure"`
5387
5388	// AppId is a required field
5389	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5390
5391	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
5392}
5393
5394// String returns the string representation.
5395//
5396// API parameter values that are decorated as "sensitive" in the API will not
5397// be included in the string output. The member name will be present, but the
5398// value will be replaced with "sensitive".
5399func (s GetBackendInput) String() string {
5400	return awsutil.Prettify(s)
5401}
5402
5403// GoString returns the string representation.
5404//
5405// API parameter values that are decorated as "sensitive" in the API will not
5406// be included in the string output. The member name will be present, but the
5407// value will be replaced with "sensitive".
5408func (s GetBackendInput) GoString() string {
5409	return s.String()
5410}
5411
5412// Validate inspects the fields of the type to determine if they are valid.
5413func (s *GetBackendInput) Validate() error {
5414	invalidParams := request.ErrInvalidParams{Context: "GetBackendInput"}
5415	if s.AppId == nil {
5416		invalidParams.Add(request.NewErrParamRequired("AppId"))
5417	}
5418	if s.AppId != nil && len(*s.AppId) < 1 {
5419		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5420	}
5421
5422	if invalidParams.Len() > 0 {
5423		return invalidParams
5424	}
5425	return nil
5426}
5427
5428// SetAppId sets the AppId field's value.
5429func (s *GetBackendInput) SetAppId(v string) *GetBackendInput {
5430	s.AppId = &v
5431	return s
5432}
5433
5434// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5435func (s *GetBackendInput) SetBackendEnvironmentName(v string) *GetBackendInput {
5436	s.BackendEnvironmentName = &v
5437	return s
5438}
5439
5440type GetBackendJobInput struct {
5441	_ struct{} `type:"structure" nopayload:"true"`
5442
5443	// AppId is a required field
5444	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5445
5446	// BackendEnvironmentName is a required field
5447	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
5448
5449	// JobId is a required field
5450	JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
5451}
5452
5453// String returns the string representation.
5454//
5455// API parameter values that are decorated as "sensitive" in the API will not
5456// be included in the string output. The member name will be present, but the
5457// value will be replaced with "sensitive".
5458func (s GetBackendJobInput) String() string {
5459	return awsutil.Prettify(s)
5460}
5461
5462// GoString returns the string representation.
5463//
5464// API parameter values that are decorated as "sensitive" in the API will not
5465// be included in the string output. The member name will be present, but the
5466// value will be replaced with "sensitive".
5467func (s GetBackendJobInput) GoString() string {
5468	return s.String()
5469}
5470
5471// Validate inspects the fields of the type to determine if they are valid.
5472func (s *GetBackendJobInput) Validate() error {
5473	invalidParams := request.ErrInvalidParams{Context: "GetBackendJobInput"}
5474	if s.AppId == nil {
5475		invalidParams.Add(request.NewErrParamRequired("AppId"))
5476	}
5477	if s.AppId != nil && len(*s.AppId) < 1 {
5478		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5479	}
5480	if s.BackendEnvironmentName == nil {
5481		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
5482	}
5483	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
5484		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
5485	}
5486	if s.JobId == nil {
5487		invalidParams.Add(request.NewErrParamRequired("JobId"))
5488	}
5489	if s.JobId != nil && len(*s.JobId) < 1 {
5490		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
5491	}
5492
5493	if invalidParams.Len() > 0 {
5494		return invalidParams
5495	}
5496	return nil
5497}
5498
5499// SetAppId sets the AppId field's value.
5500func (s *GetBackendJobInput) SetAppId(v string) *GetBackendJobInput {
5501	s.AppId = &v
5502	return s
5503}
5504
5505// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5506func (s *GetBackendJobInput) SetBackendEnvironmentName(v string) *GetBackendJobInput {
5507	s.BackendEnvironmentName = &v
5508	return s
5509}
5510
5511// SetJobId sets the JobId field's value.
5512func (s *GetBackendJobInput) SetJobId(v string) *GetBackendJobInput {
5513	s.JobId = &v
5514	return s
5515}
5516
5517type GetBackendJobOutput struct {
5518	_ struct{} `type:"structure"`
5519
5520	AppId *string `locationName:"appId" type:"string"`
5521
5522	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
5523
5524	CreateTime *string `locationName:"createTime" type:"string"`
5525
5526	Error *string `locationName:"error" type:"string"`
5527
5528	JobId *string `locationName:"jobId" type:"string"`
5529
5530	Operation *string `locationName:"operation" type:"string"`
5531
5532	Status *string `locationName:"status" type:"string"`
5533
5534	UpdateTime *string `locationName:"updateTime" type:"string"`
5535}
5536
5537// String returns the string representation.
5538//
5539// API parameter values that are decorated as "sensitive" in the API will not
5540// be included in the string output. The member name will be present, but the
5541// value will be replaced with "sensitive".
5542func (s GetBackendJobOutput) String() string {
5543	return awsutil.Prettify(s)
5544}
5545
5546// GoString returns the string representation.
5547//
5548// API parameter values that are decorated as "sensitive" in the API will not
5549// be included in the string output. The member name will be present, but the
5550// value will be replaced with "sensitive".
5551func (s GetBackendJobOutput) GoString() string {
5552	return s.String()
5553}
5554
5555// SetAppId sets the AppId field's value.
5556func (s *GetBackendJobOutput) SetAppId(v string) *GetBackendJobOutput {
5557	s.AppId = &v
5558	return s
5559}
5560
5561// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5562func (s *GetBackendJobOutput) SetBackendEnvironmentName(v string) *GetBackendJobOutput {
5563	s.BackendEnvironmentName = &v
5564	return s
5565}
5566
5567// SetCreateTime sets the CreateTime field's value.
5568func (s *GetBackendJobOutput) SetCreateTime(v string) *GetBackendJobOutput {
5569	s.CreateTime = &v
5570	return s
5571}
5572
5573// SetError sets the Error field's value.
5574func (s *GetBackendJobOutput) SetError(v string) *GetBackendJobOutput {
5575	s.Error = &v
5576	return s
5577}
5578
5579// SetJobId sets the JobId field's value.
5580func (s *GetBackendJobOutput) SetJobId(v string) *GetBackendJobOutput {
5581	s.JobId = &v
5582	return s
5583}
5584
5585// SetOperation sets the Operation field's value.
5586func (s *GetBackendJobOutput) SetOperation(v string) *GetBackendJobOutput {
5587	s.Operation = &v
5588	return s
5589}
5590
5591// SetStatus sets the Status field's value.
5592func (s *GetBackendJobOutput) SetStatus(v string) *GetBackendJobOutput {
5593	s.Status = &v
5594	return s
5595}
5596
5597// SetUpdateTime sets the UpdateTime field's value.
5598func (s *GetBackendJobOutput) SetUpdateTime(v string) *GetBackendJobOutput {
5599	s.UpdateTime = &v
5600	return s
5601}
5602
5603type GetBackendOutput struct {
5604	_ struct{} `type:"structure"`
5605
5606	AmplifyFeatureFlags *string `locationName:"amplifyFeatureFlags" type:"string"`
5607
5608	AmplifyMetaConfig *string `locationName:"amplifyMetaConfig" type:"string"`
5609
5610	AppId *string `locationName:"appId" type:"string"`
5611
5612	AppName *string `locationName:"appName" type:"string"`
5613
5614	BackendEnvironmentList []*string `locationName:"backendEnvironmentList" type:"list"`
5615
5616	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
5617
5618	Error *string `locationName:"error" type:"string"`
5619}
5620
5621// String returns the string representation.
5622//
5623// API parameter values that are decorated as "sensitive" in the API will not
5624// be included in the string output. The member name will be present, but the
5625// value will be replaced with "sensitive".
5626func (s GetBackendOutput) String() string {
5627	return awsutil.Prettify(s)
5628}
5629
5630// GoString returns the string representation.
5631//
5632// API parameter values that are decorated as "sensitive" in the API will not
5633// be included in the string output. The member name will be present, but the
5634// value will be replaced with "sensitive".
5635func (s GetBackendOutput) GoString() string {
5636	return s.String()
5637}
5638
5639// SetAmplifyFeatureFlags sets the AmplifyFeatureFlags field's value.
5640func (s *GetBackendOutput) SetAmplifyFeatureFlags(v string) *GetBackendOutput {
5641	s.AmplifyFeatureFlags = &v
5642	return s
5643}
5644
5645// SetAmplifyMetaConfig sets the AmplifyMetaConfig field's value.
5646func (s *GetBackendOutput) SetAmplifyMetaConfig(v string) *GetBackendOutput {
5647	s.AmplifyMetaConfig = &v
5648	return s
5649}
5650
5651// SetAppId sets the AppId field's value.
5652func (s *GetBackendOutput) SetAppId(v string) *GetBackendOutput {
5653	s.AppId = &v
5654	return s
5655}
5656
5657// SetAppName sets the AppName field's value.
5658func (s *GetBackendOutput) SetAppName(v string) *GetBackendOutput {
5659	s.AppName = &v
5660	return s
5661}
5662
5663// SetBackendEnvironmentList sets the BackendEnvironmentList field's value.
5664func (s *GetBackendOutput) SetBackendEnvironmentList(v []*string) *GetBackendOutput {
5665	s.BackendEnvironmentList = v
5666	return s
5667}
5668
5669// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5670func (s *GetBackendOutput) SetBackendEnvironmentName(v string) *GetBackendOutput {
5671	s.BackendEnvironmentName = &v
5672	return s
5673}
5674
5675// SetError sets the Error field's value.
5676func (s *GetBackendOutput) SetError(v string) *GetBackendOutput {
5677	s.Error = &v
5678	return s
5679}
5680
5681type GetTokenInput struct {
5682	_ struct{} `type:"structure" nopayload:"true"`
5683
5684	// AppId is a required field
5685	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5686
5687	// SessionId is a required field
5688	SessionId *string `location:"uri" locationName:"sessionId" type:"string" required:"true"`
5689}
5690
5691// String returns the string representation.
5692//
5693// API parameter values that are decorated as "sensitive" in the API will not
5694// be included in the string output. The member name will be present, but the
5695// value will be replaced with "sensitive".
5696func (s GetTokenInput) String() string {
5697	return awsutil.Prettify(s)
5698}
5699
5700// GoString returns the string representation.
5701//
5702// API parameter values that are decorated as "sensitive" in the API will not
5703// be included in the string output. The member name will be present, but the
5704// value will be replaced with "sensitive".
5705func (s GetTokenInput) GoString() string {
5706	return s.String()
5707}
5708
5709// Validate inspects the fields of the type to determine if they are valid.
5710func (s *GetTokenInput) Validate() error {
5711	invalidParams := request.ErrInvalidParams{Context: "GetTokenInput"}
5712	if s.AppId == nil {
5713		invalidParams.Add(request.NewErrParamRequired("AppId"))
5714	}
5715	if s.AppId != nil && len(*s.AppId) < 1 {
5716		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5717	}
5718	if s.SessionId == nil {
5719		invalidParams.Add(request.NewErrParamRequired("SessionId"))
5720	}
5721	if s.SessionId != nil && len(*s.SessionId) < 1 {
5722		invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
5723	}
5724
5725	if invalidParams.Len() > 0 {
5726		return invalidParams
5727	}
5728	return nil
5729}
5730
5731// SetAppId sets the AppId field's value.
5732func (s *GetTokenInput) SetAppId(v string) *GetTokenInput {
5733	s.AppId = &v
5734	return s
5735}
5736
5737// SetSessionId sets the SessionId field's value.
5738func (s *GetTokenInput) SetSessionId(v string) *GetTokenInput {
5739	s.SessionId = &v
5740	return s
5741}
5742
5743type GetTokenOutput struct {
5744	_ struct{} `type:"structure"`
5745
5746	AppId *string `locationName:"appId" type:"string"`
5747
5748	ChallengeCode *string `locationName:"challengeCode" type:"string"`
5749
5750	SessionId *string `locationName:"sessionId" type:"string"`
5751
5752	Ttl *string `locationName:"ttl" type:"string"`
5753}
5754
5755// String returns the string representation.
5756//
5757// API parameter values that are decorated as "sensitive" in the API will not
5758// be included in the string output. The member name will be present, but the
5759// value will be replaced with "sensitive".
5760func (s GetTokenOutput) String() string {
5761	return awsutil.Prettify(s)
5762}
5763
5764// GoString returns the string representation.
5765//
5766// API parameter values that are decorated as "sensitive" in the API will not
5767// be included in the string output. The member name will be present, but the
5768// value will be replaced with "sensitive".
5769func (s GetTokenOutput) GoString() string {
5770	return s.String()
5771}
5772
5773// SetAppId sets the AppId field's value.
5774func (s *GetTokenOutput) SetAppId(v string) *GetTokenOutput {
5775	s.AppId = &v
5776	return s
5777}
5778
5779// SetChallengeCode sets the ChallengeCode field's value.
5780func (s *GetTokenOutput) SetChallengeCode(v string) *GetTokenOutput {
5781	s.ChallengeCode = &v
5782	return s
5783}
5784
5785// SetSessionId sets the SessionId field's value.
5786func (s *GetTokenOutput) SetSessionId(v string) *GetTokenOutput {
5787	s.SessionId = &v
5788	return s
5789}
5790
5791// SetTtl sets the Ttl field's value.
5792func (s *GetTokenOutput) SetTtl(v string) *GetTokenOutput {
5793	s.Ttl = &v
5794	return s
5795}
5796
5797type ImportBackendAuthInput struct {
5798	_ struct{} `type:"structure"`
5799
5800	// AppId is a required field
5801	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5802
5803	// BackendEnvironmentName is a required field
5804	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
5805
5806	IdentityPoolId *string `locationName:"identityPoolId" type:"string"`
5807
5808	// NativeClientId is a required field
5809	NativeClientId *string `locationName:"nativeClientId" type:"string" required:"true"`
5810
5811	// UserPoolId is a required field
5812	UserPoolId *string `locationName:"userPoolId" type:"string" required:"true"`
5813
5814	// WebClientId is a required field
5815	WebClientId *string `locationName:"webClientId" type:"string" required:"true"`
5816}
5817
5818// String returns the string representation.
5819//
5820// API parameter values that are decorated as "sensitive" in the API will not
5821// be included in the string output. The member name will be present, but the
5822// value will be replaced with "sensitive".
5823func (s ImportBackendAuthInput) String() string {
5824	return awsutil.Prettify(s)
5825}
5826
5827// GoString returns the string representation.
5828//
5829// API parameter values that are decorated as "sensitive" in the API will not
5830// be included in the string output. The member name will be present, but the
5831// value will be replaced with "sensitive".
5832func (s ImportBackendAuthInput) GoString() string {
5833	return s.String()
5834}
5835
5836// Validate inspects the fields of the type to determine if they are valid.
5837func (s *ImportBackendAuthInput) Validate() error {
5838	invalidParams := request.ErrInvalidParams{Context: "ImportBackendAuthInput"}
5839	if s.AppId == nil {
5840		invalidParams.Add(request.NewErrParamRequired("AppId"))
5841	}
5842	if s.AppId != nil && len(*s.AppId) < 1 {
5843		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
5844	}
5845	if s.BackendEnvironmentName == nil {
5846		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
5847	}
5848	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
5849		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
5850	}
5851	if s.NativeClientId == nil {
5852		invalidParams.Add(request.NewErrParamRequired("NativeClientId"))
5853	}
5854	if s.UserPoolId == nil {
5855		invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
5856	}
5857	if s.WebClientId == nil {
5858		invalidParams.Add(request.NewErrParamRequired("WebClientId"))
5859	}
5860
5861	if invalidParams.Len() > 0 {
5862		return invalidParams
5863	}
5864	return nil
5865}
5866
5867// SetAppId sets the AppId field's value.
5868func (s *ImportBackendAuthInput) SetAppId(v string) *ImportBackendAuthInput {
5869	s.AppId = &v
5870	return s
5871}
5872
5873// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5874func (s *ImportBackendAuthInput) SetBackendEnvironmentName(v string) *ImportBackendAuthInput {
5875	s.BackendEnvironmentName = &v
5876	return s
5877}
5878
5879// SetIdentityPoolId sets the IdentityPoolId field's value.
5880func (s *ImportBackendAuthInput) SetIdentityPoolId(v string) *ImportBackendAuthInput {
5881	s.IdentityPoolId = &v
5882	return s
5883}
5884
5885// SetNativeClientId sets the NativeClientId field's value.
5886func (s *ImportBackendAuthInput) SetNativeClientId(v string) *ImportBackendAuthInput {
5887	s.NativeClientId = &v
5888	return s
5889}
5890
5891// SetUserPoolId sets the UserPoolId field's value.
5892func (s *ImportBackendAuthInput) SetUserPoolId(v string) *ImportBackendAuthInput {
5893	s.UserPoolId = &v
5894	return s
5895}
5896
5897// SetWebClientId sets the WebClientId field's value.
5898func (s *ImportBackendAuthInput) SetWebClientId(v string) *ImportBackendAuthInput {
5899	s.WebClientId = &v
5900	return s
5901}
5902
5903type ImportBackendAuthOutput struct {
5904	_ struct{} `type:"structure"`
5905
5906	AppId *string `locationName:"appId" type:"string"`
5907
5908	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
5909
5910	Error *string `locationName:"error" type:"string"`
5911
5912	JobId *string `locationName:"jobId" type:"string"`
5913
5914	Operation *string `locationName:"operation" type:"string"`
5915
5916	Status *string `locationName:"status" type:"string"`
5917}
5918
5919// String returns the string representation.
5920//
5921// API parameter values that are decorated as "sensitive" in the API will not
5922// be included in the string output. The member name will be present, but the
5923// value will be replaced with "sensitive".
5924func (s ImportBackendAuthOutput) String() string {
5925	return awsutil.Prettify(s)
5926}
5927
5928// GoString returns the string representation.
5929//
5930// API parameter values that are decorated as "sensitive" in the API will not
5931// be included in the string output. The member name will be present, but the
5932// value will be replaced with "sensitive".
5933func (s ImportBackendAuthOutput) GoString() string {
5934	return s.String()
5935}
5936
5937// SetAppId sets the AppId field's value.
5938func (s *ImportBackendAuthOutput) SetAppId(v string) *ImportBackendAuthOutput {
5939	s.AppId = &v
5940	return s
5941}
5942
5943// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
5944func (s *ImportBackendAuthOutput) SetBackendEnvironmentName(v string) *ImportBackendAuthOutput {
5945	s.BackendEnvironmentName = &v
5946	return s
5947}
5948
5949// SetError sets the Error field's value.
5950func (s *ImportBackendAuthOutput) SetError(v string) *ImportBackendAuthOutput {
5951	s.Error = &v
5952	return s
5953}
5954
5955// SetJobId sets the JobId field's value.
5956func (s *ImportBackendAuthOutput) SetJobId(v string) *ImportBackendAuthOutput {
5957	s.JobId = &v
5958	return s
5959}
5960
5961// SetOperation sets the Operation field's value.
5962func (s *ImportBackendAuthOutput) SetOperation(v string) *ImportBackendAuthOutput {
5963	s.Operation = &v
5964	return s
5965}
5966
5967// SetStatus sets the Status field's value.
5968func (s *ImportBackendAuthOutput) SetStatus(v string) *ImportBackendAuthOutput {
5969	s.Status = &v
5970	return s
5971}
5972
5973type ListBackendJobsInput struct {
5974	_ struct{} `type:"structure"`
5975
5976	// AppId is a required field
5977	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
5978
5979	// BackendEnvironmentName is a required field
5980	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
5981
5982	JobId *string `locationName:"jobId" type:"string"`
5983
5984	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
5985
5986	NextToken *string `locationName:"nextToken" type:"string"`
5987
5988	Operation *string `locationName:"operation" type:"string"`
5989
5990	Status *string `locationName:"status" type:"string"`
5991}
5992
5993// String returns the string representation.
5994//
5995// API parameter values that are decorated as "sensitive" in the API will not
5996// be included in the string output. The member name will be present, but the
5997// value will be replaced with "sensitive".
5998func (s ListBackendJobsInput) String() string {
5999	return awsutil.Prettify(s)
6000}
6001
6002// GoString returns the string representation.
6003//
6004// API parameter values that are decorated as "sensitive" in the API will not
6005// be included in the string output. The member name will be present, but the
6006// value will be replaced with "sensitive".
6007func (s ListBackendJobsInput) GoString() string {
6008	return s.String()
6009}
6010
6011// Validate inspects the fields of the type to determine if they are valid.
6012func (s *ListBackendJobsInput) Validate() error {
6013	invalidParams := request.ErrInvalidParams{Context: "ListBackendJobsInput"}
6014	if s.AppId == nil {
6015		invalidParams.Add(request.NewErrParamRequired("AppId"))
6016	}
6017	if s.AppId != nil && len(*s.AppId) < 1 {
6018		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6019	}
6020	if s.BackendEnvironmentName == nil {
6021		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
6022	}
6023	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
6024		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
6025	}
6026	if s.MaxResults != nil && *s.MaxResults < 1 {
6027		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
6028	}
6029
6030	if invalidParams.Len() > 0 {
6031		return invalidParams
6032	}
6033	return nil
6034}
6035
6036// SetAppId sets the AppId field's value.
6037func (s *ListBackendJobsInput) SetAppId(v string) *ListBackendJobsInput {
6038	s.AppId = &v
6039	return s
6040}
6041
6042// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
6043func (s *ListBackendJobsInput) SetBackendEnvironmentName(v string) *ListBackendJobsInput {
6044	s.BackendEnvironmentName = &v
6045	return s
6046}
6047
6048// SetJobId sets the JobId field's value.
6049func (s *ListBackendJobsInput) SetJobId(v string) *ListBackendJobsInput {
6050	s.JobId = &v
6051	return s
6052}
6053
6054// SetMaxResults sets the MaxResults field's value.
6055func (s *ListBackendJobsInput) SetMaxResults(v int64) *ListBackendJobsInput {
6056	s.MaxResults = &v
6057	return s
6058}
6059
6060// SetNextToken sets the NextToken field's value.
6061func (s *ListBackendJobsInput) SetNextToken(v string) *ListBackendJobsInput {
6062	s.NextToken = &v
6063	return s
6064}
6065
6066// SetOperation sets the Operation field's value.
6067func (s *ListBackendJobsInput) SetOperation(v string) *ListBackendJobsInput {
6068	s.Operation = &v
6069	return s
6070}
6071
6072// SetStatus sets the Status field's value.
6073func (s *ListBackendJobsInput) SetStatus(v string) *ListBackendJobsInput {
6074	s.Status = &v
6075	return s
6076}
6077
6078type ListBackendJobsOutput struct {
6079	_ struct{} `type:"structure"`
6080
6081	Jobs []*BackendJobRespObj `locationName:"jobs" type:"list"`
6082
6083	NextToken *string `locationName:"nextToken" type:"string"`
6084}
6085
6086// String returns the string representation.
6087//
6088// API parameter values that are decorated as "sensitive" in the API will not
6089// be included in the string output. The member name will be present, but the
6090// value will be replaced with "sensitive".
6091func (s ListBackendJobsOutput) String() string {
6092	return awsutil.Prettify(s)
6093}
6094
6095// GoString returns the string representation.
6096//
6097// API parameter values that are decorated as "sensitive" in the API will not
6098// be included in the string output. The member name will be present, but the
6099// value will be replaced with "sensitive".
6100func (s ListBackendJobsOutput) GoString() string {
6101	return s.String()
6102}
6103
6104// SetJobs sets the Jobs field's value.
6105func (s *ListBackendJobsOutput) SetJobs(v []*BackendJobRespObj) *ListBackendJobsOutput {
6106	s.Jobs = v
6107	return s
6108}
6109
6110// SetNextToken sets the NextToken field's value.
6111func (s *ListBackendJobsOutput) SetNextToken(v string) *ListBackendJobsOutput {
6112	s.NextToken = &v
6113	return s
6114}
6115
6116// The request object for this operation.
6117type LoginAuthConfigReqObj struct {
6118	_ struct{} `type:"structure"`
6119
6120	// The Amazon Cognito identity pool ID used for the Amplify Admin UI login authorization.
6121	AwsCognitoIdentityPoolId *string `locationName:"aws_cognito_identity_pool_id" type:"string"`
6122
6123	// The AWS Region for the Amplify Admin UI login.
6124	AwsCognitoRegion *string `locationName:"aws_cognito_region" type:"string"`
6125
6126	// The Amazon Cognito user pool ID used for Amplify Admin UI login authentication.
6127	AwsUserPoolsId *string `locationName:"aws_user_pools_id" type:"string"`
6128
6129	// The web client ID for the Amazon Cognito user pools.
6130	AwsUserPoolsWebClientId *string `locationName:"aws_user_pools_web_client_id" type:"string"`
6131}
6132
6133// String returns the string representation.
6134//
6135// API parameter values that are decorated as "sensitive" in the API will not
6136// be included in the string output. The member name will be present, but the
6137// value will be replaced with "sensitive".
6138func (s LoginAuthConfigReqObj) String() string {
6139	return awsutil.Prettify(s)
6140}
6141
6142// GoString returns the string representation.
6143//
6144// API parameter values that are decorated as "sensitive" in the API will not
6145// be included in the string output. The member name will be present, but the
6146// value will be replaced with "sensitive".
6147func (s LoginAuthConfigReqObj) GoString() string {
6148	return s.String()
6149}
6150
6151// SetAwsCognitoIdentityPoolId sets the AwsCognitoIdentityPoolId field's value.
6152func (s *LoginAuthConfigReqObj) SetAwsCognitoIdentityPoolId(v string) *LoginAuthConfigReqObj {
6153	s.AwsCognitoIdentityPoolId = &v
6154	return s
6155}
6156
6157// SetAwsCognitoRegion sets the AwsCognitoRegion field's value.
6158func (s *LoginAuthConfigReqObj) SetAwsCognitoRegion(v string) *LoginAuthConfigReqObj {
6159	s.AwsCognitoRegion = &v
6160	return s
6161}
6162
6163// SetAwsUserPoolsId sets the AwsUserPoolsId field's value.
6164func (s *LoginAuthConfigReqObj) SetAwsUserPoolsId(v string) *LoginAuthConfigReqObj {
6165	s.AwsUserPoolsId = &v
6166	return s
6167}
6168
6169// SetAwsUserPoolsWebClientId sets the AwsUserPoolsWebClientId field's value.
6170func (s *LoginAuthConfigReqObj) SetAwsUserPoolsWebClientId(v string) *LoginAuthConfigReqObj {
6171	s.AwsUserPoolsWebClientId = &v
6172	return s
6173}
6174
6175// An error returned when a specific resource type is not found.
6176type NotFoundException struct {
6177	_            struct{}                  `type:"structure"`
6178	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
6179
6180	// An error message to inform that the request has failed.
6181	Message_ *string `locationName:"message" type:"string"`
6182
6183	// The type of resource that is not found.
6184	ResourceType *string `locationName:"resourceType" type:"string"`
6185}
6186
6187// String returns the string representation.
6188//
6189// API parameter values that are decorated as "sensitive" in the API will not
6190// be included in the string output. The member name will be present, but the
6191// value will be replaced with "sensitive".
6192func (s NotFoundException) String() string {
6193	return awsutil.Prettify(s)
6194}
6195
6196// GoString returns the string representation.
6197//
6198// API parameter values that are decorated as "sensitive" in the API will not
6199// be included in the string output. The member name will be present, but the
6200// value will be replaced with "sensitive".
6201func (s NotFoundException) GoString() string {
6202	return s.String()
6203}
6204
6205func newErrorNotFoundException(v protocol.ResponseMetadata) error {
6206	return &NotFoundException{
6207		RespMetadata: v,
6208	}
6209}
6210
6211// Code returns the exception type name.
6212func (s *NotFoundException) Code() string {
6213	return "NotFoundException"
6214}
6215
6216// Message returns the exception's message.
6217func (s *NotFoundException) Message() string {
6218	if s.Message_ != nil {
6219		return *s.Message_
6220	}
6221	return ""
6222}
6223
6224// OrigErr always returns nil, satisfies awserr.Error interface.
6225func (s *NotFoundException) OrigErr() error {
6226	return nil
6227}
6228
6229func (s *NotFoundException) Error() string {
6230	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
6231}
6232
6233// Status code returns the HTTP status code for the request's response error.
6234func (s *NotFoundException) StatusCode() int {
6235	return s.RespMetadata.StatusCode
6236}
6237
6238// RequestID returns the service's response RequestID for request.
6239func (s *NotFoundException) RequestID() string {
6240	return s.RespMetadata.RequestID
6241}
6242
6243type RemoveAllBackendsInput struct {
6244	_ struct{} `type:"structure"`
6245
6246	// AppId is a required field
6247	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
6248
6249	CleanAmplifyApp *bool `locationName:"cleanAmplifyApp" type:"boolean"`
6250}
6251
6252// String returns the string representation.
6253//
6254// API parameter values that are decorated as "sensitive" in the API will not
6255// be included in the string output. The member name will be present, but the
6256// value will be replaced with "sensitive".
6257func (s RemoveAllBackendsInput) String() string {
6258	return awsutil.Prettify(s)
6259}
6260
6261// GoString returns the string representation.
6262//
6263// API parameter values that are decorated as "sensitive" in the API will not
6264// be included in the string output. The member name will be present, but the
6265// value will be replaced with "sensitive".
6266func (s RemoveAllBackendsInput) GoString() string {
6267	return s.String()
6268}
6269
6270// Validate inspects the fields of the type to determine if they are valid.
6271func (s *RemoveAllBackendsInput) Validate() error {
6272	invalidParams := request.ErrInvalidParams{Context: "RemoveAllBackendsInput"}
6273	if s.AppId == nil {
6274		invalidParams.Add(request.NewErrParamRequired("AppId"))
6275	}
6276	if s.AppId != nil && len(*s.AppId) < 1 {
6277		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6278	}
6279
6280	if invalidParams.Len() > 0 {
6281		return invalidParams
6282	}
6283	return nil
6284}
6285
6286// SetAppId sets the AppId field's value.
6287func (s *RemoveAllBackendsInput) SetAppId(v string) *RemoveAllBackendsInput {
6288	s.AppId = &v
6289	return s
6290}
6291
6292// SetCleanAmplifyApp sets the CleanAmplifyApp field's value.
6293func (s *RemoveAllBackendsInput) SetCleanAmplifyApp(v bool) *RemoveAllBackendsInput {
6294	s.CleanAmplifyApp = &v
6295	return s
6296}
6297
6298type RemoveAllBackendsOutput struct {
6299	_ struct{} `type:"structure"`
6300
6301	AppId *string `locationName:"appId" type:"string"`
6302
6303	Error *string `locationName:"error" type:"string"`
6304
6305	JobId *string `locationName:"jobId" type:"string"`
6306
6307	Operation *string `locationName:"operation" type:"string"`
6308
6309	Status *string `locationName:"status" type:"string"`
6310}
6311
6312// String returns the string representation.
6313//
6314// API parameter values that are decorated as "sensitive" in the API will not
6315// be included in the string output. The member name will be present, but the
6316// value will be replaced with "sensitive".
6317func (s RemoveAllBackendsOutput) String() string {
6318	return awsutil.Prettify(s)
6319}
6320
6321// GoString returns the string representation.
6322//
6323// API parameter values that are decorated as "sensitive" in the API will not
6324// be included in the string output. The member name will be present, but the
6325// value will be replaced with "sensitive".
6326func (s RemoveAllBackendsOutput) GoString() string {
6327	return s.String()
6328}
6329
6330// SetAppId sets the AppId field's value.
6331func (s *RemoveAllBackendsOutput) SetAppId(v string) *RemoveAllBackendsOutput {
6332	s.AppId = &v
6333	return s
6334}
6335
6336// SetError sets the Error field's value.
6337func (s *RemoveAllBackendsOutput) SetError(v string) *RemoveAllBackendsOutput {
6338	s.Error = &v
6339	return s
6340}
6341
6342// SetJobId sets the JobId field's value.
6343func (s *RemoveAllBackendsOutput) SetJobId(v string) *RemoveAllBackendsOutput {
6344	s.JobId = &v
6345	return s
6346}
6347
6348// SetOperation sets the Operation field's value.
6349func (s *RemoveAllBackendsOutput) SetOperation(v string) *RemoveAllBackendsOutput {
6350	s.Operation = &v
6351	return s
6352}
6353
6354// SetStatus sets the Status field's value.
6355func (s *RemoveAllBackendsOutput) SetStatus(v string) *RemoveAllBackendsOutput {
6356	s.Status = &v
6357	return s
6358}
6359
6360type RemoveBackendConfigInput struct {
6361	_ struct{} `type:"structure" nopayload:"true"`
6362
6363	// AppId is a required field
6364	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
6365}
6366
6367// String returns the string representation.
6368//
6369// API parameter values that are decorated as "sensitive" in the API will not
6370// be included in the string output. The member name will be present, but the
6371// value will be replaced with "sensitive".
6372func (s RemoveBackendConfigInput) String() string {
6373	return awsutil.Prettify(s)
6374}
6375
6376// GoString returns the string representation.
6377//
6378// API parameter values that are decorated as "sensitive" in the API will not
6379// be included in the string output. The member name will be present, but the
6380// value will be replaced with "sensitive".
6381func (s RemoveBackendConfigInput) GoString() string {
6382	return s.String()
6383}
6384
6385// Validate inspects the fields of the type to determine if they are valid.
6386func (s *RemoveBackendConfigInput) Validate() error {
6387	invalidParams := request.ErrInvalidParams{Context: "RemoveBackendConfigInput"}
6388	if s.AppId == nil {
6389		invalidParams.Add(request.NewErrParamRequired("AppId"))
6390	}
6391	if s.AppId != nil && len(*s.AppId) < 1 {
6392		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6393	}
6394
6395	if invalidParams.Len() > 0 {
6396		return invalidParams
6397	}
6398	return nil
6399}
6400
6401// SetAppId sets the AppId field's value.
6402func (s *RemoveBackendConfigInput) SetAppId(v string) *RemoveBackendConfigInput {
6403	s.AppId = &v
6404	return s
6405}
6406
6407type RemoveBackendConfigOutput struct {
6408	_ struct{} `type:"structure"`
6409
6410	Error *string `locationName:"error" type:"string"`
6411}
6412
6413// String returns the string representation.
6414//
6415// API parameter values that are decorated as "sensitive" in the API will not
6416// be included in the string output. The member name will be present, but the
6417// value will be replaced with "sensitive".
6418func (s RemoveBackendConfigOutput) String() string {
6419	return awsutil.Prettify(s)
6420}
6421
6422// GoString returns the string representation.
6423//
6424// API parameter values that are decorated as "sensitive" in the API will not
6425// be included in the string output. The member name will be present, but the
6426// value will be replaced with "sensitive".
6427func (s RemoveBackendConfigOutput) GoString() string {
6428	return s.String()
6429}
6430
6431// SetError sets the Error field's value.
6432func (s *RemoveBackendConfigOutput) SetError(v string) *RemoveBackendConfigOutput {
6433	s.Error = &v
6434	return s
6435}
6436
6437type ResourceConfig struct {
6438	_ struct{} `type:"structure"`
6439}
6440
6441// String returns the string representation.
6442//
6443// API parameter values that are decorated as "sensitive" in the API will not
6444// be included in the string output. The member name will be present, but the
6445// value will be replaced with "sensitive".
6446func (s ResourceConfig) String() string {
6447	return awsutil.Prettify(s)
6448}
6449
6450// GoString returns the string representation.
6451//
6452// API parameter values that are decorated as "sensitive" in the API will not
6453// be included in the string output. The member name will be present, but the
6454// value will be replaced with "sensitive".
6455func (s ResourceConfig) GoString() string {
6456	return s.String()
6457}
6458
6459type Settings struct {
6460	_ struct{} `type:"structure"`
6461
6462	MfaTypes []*string `locationName:"mfaTypes" type:"list"`
6463
6464	// The body of the SMS message.
6465	SmsMessage *string `locationName:"smsMessage" type:"string"`
6466}
6467
6468// String returns the string representation.
6469//
6470// API parameter values that are decorated as "sensitive" in the API will not
6471// be included in the string output. The member name will be present, but the
6472// value will be replaced with "sensitive".
6473func (s Settings) String() string {
6474	return awsutil.Prettify(s)
6475}
6476
6477// GoString returns the string representation.
6478//
6479// API parameter values that are decorated as "sensitive" in the API will not
6480// be included in the string output. The member name will be present, but the
6481// value will be replaced with "sensitive".
6482func (s Settings) GoString() string {
6483	return s.String()
6484}
6485
6486// SetMfaTypes sets the MfaTypes field's value.
6487func (s *Settings) SetMfaTypes(v []*string) *Settings {
6488	s.MfaTypes = v
6489	return s
6490}
6491
6492// SetSmsMessage sets the SmsMessage field's value.
6493func (s *Settings) SetSmsMessage(v string) *Settings {
6494	s.SmsMessage = &v
6495	return s
6496}
6497
6498type SmsSettings struct {
6499	_ struct{} `type:"structure"`
6500
6501	// The body of the SMS message.
6502	SmsMessage *string `locationName:"smsMessage" type:"string"`
6503}
6504
6505// String returns the string representation.
6506//
6507// API parameter values that are decorated as "sensitive" in the API will not
6508// be included in the string output. The member name will be present, but the
6509// value will be replaced with "sensitive".
6510func (s SmsSettings) String() string {
6511	return awsutil.Prettify(s)
6512}
6513
6514// GoString returns the string representation.
6515//
6516// API parameter values that are decorated as "sensitive" in the API will not
6517// be included in the string output. The member name will be present, but the
6518// value will be replaced with "sensitive".
6519func (s SmsSettings) GoString() string {
6520	return s.String()
6521}
6522
6523// SetSmsMessage sets the SmsMessage field's value.
6524func (s *SmsSettings) SetSmsMessage(v string) *SmsSettings {
6525	s.SmsMessage = &v
6526	return s
6527}
6528
6529type SocialProviderSettings struct {
6530	_ struct{} `type:"structure"`
6531
6532	// Describes third-party social federation configurations for allowing your
6533	// app users to sign in using OAuth.
6534	Facebook *BackendAuthSocialProviderConfig `type:"structure"`
6535
6536	// Describes third-party social federation configurations for allowing your
6537	// app users to sign in using OAuth.
6538	Google *BackendAuthSocialProviderConfig `type:"structure"`
6539
6540	// Describes third-party social federation configurations for allowing your
6541	// app users to sign in using OAuth.
6542	LoginWithAmazon *BackendAuthSocialProviderConfig `type:"structure"`
6543
6544	// Describes Apple social federation configurations for allowing your app users
6545	// to sign in using OAuth.
6546	SignInWithApple *BackendAuthAppleProviderConfig `type:"structure"`
6547}
6548
6549// String returns the string representation.
6550//
6551// API parameter values that are decorated as "sensitive" in the API will not
6552// be included in the string output. The member name will be present, but the
6553// value will be replaced with "sensitive".
6554func (s SocialProviderSettings) String() string {
6555	return awsutil.Prettify(s)
6556}
6557
6558// GoString returns the string representation.
6559//
6560// API parameter values that are decorated as "sensitive" in the API will not
6561// be included in the string output. The member name will be present, but the
6562// value will be replaced with "sensitive".
6563func (s SocialProviderSettings) GoString() string {
6564	return s.String()
6565}
6566
6567// SetFacebook sets the Facebook field's value.
6568func (s *SocialProviderSettings) SetFacebook(v *BackendAuthSocialProviderConfig) *SocialProviderSettings {
6569	s.Facebook = v
6570	return s
6571}
6572
6573// SetGoogle sets the Google field's value.
6574func (s *SocialProviderSettings) SetGoogle(v *BackendAuthSocialProviderConfig) *SocialProviderSettings {
6575	s.Google = v
6576	return s
6577}
6578
6579// SetLoginWithAmazon sets the LoginWithAmazon field's value.
6580func (s *SocialProviderSettings) SetLoginWithAmazon(v *BackendAuthSocialProviderConfig) *SocialProviderSettings {
6581	s.LoginWithAmazon = v
6582	return s
6583}
6584
6585// SetSignInWithApple sets the SignInWithApple field's value.
6586func (s *SocialProviderSettings) SetSignInWithApple(v *BackendAuthAppleProviderConfig) *SocialProviderSettings {
6587	s.SignInWithApple = v
6588	return s
6589}
6590
6591// An error that is returned when a limit of a specific type has been exceeded.
6592type TooManyRequestsException struct {
6593	_            struct{}                  `type:"structure"`
6594	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
6595
6596	LimitType *string `locationName:"limitType" type:"string"`
6597
6598	Message_ *string `locationName:"message" type:"string"`
6599}
6600
6601// String returns the string representation.
6602//
6603// API parameter values that are decorated as "sensitive" in the API will not
6604// be included in the string output. The member name will be present, but the
6605// value will be replaced with "sensitive".
6606func (s TooManyRequestsException) String() string {
6607	return awsutil.Prettify(s)
6608}
6609
6610// GoString returns the string representation.
6611//
6612// API parameter values that are decorated as "sensitive" in the API will not
6613// be included in the string output. The member name will be present, but the
6614// value will be replaced with "sensitive".
6615func (s TooManyRequestsException) GoString() string {
6616	return s.String()
6617}
6618
6619func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
6620	return &TooManyRequestsException{
6621		RespMetadata: v,
6622	}
6623}
6624
6625// Code returns the exception type name.
6626func (s *TooManyRequestsException) Code() string {
6627	return "TooManyRequestsException"
6628}
6629
6630// Message returns the exception's message.
6631func (s *TooManyRequestsException) Message() string {
6632	if s.Message_ != nil {
6633		return *s.Message_
6634	}
6635	return ""
6636}
6637
6638// OrigErr always returns nil, satisfies awserr.Error interface.
6639func (s *TooManyRequestsException) OrigErr() error {
6640	return nil
6641}
6642
6643func (s *TooManyRequestsException) Error() string {
6644	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
6645}
6646
6647// Status code returns the HTTP status code for the request's response error.
6648func (s *TooManyRequestsException) StatusCode() int {
6649	return s.RespMetadata.StatusCode
6650}
6651
6652// RequestID returns the service's response RequestID for request.
6653func (s *TooManyRequestsException) RequestID() string {
6654	return s.RespMetadata.RequestID
6655}
6656
6657type UpdateBackendAPIInput struct {
6658	_ struct{} `type:"structure"`
6659
6660	// AppId is a required field
6661	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
6662
6663	// BackendEnvironmentName is a required field
6664	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
6665
6666	// The resource config for the data model, configured as a part of the Amplify
6667	// project.
6668	ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure"`
6669
6670	// ResourceName is a required field
6671	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
6672}
6673
6674// String returns the string representation.
6675//
6676// API parameter values that are decorated as "sensitive" in the API will not
6677// be included in the string output. The member name will be present, but the
6678// value will be replaced with "sensitive".
6679func (s UpdateBackendAPIInput) String() string {
6680	return awsutil.Prettify(s)
6681}
6682
6683// GoString returns the string representation.
6684//
6685// API parameter values that are decorated as "sensitive" in the API will not
6686// be included in the string output. The member name will be present, but the
6687// value will be replaced with "sensitive".
6688func (s UpdateBackendAPIInput) GoString() string {
6689	return s.String()
6690}
6691
6692// Validate inspects the fields of the type to determine if they are valid.
6693func (s *UpdateBackendAPIInput) Validate() error {
6694	invalidParams := request.ErrInvalidParams{Context: "UpdateBackendAPIInput"}
6695	if s.AppId == nil {
6696		invalidParams.Add(request.NewErrParamRequired("AppId"))
6697	}
6698	if s.AppId != nil && len(*s.AppId) < 1 {
6699		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6700	}
6701	if s.BackendEnvironmentName == nil {
6702		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
6703	}
6704	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
6705		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
6706	}
6707	if s.ResourceName == nil {
6708		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
6709	}
6710
6711	if invalidParams.Len() > 0 {
6712		return invalidParams
6713	}
6714	return nil
6715}
6716
6717// SetAppId sets the AppId field's value.
6718func (s *UpdateBackendAPIInput) SetAppId(v string) *UpdateBackendAPIInput {
6719	s.AppId = &v
6720	return s
6721}
6722
6723// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
6724func (s *UpdateBackendAPIInput) SetBackendEnvironmentName(v string) *UpdateBackendAPIInput {
6725	s.BackendEnvironmentName = &v
6726	return s
6727}
6728
6729// SetResourceConfig sets the ResourceConfig field's value.
6730func (s *UpdateBackendAPIInput) SetResourceConfig(v *BackendAPIResourceConfig) *UpdateBackendAPIInput {
6731	s.ResourceConfig = v
6732	return s
6733}
6734
6735// SetResourceName sets the ResourceName field's value.
6736func (s *UpdateBackendAPIInput) SetResourceName(v string) *UpdateBackendAPIInput {
6737	s.ResourceName = &v
6738	return s
6739}
6740
6741type UpdateBackendAPIOutput struct {
6742	_ struct{} `type:"structure"`
6743
6744	AppId *string `locationName:"appId" type:"string"`
6745
6746	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
6747
6748	Error *string `locationName:"error" type:"string"`
6749
6750	JobId *string `locationName:"jobId" type:"string"`
6751
6752	Operation *string `locationName:"operation" type:"string"`
6753
6754	Status *string `locationName:"status" type:"string"`
6755}
6756
6757// String returns the string representation.
6758//
6759// API parameter values that are decorated as "sensitive" in the API will not
6760// be included in the string output. The member name will be present, but the
6761// value will be replaced with "sensitive".
6762func (s UpdateBackendAPIOutput) String() string {
6763	return awsutil.Prettify(s)
6764}
6765
6766// GoString returns the string representation.
6767//
6768// API parameter values that are decorated as "sensitive" in the API will not
6769// be included in the string output. The member name will be present, but the
6770// value will be replaced with "sensitive".
6771func (s UpdateBackendAPIOutput) GoString() string {
6772	return s.String()
6773}
6774
6775// SetAppId sets the AppId field's value.
6776func (s *UpdateBackendAPIOutput) SetAppId(v string) *UpdateBackendAPIOutput {
6777	s.AppId = &v
6778	return s
6779}
6780
6781// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
6782func (s *UpdateBackendAPIOutput) SetBackendEnvironmentName(v string) *UpdateBackendAPIOutput {
6783	s.BackendEnvironmentName = &v
6784	return s
6785}
6786
6787// SetError sets the Error field's value.
6788func (s *UpdateBackendAPIOutput) SetError(v string) *UpdateBackendAPIOutput {
6789	s.Error = &v
6790	return s
6791}
6792
6793// SetJobId sets the JobId field's value.
6794func (s *UpdateBackendAPIOutput) SetJobId(v string) *UpdateBackendAPIOutput {
6795	s.JobId = &v
6796	return s
6797}
6798
6799// SetOperation sets the Operation field's value.
6800func (s *UpdateBackendAPIOutput) SetOperation(v string) *UpdateBackendAPIOutput {
6801	s.Operation = &v
6802	return s
6803}
6804
6805// SetStatus sets the Status field's value.
6806func (s *UpdateBackendAPIOutput) SetStatus(v string) *UpdateBackendAPIOutput {
6807	s.Status = &v
6808	return s
6809}
6810
6811// Describes the forgot password policy for authenticating into the Amplify
6812// app.
6813type UpdateBackendAuthForgotPasswordConfig struct {
6814	_ struct{} `type:"structure"`
6815
6816	// Describes which mode to use (either SMS or email) to deliver messages to
6817	// app users that want to recover their password.
6818	DeliveryMethod *string `locationName:"deliveryMethod" type:"string" enum:"DeliveryMethod"`
6819
6820	// The configuration for the email sent when an app user forgets their password.
6821	EmailSettings *EmailSettings `locationName:"emailSettings" type:"structure"`
6822
6823	// The configuration for the SMS message sent when an Amplify app user forgets
6824	// their password.
6825	SmsSettings *SmsSettings `locationName:"smsSettings" type:"structure"`
6826}
6827
6828// String returns the string representation.
6829//
6830// API parameter values that are decorated as "sensitive" in the API will not
6831// be included in the string output. The member name will be present, but the
6832// value will be replaced with "sensitive".
6833func (s UpdateBackendAuthForgotPasswordConfig) String() string {
6834	return awsutil.Prettify(s)
6835}
6836
6837// GoString returns the string representation.
6838//
6839// API parameter values that are decorated as "sensitive" in the API will not
6840// be included in the string output. The member name will be present, but the
6841// value will be replaced with "sensitive".
6842func (s UpdateBackendAuthForgotPasswordConfig) GoString() string {
6843	return s.String()
6844}
6845
6846// SetDeliveryMethod sets the DeliveryMethod field's value.
6847func (s *UpdateBackendAuthForgotPasswordConfig) SetDeliveryMethod(v string) *UpdateBackendAuthForgotPasswordConfig {
6848	s.DeliveryMethod = &v
6849	return s
6850}
6851
6852// SetEmailSettings sets the EmailSettings field's value.
6853func (s *UpdateBackendAuthForgotPasswordConfig) SetEmailSettings(v *EmailSettings) *UpdateBackendAuthForgotPasswordConfig {
6854	s.EmailSettings = v
6855	return s
6856}
6857
6858// SetSmsSettings sets the SmsSettings field's value.
6859func (s *UpdateBackendAuthForgotPasswordConfig) SetSmsSettings(v *SmsSettings) *UpdateBackendAuthForgotPasswordConfig {
6860	s.SmsSettings = v
6861	return s
6862}
6863
6864// Describes the authorization configuration for the Amazon Cognito identity
6865// pool, provisioned as a part of your auth resource in the Amplify project.
6866type UpdateBackendAuthIdentityPoolConfig struct {
6867	_ struct{} `type:"structure"`
6868
6869	// A boolean value that can be set to allow or disallow guest-level authorization
6870	// into your Amplify app.
6871	UnauthenticatedLogin *bool `locationName:"unauthenticatedLogin" type:"boolean"`
6872}
6873
6874// String returns the string representation.
6875//
6876// API parameter values that are decorated as "sensitive" in the API will not
6877// be included in the string output. The member name will be present, but the
6878// value will be replaced with "sensitive".
6879func (s UpdateBackendAuthIdentityPoolConfig) String() string {
6880	return awsutil.Prettify(s)
6881}
6882
6883// GoString returns the string representation.
6884//
6885// API parameter values that are decorated as "sensitive" in the API will not
6886// be included in the string output. The member name will be present, but the
6887// value will be replaced with "sensitive".
6888func (s UpdateBackendAuthIdentityPoolConfig) GoString() string {
6889	return s.String()
6890}
6891
6892// SetUnauthenticatedLogin sets the UnauthenticatedLogin field's value.
6893func (s *UpdateBackendAuthIdentityPoolConfig) SetUnauthenticatedLogin(v bool) *UpdateBackendAuthIdentityPoolConfig {
6894	s.UnauthenticatedLogin = &v
6895	return s
6896}
6897
6898type UpdateBackendAuthInput struct {
6899	_ struct{} `type:"structure"`
6900
6901	// AppId is a required field
6902	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
6903
6904	// BackendEnvironmentName is a required field
6905	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
6906
6907	// Defines the resource configuration when updating an authentication resource
6908	// in your Amplify project.
6909	//
6910	// ResourceConfig is a required field
6911	ResourceConfig *UpdateBackendAuthResourceConfig `locationName:"resourceConfig" type:"structure" required:"true"`
6912
6913	// ResourceName is a required field
6914	ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
6915}
6916
6917// String returns the string representation.
6918//
6919// API parameter values that are decorated as "sensitive" in the API will not
6920// be included in the string output. The member name will be present, but the
6921// value will be replaced with "sensitive".
6922func (s UpdateBackendAuthInput) String() string {
6923	return awsutil.Prettify(s)
6924}
6925
6926// GoString returns the string representation.
6927//
6928// API parameter values that are decorated as "sensitive" in the API will not
6929// be included in the string output. The member name will be present, but the
6930// value will be replaced with "sensitive".
6931func (s UpdateBackendAuthInput) GoString() string {
6932	return s.String()
6933}
6934
6935// Validate inspects the fields of the type to determine if they are valid.
6936func (s *UpdateBackendAuthInput) Validate() error {
6937	invalidParams := request.ErrInvalidParams{Context: "UpdateBackendAuthInput"}
6938	if s.AppId == nil {
6939		invalidParams.Add(request.NewErrParamRequired("AppId"))
6940	}
6941	if s.AppId != nil && len(*s.AppId) < 1 {
6942		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
6943	}
6944	if s.BackendEnvironmentName == nil {
6945		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
6946	}
6947	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
6948		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
6949	}
6950	if s.ResourceConfig == nil {
6951		invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
6952	}
6953	if s.ResourceName == nil {
6954		invalidParams.Add(request.NewErrParamRequired("ResourceName"))
6955	}
6956	if s.ResourceConfig != nil {
6957		if err := s.ResourceConfig.Validate(); err != nil {
6958			invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
6959		}
6960	}
6961
6962	if invalidParams.Len() > 0 {
6963		return invalidParams
6964	}
6965	return nil
6966}
6967
6968// SetAppId sets the AppId field's value.
6969func (s *UpdateBackendAuthInput) SetAppId(v string) *UpdateBackendAuthInput {
6970	s.AppId = &v
6971	return s
6972}
6973
6974// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
6975func (s *UpdateBackendAuthInput) SetBackendEnvironmentName(v string) *UpdateBackendAuthInput {
6976	s.BackendEnvironmentName = &v
6977	return s
6978}
6979
6980// SetResourceConfig sets the ResourceConfig field's value.
6981func (s *UpdateBackendAuthInput) SetResourceConfig(v *UpdateBackendAuthResourceConfig) *UpdateBackendAuthInput {
6982	s.ResourceConfig = v
6983	return s
6984}
6985
6986// SetResourceName sets the ResourceName field's value.
6987func (s *UpdateBackendAuthInput) SetResourceName(v string) *UpdateBackendAuthInput {
6988	s.ResourceName = &v
6989	return s
6990}
6991
6992// Updates the multi-factor authentication (MFA) configuration for the backend
6993// of your Amplify project.
6994type UpdateBackendAuthMFAConfig struct {
6995	_ struct{} `type:"structure"`
6996
6997	// The MFA mode for the backend of your Amplify project.
6998	MFAMode *string `type:"string" enum:"MFAMode"`
6999
7000	// The settings of your MFA configuration for the backend of your Amplify project.
7001	Settings *Settings `locationName:"settings" type:"structure"`
7002}
7003
7004// String returns the string representation.
7005//
7006// API parameter values that are decorated as "sensitive" in the API will not
7007// be included in the string output. The member name will be present, but the
7008// value will be replaced with "sensitive".
7009func (s UpdateBackendAuthMFAConfig) String() string {
7010	return awsutil.Prettify(s)
7011}
7012
7013// GoString returns the string representation.
7014//
7015// API parameter values that are decorated as "sensitive" in the API will not
7016// be included in the string output. The member name will be present, but the
7017// value will be replaced with "sensitive".
7018func (s UpdateBackendAuthMFAConfig) GoString() string {
7019	return s.String()
7020}
7021
7022// SetMFAMode sets the MFAMode field's value.
7023func (s *UpdateBackendAuthMFAConfig) SetMFAMode(v string) *UpdateBackendAuthMFAConfig {
7024	s.MFAMode = &v
7025	return s
7026}
7027
7028// SetSettings sets the Settings field's value.
7029func (s *UpdateBackendAuthMFAConfig) SetSettings(v *Settings) *UpdateBackendAuthMFAConfig {
7030	s.Settings = v
7031	return s
7032}
7033
7034// The OAuth configurations for authenticating users into your Amplify app.
7035type UpdateBackendAuthOAuthConfig struct {
7036	_ struct{} `type:"structure"`
7037
7038	// The Amazon Cognito domain prefix used to create a hosted UI for authentication.
7039	DomainPrefix *string `locationName:"domainPrefix" type:"string"`
7040
7041	// The OAuth grant type to allow app users to authenticate from your Amplify
7042	// app.
7043	OAuthGrantType *string `locationName:"oAuthGrantType" type:"string" enum:"OAuthGrantType"`
7044
7045	// The list of OAuth-related flows that can allow users to authenticate from
7046	// your Amplify app.
7047	OAuthScopes []*string `locationName:"oAuthScopes" type:"list"`
7048
7049	// Redirect URLs that OAuth uses when a user signs in to an Amplify app.
7050	RedirectSignInURIs []*string `locationName:"redirectSignInURIs" type:"list"`
7051
7052	// Redirect URLs that OAuth uses when a user signs out of an Amplify app.
7053	RedirectSignOutURIs []*string `locationName:"redirectSignOutURIs" type:"list"`
7054
7055	// Describes third-party social federation configurations for allowing your
7056	// users to sign in with OAuth.
7057	SocialProviderSettings *SocialProviderSettings `locationName:"socialProviderSettings" type:"structure"`
7058}
7059
7060// String returns the string representation.
7061//
7062// API parameter values that are decorated as "sensitive" in the API will not
7063// be included in the string output. The member name will be present, but the
7064// value will be replaced with "sensitive".
7065func (s UpdateBackendAuthOAuthConfig) String() string {
7066	return awsutil.Prettify(s)
7067}
7068
7069// GoString returns the string representation.
7070//
7071// API parameter values that are decorated as "sensitive" in the API will not
7072// be included in the string output. The member name will be present, but the
7073// value will be replaced with "sensitive".
7074func (s UpdateBackendAuthOAuthConfig) GoString() string {
7075	return s.String()
7076}
7077
7078// SetDomainPrefix sets the DomainPrefix field's value.
7079func (s *UpdateBackendAuthOAuthConfig) SetDomainPrefix(v string) *UpdateBackendAuthOAuthConfig {
7080	s.DomainPrefix = &v
7081	return s
7082}
7083
7084// SetOAuthGrantType sets the OAuthGrantType field's value.
7085func (s *UpdateBackendAuthOAuthConfig) SetOAuthGrantType(v string) *UpdateBackendAuthOAuthConfig {
7086	s.OAuthGrantType = &v
7087	return s
7088}
7089
7090// SetOAuthScopes sets the OAuthScopes field's value.
7091func (s *UpdateBackendAuthOAuthConfig) SetOAuthScopes(v []*string) *UpdateBackendAuthOAuthConfig {
7092	s.OAuthScopes = v
7093	return s
7094}
7095
7096// SetRedirectSignInURIs sets the RedirectSignInURIs field's value.
7097func (s *UpdateBackendAuthOAuthConfig) SetRedirectSignInURIs(v []*string) *UpdateBackendAuthOAuthConfig {
7098	s.RedirectSignInURIs = v
7099	return s
7100}
7101
7102// SetRedirectSignOutURIs sets the RedirectSignOutURIs field's value.
7103func (s *UpdateBackendAuthOAuthConfig) SetRedirectSignOutURIs(v []*string) *UpdateBackendAuthOAuthConfig {
7104	s.RedirectSignOutURIs = v
7105	return s
7106}
7107
7108// SetSocialProviderSettings sets the SocialProviderSettings field's value.
7109func (s *UpdateBackendAuthOAuthConfig) SetSocialProviderSettings(v *SocialProviderSettings) *UpdateBackendAuthOAuthConfig {
7110	s.SocialProviderSettings = v
7111	return s
7112}
7113
7114type UpdateBackendAuthOutput struct {
7115	_ struct{} `type:"structure"`
7116
7117	AppId *string `locationName:"appId" type:"string"`
7118
7119	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
7120
7121	Error *string `locationName:"error" type:"string"`
7122
7123	JobId *string `locationName:"jobId" type:"string"`
7124
7125	Operation *string `locationName:"operation" type:"string"`
7126
7127	Status *string `locationName:"status" type:"string"`
7128}
7129
7130// String returns the string representation.
7131//
7132// API parameter values that are decorated as "sensitive" in the API will not
7133// be included in the string output. The member name will be present, but the
7134// value will be replaced with "sensitive".
7135func (s UpdateBackendAuthOutput) String() string {
7136	return awsutil.Prettify(s)
7137}
7138
7139// GoString returns the string representation.
7140//
7141// API parameter values that are decorated as "sensitive" in the API will not
7142// be included in the string output. The member name will be present, but the
7143// value will be replaced with "sensitive".
7144func (s UpdateBackendAuthOutput) GoString() string {
7145	return s.String()
7146}
7147
7148// SetAppId sets the AppId field's value.
7149func (s *UpdateBackendAuthOutput) SetAppId(v string) *UpdateBackendAuthOutput {
7150	s.AppId = &v
7151	return s
7152}
7153
7154// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
7155func (s *UpdateBackendAuthOutput) SetBackendEnvironmentName(v string) *UpdateBackendAuthOutput {
7156	s.BackendEnvironmentName = &v
7157	return s
7158}
7159
7160// SetError sets the Error field's value.
7161func (s *UpdateBackendAuthOutput) SetError(v string) *UpdateBackendAuthOutput {
7162	s.Error = &v
7163	return s
7164}
7165
7166// SetJobId sets the JobId field's value.
7167func (s *UpdateBackendAuthOutput) SetJobId(v string) *UpdateBackendAuthOutput {
7168	s.JobId = &v
7169	return s
7170}
7171
7172// SetOperation sets the Operation field's value.
7173func (s *UpdateBackendAuthOutput) SetOperation(v string) *UpdateBackendAuthOutput {
7174	s.Operation = &v
7175	return s
7176}
7177
7178// SetStatus sets the Status field's value.
7179func (s *UpdateBackendAuthOutput) SetStatus(v string) *UpdateBackendAuthOutput {
7180	s.Status = &v
7181	return s
7182}
7183
7184// Describes the password policy for your Amazon Cognito user pool configured
7185// as a part of your Amplify project.
7186type UpdateBackendAuthPasswordPolicyConfig struct {
7187	_ struct{} `type:"structure"`
7188
7189	// Describes additional constraints on password requirements to sign in to the
7190	// auth resource, configured as a part of your Amplify project.
7191	AdditionalConstraints []*string `locationName:"additionalConstraints" type:"list"`
7192
7193	// Describes the minimum length of the password required to sign in to the auth
7194	// resource, configured as a part of your Amplify project.
7195	MinimumLength *float64 `locationName:"minimumLength" type:"double"`
7196}
7197
7198// String returns the string representation.
7199//
7200// API parameter values that are decorated as "sensitive" in the API will not
7201// be included in the string output. The member name will be present, but the
7202// value will be replaced with "sensitive".
7203func (s UpdateBackendAuthPasswordPolicyConfig) String() string {
7204	return awsutil.Prettify(s)
7205}
7206
7207// GoString returns the string representation.
7208//
7209// API parameter values that are decorated as "sensitive" in the API will not
7210// be included in the string output. The member name will be present, but the
7211// value will be replaced with "sensitive".
7212func (s UpdateBackendAuthPasswordPolicyConfig) GoString() string {
7213	return s.String()
7214}
7215
7216// SetAdditionalConstraints sets the AdditionalConstraints field's value.
7217func (s *UpdateBackendAuthPasswordPolicyConfig) SetAdditionalConstraints(v []*string) *UpdateBackendAuthPasswordPolicyConfig {
7218	s.AdditionalConstraints = v
7219	return s
7220}
7221
7222// SetMinimumLength sets the MinimumLength field's value.
7223func (s *UpdateBackendAuthPasswordPolicyConfig) SetMinimumLength(v float64) *UpdateBackendAuthPasswordPolicyConfig {
7224	s.MinimumLength = &v
7225	return s
7226}
7227
7228// Defines the resource configuration when updating an authentication resource
7229// in your Amplify project.
7230type UpdateBackendAuthResourceConfig struct {
7231	_ struct{} `type:"structure"`
7232
7233	// Defines the service name to use when configuring an authentication resource
7234	// in your Amplify project.
7235	//
7236	// AuthResources is a required field
7237	AuthResources *string `locationName:"authResources" type:"string" required:"true" enum:"AuthResources"`
7238
7239	// Describes the authorization configuration for the Amazon Cognito identity
7240	// pool, provisioned as a part of your auth resource in the Amplify project.
7241	IdentityPoolConfigs *UpdateBackendAuthIdentityPoolConfig `locationName:"identityPoolConfigs" type:"structure"`
7242
7243	// Defines the service name to use when configuring an authentication resource
7244	// in your Amplify project.
7245	//
7246	// Service is a required field
7247	Service *string `locationName:"service" type:"string" required:"true" enum:"Service"`
7248
7249	// Describes the authentication configuration for the Amazon Cognito user pool,
7250	// provisioned as a part of your auth resource in the Amplify project.
7251	//
7252	// UserPoolConfigs is a required field
7253	UserPoolConfigs *UpdateBackendAuthUserPoolConfig `locationName:"userPoolConfigs" type:"structure" required:"true"`
7254}
7255
7256// String returns the string representation.
7257//
7258// API parameter values that are decorated as "sensitive" in the API will not
7259// be included in the string output. The member name will be present, but the
7260// value will be replaced with "sensitive".
7261func (s UpdateBackendAuthResourceConfig) String() string {
7262	return awsutil.Prettify(s)
7263}
7264
7265// GoString returns the string representation.
7266//
7267// API parameter values that are decorated as "sensitive" in the API will not
7268// be included in the string output. The member name will be present, but the
7269// value will be replaced with "sensitive".
7270func (s UpdateBackendAuthResourceConfig) GoString() string {
7271	return s.String()
7272}
7273
7274// Validate inspects the fields of the type to determine if they are valid.
7275func (s *UpdateBackendAuthResourceConfig) Validate() error {
7276	invalidParams := request.ErrInvalidParams{Context: "UpdateBackendAuthResourceConfig"}
7277	if s.AuthResources == nil {
7278		invalidParams.Add(request.NewErrParamRequired("AuthResources"))
7279	}
7280	if s.Service == nil {
7281		invalidParams.Add(request.NewErrParamRequired("Service"))
7282	}
7283	if s.UserPoolConfigs == nil {
7284		invalidParams.Add(request.NewErrParamRequired("UserPoolConfigs"))
7285	}
7286
7287	if invalidParams.Len() > 0 {
7288		return invalidParams
7289	}
7290	return nil
7291}
7292
7293// SetAuthResources sets the AuthResources field's value.
7294func (s *UpdateBackendAuthResourceConfig) SetAuthResources(v string) *UpdateBackendAuthResourceConfig {
7295	s.AuthResources = &v
7296	return s
7297}
7298
7299// SetIdentityPoolConfigs sets the IdentityPoolConfigs field's value.
7300func (s *UpdateBackendAuthResourceConfig) SetIdentityPoolConfigs(v *UpdateBackendAuthIdentityPoolConfig) *UpdateBackendAuthResourceConfig {
7301	s.IdentityPoolConfigs = v
7302	return s
7303}
7304
7305// SetService sets the Service field's value.
7306func (s *UpdateBackendAuthResourceConfig) SetService(v string) *UpdateBackendAuthResourceConfig {
7307	s.Service = &v
7308	return s
7309}
7310
7311// SetUserPoolConfigs sets the UserPoolConfigs field's value.
7312func (s *UpdateBackendAuthResourceConfig) SetUserPoolConfigs(v *UpdateBackendAuthUserPoolConfig) *UpdateBackendAuthResourceConfig {
7313	s.UserPoolConfigs = v
7314	return s
7315}
7316
7317// Describes the Amazon Cognito user pool configuration for the authorization
7318// resource to be configured for your Amplify project on an update.
7319type UpdateBackendAuthUserPoolConfig struct {
7320	_ struct{} `type:"structure"`
7321
7322	// Describes the forgot password policy for your Amazon Cognito user pool, configured
7323	// as a part of your Amplify project.
7324	ForgotPassword *UpdateBackendAuthForgotPasswordConfig `locationName:"forgotPassword" type:"structure"`
7325
7326	// Describes whether to apply multi-factor authentication policies for your
7327	// Amazon Cognito user pool configured as a part of your Amplify project.
7328	Mfa *UpdateBackendAuthMFAConfig `locationName:"mfa" type:"structure"`
7329
7330	// Describes the OAuth policy and rules for your Amazon Cognito user pool, configured
7331	// as a part of your Amplify project.
7332	OAuth *UpdateBackendAuthOAuthConfig `locationName:"oAuth" type:"structure"`
7333
7334	// Describes the password policy for your Amazon Cognito user pool, configured
7335	// as a part of your Amplify project.
7336	PasswordPolicy *UpdateBackendAuthPasswordPolicyConfig `locationName:"passwordPolicy" type:"structure"`
7337}
7338
7339// String returns the string representation.
7340//
7341// API parameter values that are decorated as "sensitive" in the API will not
7342// be included in the string output. The member name will be present, but the
7343// value will be replaced with "sensitive".
7344func (s UpdateBackendAuthUserPoolConfig) String() string {
7345	return awsutil.Prettify(s)
7346}
7347
7348// GoString returns the string representation.
7349//
7350// API parameter values that are decorated as "sensitive" in the API will not
7351// be included in the string output. The member name will be present, but the
7352// value will be replaced with "sensitive".
7353func (s UpdateBackendAuthUserPoolConfig) GoString() string {
7354	return s.String()
7355}
7356
7357// SetForgotPassword sets the ForgotPassword field's value.
7358func (s *UpdateBackendAuthUserPoolConfig) SetForgotPassword(v *UpdateBackendAuthForgotPasswordConfig) *UpdateBackendAuthUserPoolConfig {
7359	s.ForgotPassword = v
7360	return s
7361}
7362
7363// SetMfa sets the Mfa field's value.
7364func (s *UpdateBackendAuthUserPoolConfig) SetMfa(v *UpdateBackendAuthMFAConfig) *UpdateBackendAuthUserPoolConfig {
7365	s.Mfa = v
7366	return s
7367}
7368
7369// SetOAuth sets the OAuth field's value.
7370func (s *UpdateBackendAuthUserPoolConfig) SetOAuth(v *UpdateBackendAuthOAuthConfig) *UpdateBackendAuthUserPoolConfig {
7371	s.OAuth = v
7372	return s
7373}
7374
7375// SetPasswordPolicy sets the PasswordPolicy field's value.
7376func (s *UpdateBackendAuthUserPoolConfig) SetPasswordPolicy(v *UpdateBackendAuthPasswordPolicyConfig) *UpdateBackendAuthUserPoolConfig {
7377	s.PasswordPolicy = v
7378	return s
7379}
7380
7381type UpdateBackendConfigInput struct {
7382	_ struct{} `type:"structure"`
7383
7384	// AppId is a required field
7385	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
7386
7387	// The request object for this operation.
7388	LoginAuthConfig *LoginAuthConfigReqObj `locationName:"loginAuthConfig" type:"structure"`
7389}
7390
7391// String returns the string representation.
7392//
7393// API parameter values that are decorated as "sensitive" in the API will not
7394// be included in the string output. The member name will be present, but the
7395// value will be replaced with "sensitive".
7396func (s UpdateBackendConfigInput) String() string {
7397	return awsutil.Prettify(s)
7398}
7399
7400// GoString returns the string representation.
7401//
7402// API parameter values that are decorated as "sensitive" in the API will not
7403// be included in the string output. The member name will be present, but the
7404// value will be replaced with "sensitive".
7405func (s UpdateBackendConfigInput) GoString() string {
7406	return s.String()
7407}
7408
7409// Validate inspects the fields of the type to determine if they are valid.
7410func (s *UpdateBackendConfigInput) Validate() error {
7411	invalidParams := request.ErrInvalidParams{Context: "UpdateBackendConfigInput"}
7412	if s.AppId == nil {
7413		invalidParams.Add(request.NewErrParamRequired("AppId"))
7414	}
7415	if s.AppId != nil && len(*s.AppId) < 1 {
7416		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
7417	}
7418
7419	if invalidParams.Len() > 0 {
7420		return invalidParams
7421	}
7422	return nil
7423}
7424
7425// SetAppId sets the AppId field's value.
7426func (s *UpdateBackendConfigInput) SetAppId(v string) *UpdateBackendConfigInput {
7427	s.AppId = &v
7428	return s
7429}
7430
7431// SetLoginAuthConfig sets the LoginAuthConfig field's value.
7432func (s *UpdateBackendConfigInput) SetLoginAuthConfig(v *LoginAuthConfigReqObj) *UpdateBackendConfigInput {
7433	s.LoginAuthConfig = v
7434	return s
7435}
7436
7437type UpdateBackendConfigOutput struct {
7438	_ struct{} `type:"structure"`
7439
7440	AppId *string `locationName:"appId" type:"string"`
7441
7442	BackendManagerAppId *string `locationName:"backendManagerAppId" type:"string"`
7443
7444	Error *string `locationName:"error" type:"string"`
7445
7446	// The request object for this operation.
7447	LoginAuthConfig *LoginAuthConfigReqObj `locationName:"loginAuthConfig" type:"structure"`
7448}
7449
7450// String returns the string representation.
7451//
7452// API parameter values that are decorated as "sensitive" in the API will not
7453// be included in the string output. The member name will be present, but the
7454// value will be replaced with "sensitive".
7455func (s UpdateBackendConfigOutput) String() string {
7456	return awsutil.Prettify(s)
7457}
7458
7459// GoString returns the string representation.
7460//
7461// API parameter values that are decorated as "sensitive" in the API will not
7462// be included in the string output. The member name will be present, but the
7463// value will be replaced with "sensitive".
7464func (s UpdateBackendConfigOutput) GoString() string {
7465	return s.String()
7466}
7467
7468// SetAppId sets the AppId field's value.
7469func (s *UpdateBackendConfigOutput) SetAppId(v string) *UpdateBackendConfigOutput {
7470	s.AppId = &v
7471	return s
7472}
7473
7474// SetBackendManagerAppId sets the BackendManagerAppId field's value.
7475func (s *UpdateBackendConfigOutput) SetBackendManagerAppId(v string) *UpdateBackendConfigOutput {
7476	s.BackendManagerAppId = &v
7477	return s
7478}
7479
7480// SetError sets the Error field's value.
7481func (s *UpdateBackendConfigOutput) SetError(v string) *UpdateBackendConfigOutput {
7482	s.Error = &v
7483	return s
7484}
7485
7486// SetLoginAuthConfig sets the LoginAuthConfig field's value.
7487func (s *UpdateBackendConfigOutput) SetLoginAuthConfig(v *LoginAuthConfigReqObj) *UpdateBackendConfigOutput {
7488	s.LoginAuthConfig = v
7489	return s
7490}
7491
7492type UpdateBackendJobInput struct {
7493	_ struct{} `type:"structure"`
7494
7495	// AppId is a required field
7496	AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
7497
7498	// BackendEnvironmentName is a required field
7499	BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
7500
7501	// JobId is a required field
7502	JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
7503
7504	Operation *string `locationName:"operation" type:"string"`
7505
7506	Status *string `locationName:"status" type:"string"`
7507}
7508
7509// String returns the string representation.
7510//
7511// API parameter values that are decorated as "sensitive" in the API will not
7512// be included in the string output. The member name will be present, but the
7513// value will be replaced with "sensitive".
7514func (s UpdateBackendJobInput) String() string {
7515	return awsutil.Prettify(s)
7516}
7517
7518// GoString returns the string representation.
7519//
7520// API parameter values that are decorated as "sensitive" in the API will not
7521// be included in the string output. The member name will be present, but the
7522// value will be replaced with "sensitive".
7523func (s UpdateBackendJobInput) GoString() string {
7524	return s.String()
7525}
7526
7527// Validate inspects the fields of the type to determine if they are valid.
7528func (s *UpdateBackendJobInput) Validate() error {
7529	invalidParams := request.ErrInvalidParams{Context: "UpdateBackendJobInput"}
7530	if s.AppId == nil {
7531		invalidParams.Add(request.NewErrParamRequired("AppId"))
7532	}
7533	if s.AppId != nil && len(*s.AppId) < 1 {
7534		invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
7535	}
7536	if s.BackendEnvironmentName == nil {
7537		invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
7538	}
7539	if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
7540		invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
7541	}
7542	if s.JobId == nil {
7543		invalidParams.Add(request.NewErrParamRequired("JobId"))
7544	}
7545	if s.JobId != nil && len(*s.JobId) < 1 {
7546		invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
7547	}
7548
7549	if invalidParams.Len() > 0 {
7550		return invalidParams
7551	}
7552	return nil
7553}
7554
7555// SetAppId sets the AppId field's value.
7556func (s *UpdateBackendJobInput) SetAppId(v string) *UpdateBackendJobInput {
7557	s.AppId = &v
7558	return s
7559}
7560
7561// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
7562func (s *UpdateBackendJobInput) SetBackendEnvironmentName(v string) *UpdateBackendJobInput {
7563	s.BackendEnvironmentName = &v
7564	return s
7565}
7566
7567// SetJobId sets the JobId field's value.
7568func (s *UpdateBackendJobInput) SetJobId(v string) *UpdateBackendJobInput {
7569	s.JobId = &v
7570	return s
7571}
7572
7573// SetOperation sets the Operation field's value.
7574func (s *UpdateBackendJobInput) SetOperation(v string) *UpdateBackendJobInput {
7575	s.Operation = &v
7576	return s
7577}
7578
7579// SetStatus sets the Status field's value.
7580func (s *UpdateBackendJobInput) SetStatus(v string) *UpdateBackendJobInput {
7581	s.Status = &v
7582	return s
7583}
7584
7585type UpdateBackendJobOutput struct {
7586	_ struct{} `type:"structure"`
7587
7588	AppId *string `locationName:"appId" type:"string"`
7589
7590	BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
7591
7592	CreateTime *string `locationName:"createTime" type:"string"`
7593
7594	Error *string `locationName:"error" type:"string"`
7595
7596	JobId *string `locationName:"jobId" type:"string"`
7597
7598	Operation *string `locationName:"operation" type:"string"`
7599
7600	Status *string `locationName:"status" type:"string"`
7601
7602	UpdateTime *string `locationName:"updateTime" type:"string"`
7603}
7604
7605// String returns the string representation.
7606//
7607// API parameter values that are decorated as "sensitive" in the API will not
7608// be included in the string output. The member name will be present, but the
7609// value will be replaced with "sensitive".
7610func (s UpdateBackendJobOutput) String() string {
7611	return awsutil.Prettify(s)
7612}
7613
7614// GoString returns the string representation.
7615//
7616// API parameter values that are decorated as "sensitive" in the API will not
7617// be included in the string output. The member name will be present, but the
7618// value will be replaced with "sensitive".
7619func (s UpdateBackendJobOutput) GoString() string {
7620	return s.String()
7621}
7622
7623// SetAppId sets the AppId field's value.
7624func (s *UpdateBackendJobOutput) SetAppId(v string) *UpdateBackendJobOutput {
7625	s.AppId = &v
7626	return s
7627}
7628
7629// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
7630func (s *UpdateBackendJobOutput) SetBackendEnvironmentName(v string) *UpdateBackendJobOutput {
7631	s.BackendEnvironmentName = &v
7632	return s
7633}
7634
7635// SetCreateTime sets the CreateTime field's value.
7636func (s *UpdateBackendJobOutput) SetCreateTime(v string) *UpdateBackendJobOutput {
7637	s.CreateTime = &v
7638	return s
7639}
7640
7641// SetError sets the Error field's value.
7642func (s *UpdateBackendJobOutput) SetError(v string) *UpdateBackendJobOutput {
7643	s.Error = &v
7644	return s
7645}
7646
7647// SetJobId sets the JobId field's value.
7648func (s *UpdateBackendJobOutput) SetJobId(v string) *UpdateBackendJobOutput {
7649	s.JobId = &v
7650	return s
7651}
7652
7653// SetOperation sets the Operation field's value.
7654func (s *UpdateBackendJobOutput) SetOperation(v string) *UpdateBackendJobOutput {
7655	s.Operation = &v
7656	return s
7657}
7658
7659// SetStatus sets the Status field's value.
7660func (s *UpdateBackendJobOutput) SetStatus(v string) *UpdateBackendJobOutput {
7661	s.Status = &v
7662	return s
7663}
7664
7665// SetUpdateTime sets the UpdateTime field's value.
7666func (s *UpdateBackendJobOutput) SetUpdateTime(v string) *UpdateBackendJobOutput {
7667	s.UpdateTime = &v
7668	return s
7669}
7670
7671const (
7672	// AdditionalConstraintsElementRequireDigit is a AdditionalConstraintsElement enum value
7673	AdditionalConstraintsElementRequireDigit = "REQUIRE_DIGIT"
7674
7675	// AdditionalConstraintsElementRequireLowercase is a AdditionalConstraintsElement enum value
7676	AdditionalConstraintsElementRequireLowercase = "REQUIRE_LOWERCASE"
7677
7678	// AdditionalConstraintsElementRequireSymbol is a AdditionalConstraintsElement enum value
7679	AdditionalConstraintsElementRequireSymbol = "REQUIRE_SYMBOL"
7680
7681	// AdditionalConstraintsElementRequireUppercase is a AdditionalConstraintsElement enum value
7682	AdditionalConstraintsElementRequireUppercase = "REQUIRE_UPPERCASE"
7683)
7684
7685// AdditionalConstraintsElement_Values returns all elements of the AdditionalConstraintsElement enum
7686func AdditionalConstraintsElement_Values() []string {
7687	return []string{
7688		AdditionalConstraintsElementRequireDigit,
7689		AdditionalConstraintsElementRequireLowercase,
7690		AdditionalConstraintsElementRequireSymbol,
7691		AdditionalConstraintsElementRequireUppercase,
7692	}
7693}
7694
7695const (
7696	// AuthResourcesUserPoolOnly is a AuthResources enum value
7697	AuthResourcesUserPoolOnly = "USER_POOL_ONLY"
7698
7699	// AuthResourcesIdentityPoolAndUserPool is a AuthResources enum value
7700	AuthResourcesIdentityPoolAndUserPool = "IDENTITY_POOL_AND_USER_POOL"
7701)
7702
7703// AuthResources_Values returns all elements of the AuthResources enum
7704func AuthResources_Values() []string {
7705	return []string{
7706		AuthResourcesUserPoolOnly,
7707		AuthResourcesIdentityPoolAndUserPool,
7708	}
7709}
7710
7711const (
7712	// DeliveryMethodEmail is a DeliveryMethod enum value
7713	DeliveryMethodEmail = "EMAIL"
7714
7715	// DeliveryMethodSms is a DeliveryMethod enum value
7716	DeliveryMethodSms = "SMS"
7717)
7718
7719// DeliveryMethod_Values returns all elements of the DeliveryMethod enum
7720func DeliveryMethod_Values() []string {
7721	return []string{
7722		DeliveryMethodEmail,
7723		DeliveryMethodSms,
7724	}
7725}
7726
7727const (
7728	// MFAModeOn is a MFAMode enum value
7729	MFAModeOn = "ON"
7730
7731	// MFAModeOff is a MFAMode enum value
7732	MFAModeOff = "OFF"
7733
7734	// MFAModeOptional is a MFAMode enum value
7735	MFAModeOptional = "OPTIONAL"
7736)
7737
7738// MFAMode_Values returns all elements of the MFAMode enum
7739func MFAMode_Values() []string {
7740	return []string{
7741		MFAModeOn,
7742		MFAModeOff,
7743		MFAModeOptional,
7744	}
7745}
7746
7747const (
7748	// MfaTypesElementSms is a MfaTypesElement enum value
7749	MfaTypesElementSms = "SMS"
7750
7751	// MfaTypesElementTotp is a MfaTypesElement enum value
7752	MfaTypesElementTotp = "TOTP"
7753)
7754
7755// MfaTypesElement_Values returns all elements of the MfaTypesElement enum
7756func MfaTypesElement_Values() []string {
7757	return []string{
7758		MfaTypesElementSms,
7759		MfaTypesElementTotp,
7760	}
7761}
7762
7763const (
7764	// ModeApiKey is a Mode enum value
7765	ModeApiKey = "API_KEY"
7766
7767	// ModeAwsIam is a Mode enum value
7768	ModeAwsIam = "AWS_IAM"
7769
7770	// ModeAmazonCognitoUserPools is a Mode enum value
7771	ModeAmazonCognitoUserPools = "AMAZON_COGNITO_USER_POOLS"
7772
7773	// ModeOpenidConnect is a Mode enum value
7774	ModeOpenidConnect = "OPENID_CONNECT"
7775)
7776
7777// Mode_Values returns all elements of the Mode enum
7778func Mode_Values() []string {
7779	return []string{
7780		ModeApiKey,
7781		ModeAwsIam,
7782		ModeAmazonCognitoUserPools,
7783		ModeOpenidConnect,
7784	}
7785}
7786
7787const (
7788	// OAuthGrantTypeCode is a OAuthGrantType enum value
7789	OAuthGrantTypeCode = "CODE"
7790
7791	// OAuthGrantTypeImplicit is a OAuthGrantType enum value
7792	OAuthGrantTypeImplicit = "IMPLICIT"
7793)
7794
7795// OAuthGrantType_Values returns all elements of the OAuthGrantType enum
7796func OAuthGrantType_Values() []string {
7797	return []string{
7798		OAuthGrantTypeCode,
7799		OAuthGrantTypeImplicit,
7800	}
7801}
7802
7803const (
7804	// OAuthScopesElementPhone is a OAuthScopesElement enum value
7805	OAuthScopesElementPhone = "PHONE"
7806
7807	// OAuthScopesElementEmail is a OAuthScopesElement enum value
7808	OAuthScopesElementEmail = "EMAIL"
7809
7810	// OAuthScopesElementOpenid is a OAuthScopesElement enum value
7811	OAuthScopesElementOpenid = "OPENID"
7812
7813	// OAuthScopesElementProfile is a OAuthScopesElement enum value
7814	OAuthScopesElementProfile = "PROFILE"
7815
7816	// OAuthScopesElementAwsCognitoSigninUserAdmin is a OAuthScopesElement enum value
7817	OAuthScopesElementAwsCognitoSigninUserAdmin = "AWS_COGNITO_SIGNIN_USER_ADMIN"
7818)
7819
7820// OAuthScopesElement_Values returns all elements of the OAuthScopesElement enum
7821func OAuthScopesElement_Values() []string {
7822	return []string{
7823		OAuthScopesElementPhone,
7824		OAuthScopesElementEmail,
7825		OAuthScopesElementOpenid,
7826		OAuthScopesElementProfile,
7827		OAuthScopesElementAwsCognitoSigninUserAdmin,
7828	}
7829}
7830
7831const (
7832	// RequiredSignUpAttributesElementAddress is a RequiredSignUpAttributesElement enum value
7833	RequiredSignUpAttributesElementAddress = "ADDRESS"
7834
7835	// RequiredSignUpAttributesElementBirthdate is a RequiredSignUpAttributesElement enum value
7836	RequiredSignUpAttributesElementBirthdate = "BIRTHDATE"
7837
7838	// RequiredSignUpAttributesElementEmail is a RequiredSignUpAttributesElement enum value
7839	RequiredSignUpAttributesElementEmail = "EMAIL"
7840
7841	// RequiredSignUpAttributesElementFamilyName is a RequiredSignUpAttributesElement enum value
7842	RequiredSignUpAttributesElementFamilyName = "FAMILY_NAME"
7843
7844	// RequiredSignUpAttributesElementGender is a RequiredSignUpAttributesElement enum value
7845	RequiredSignUpAttributesElementGender = "GENDER"
7846
7847	// RequiredSignUpAttributesElementGivenName is a RequiredSignUpAttributesElement enum value
7848	RequiredSignUpAttributesElementGivenName = "GIVEN_NAME"
7849
7850	// RequiredSignUpAttributesElementLocale is a RequiredSignUpAttributesElement enum value
7851	RequiredSignUpAttributesElementLocale = "LOCALE"
7852
7853	// RequiredSignUpAttributesElementMiddleName is a RequiredSignUpAttributesElement enum value
7854	RequiredSignUpAttributesElementMiddleName = "MIDDLE_NAME"
7855
7856	// RequiredSignUpAttributesElementName is a RequiredSignUpAttributesElement enum value
7857	RequiredSignUpAttributesElementName = "NAME"
7858
7859	// RequiredSignUpAttributesElementNickname is a RequiredSignUpAttributesElement enum value
7860	RequiredSignUpAttributesElementNickname = "NICKNAME"
7861
7862	// RequiredSignUpAttributesElementPhoneNumber is a RequiredSignUpAttributesElement enum value
7863	RequiredSignUpAttributesElementPhoneNumber = "PHONE_NUMBER"
7864
7865	// RequiredSignUpAttributesElementPicture is a RequiredSignUpAttributesElement enum value
7866	RequiredSignUpAttributesElementPicture = "PICTURE"
7867
7868	// RequiredSignUpAttributesElementPreferredUsername is a RequiredSignUpAttributesElement enum value
7869	RequiredSignUpAttributesElementPreferredUsername = "PREFERRED_USERNAME"
7870
7871	// RequiredSignUpAttributesElementProfile is a RequiredSignUpAttributesElement enum value
7872	RequiredSignUpAttributesElementProfile = "PROFILE"
7873
7874	// RequiredSignUpAttributesElementUpdatedAt is a RequiredSignUpAttributesElement enum value
7875	RequiredSignUpAttributesElementUpdatedAt = "UPDATED_AT"
7876
7877	// RequiredSignUpAttributesElementWebsite is a RequiredSignUpAttributesElement enum value
7878	RequiredSignUpAttributesElementWebsite = "WEBSITE"
7879
7880	// RequiredSignUpAttributesElementZoneInfo is a RequiredSignUpAttributesElement enum value
7881	RequiredSignUpAttributesElementZoneInfo = "ZONE_INFO"
7882)
7883
7884// RequiredSignUpAttributesElement_Values returns all elements of the RequiredSignUpAttributesElement enum
7885func RequiredSignUpAttributesElement_Values() []string {
7886	return []string{
7887		RequiredSignUpAttributesElementAddress,
7888		RequiredSignUpAttributesElementBirthdate,
7889		RequiredSignUpAttributesElementEmail,
7890		RequiredSignUpAttributesElementFamilyName,
7891		RequiredSignUpAttributesElementGender,
7892		RequiredSignUpAttributesElementGivenName,
7893		RequiredSignUpAttributesElementLocale,
7894		RequiredSignUpAttributesElementMiddleName,
7895		RequiredSignUpAttributesElementName,
7896		RequiredSignUpAttributesElementNickname,
7897		RequiredSignUpAttributesElementPhoneNumber,
7898		RequiredSignUpAttributesElementPicture,
7899		RequiredSignUpAttributesElementPreferredUsername,
7900		RequiredSignUpAttributesElementProfile,
7901		RequiredSignUpAttributesElementUpdatedAt,
7902		RequiredSignUpAttributesElementWebsite,
7903		RequiredSignUpAttributesElementZoneInfo,
7904	}
7905}
7906
7907const (
7908	// ResolutionStrategyOptimisticConcurrency is a ResolutionStrategy enum value
7909	ResolutionStrategyOptimisticConcurrency = "OPTIMISTIC_CONCURRENCY"
7910
7911	// ResolutionStrategyLambda is a ResolutionStrategy enum value
7912	ResolutionStrategyLambda = "LAMBDA"
7913
7914	// ResolutionStrategyAutomerge is a ResolutionStrategy enum value
7915	ResolutionStrategyAutomerge = "AUTOMERGE"
7916
7917	// ResolutionStrategyNone is a ResolutionStrategy enum value
7918	ResolutionStrategyNone = "NONE"
7919)
7920
7921// ResolutionStrategy_Values returns all elements of the ResolutionStrategy enum
7922func ResolutionStrategy_Values() []string {
7923	return []string{
7924		ResolutionStrategyOptimisticConcurrency,
7925		ResolutionStrategyLambda,
7926		ResolutionStrategyAutomerge,
7927		ResolutionStrategyNone,
7928	}
7929}
7930
7931const (
7932	// ServiceCognito is a Service enum value
7933	ServiceCognito = "COGNITO"
7934)
7935
7936// Service_Values returns all elements of the Service enum
7937func Service_Values() []string {
7938	return []string{
7939		ServiceCognito,
7940	}
7941}
7942
7943const (
7944	// SignInMethodEmail is a SignInMethod enum value
7945	SignInMethodEmail = "EMAIL"
7946
7947	// SignInMethodEmailAndPhoneNumber is a SignInMethod enum value
7948	SignInMethodEmailAndPhoneNumber = "EMAIL_AND_PHONE_NUMBER"
7949
7950	// SignInMethodPhoneNumber is a SignInMethod enum value
7951	SignInMethodPhoneNumber = "PHONE_NUMBER"
7952
7953	// SignInMethodUsername is a SignInMethod enum value
7954	SignInMethodUsername = "USERNAME"
7955)
7956
7957// SignInMethod_Values returns all elements of the SignInMethod enum
7958func SignInMethod_Values() []string {
7959	return []string{
7960		SignInMethodEmail,
7961		SignInMethodEmailAndPhoneNumber,
7962		SignInMethodPhoneNumber,
7963		SignInMethodUsername,
7964	}
7965}
7966
7967const (
7968	// StatusLatest is a Status enum value
7969	StatusLatest = "LATEST"
7970
7971	// StatusStale is a Status enum value
7972	StatusStale = "STALE"
7973)
7974
7975// Status_Values returns all elements of the Status enum
7976func Status_Values() []string {
7977	return []string{
7978		StatusLatest,
7979		StatusStale,
7980	}
7981}
7982