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