github.com/aavshr/aws-sdk-go@v1.41.3/service/schemas/api.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package schemas
     4  
     5  import (
     6  	"fmt"
     7  	"time"
     8  
     9  	"github.com/aavshr/aws-sdk-go/aws"
    10  	"github.com/aavshr/aws-sdk-go/aws/awsutil"
    11  	"github.com/aavshr/aws-sdk-go/aws/request"
    12  	"github.com/aavshr/aws-sdk-go/private/protocol"
    13  	"github.com/aavshr/aws-sdk-go/private/protocol/restjson"
    14  )
    15  
    16  const 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
    42  func (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
    83  func (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.
    97  func (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  
   104  const 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
   130  func (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
   171  func (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.
   185  func (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  
   192  const 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
   218  func (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
   257  func (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.
   271  func (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  
   278  const 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
   304  func (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
   346  func (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.
   360  func (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  
   367  const 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
   393  func (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
   435  func (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.
   449  func (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  
   456  const 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
   482  func (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
   524  func (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.
   538  func (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  
   545  const 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
   571  func (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
   613  func (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.
   627  func (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  
   634  const 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
   660  func (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
   702  func (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.
   716  func (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  
   723  const 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
   749  func (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
   790  func (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.
   804  func (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  
   811  const 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
   837  func (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
   878  func (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.
   892  func (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  
   899  const 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
   925  func (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
   966  func (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.
   980  func (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  
   987  const 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
  1013  func (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
  1054  func (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.
  1068  func (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  
  1075  const 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
  1101  func (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
  1144  func (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.
  1158  func (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  
  1165  const 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
  1191  func (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
  1232  func (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.
  1246  func (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  
  1253  const 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
  1279  func (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
  1318  func (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.
  1332  func (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  
  1339  const 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
  1365  func (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
  1406  func (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.
  1420  func (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  
  1427  const 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
  1453  func (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
  1498  func (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.
  1512  func (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  //
  1536  func (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.
  1547  func (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  
  1571  const 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
  1597  func (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
  1642  func (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.
  1656  func (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  //
  1680  func (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.
  1691  func (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  
  1715  const 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
  1741  func (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
  1788  func (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.
  1802  func (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  //
  1826  func (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.
  1837  func (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  
  1861  const 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
  1887  func (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
  1932  func (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.
  1946  func (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  //
  1970  func (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.
  1981  func (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  
  2005  const 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
  2031  func (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
  2068  func (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.
  2082  func (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  
  2089  const 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
  2115  func (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
  2158  func (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.
  2172  func (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  
  2179  const 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
  2205  func (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
  2248  func (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.
  2262  func (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  
  2269  const 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
  2295  func (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
  2340  func (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.
  2354  func (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  //
  2378  func (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.
  2389  func (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  
  2413  const 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
  2439  func (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
  2480  func (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.
  2494  func (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  
  2501  const 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
  2527  func (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
  2568  func (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.
  2582  func (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  
  2589  const 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
  2615  func (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
  2653  func (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.
  2667  func (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  
  2674  const 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
  2700  func (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
  2738  func (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.
  2752  func (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  
  2759  const 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
  2785  func (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
  2826  func (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.
  2840  func (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  
  2847  const 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
  2873  func (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
  2914  func (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.
  2928  func (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  
  2935  const 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
  2961  func (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
  3002  func (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.
  3016  func (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  
  3023  type 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.
  3033  //
  3034  // API parameter values that are decorated as "sensitive" in the API will not
  3035  // be included in the string output. The member name will be present, but the
  3036  // value will be replaced with "sensitive".
  3037  func (s BadRequestException) String() string {
  3038  	return awsutil.Prettify(s)
  3039  }
  3040  
  3041  // GoString returns the string representation.
  3042  //
  3043  // API parameter values that are decorated as "sensitive" in the API will not
  3044  // be included in the string output. The member name will be present, but the
  3045  // value will be replaced with "sensitive".
  3046  func (s BadRequestException) GoString() string {
  3047  	return s.String()
  3048  }
  3049  
  3050  func newErrorBadRequestException(v protocol.ResponseMetadata) error {
  3051  	return &BadRequestException{
  3052  		RespMetadata: v,
  3053  	}
  3054  }
  3055  
  3056  // Code returns the exception type name.
  3057  func (s *BadRequestException) Code() string {
  3058  	return "BadRequestException"
  3059  }
  3060  
  3061  // Message returns the exception's message.
  3062  func (s *BadRequestException) Message() string {
  3063  	if s.Message_ != nil {
  3064  		return *s.Message_
  3065  	}
  3066  	return ""
  3067  }
  3068  
  3069  // OrigErr always returns nil, satisfies awserr.Error interface.
  3070  func (s *BadRequestException) OrigErr() error {
  3071  	return nil
  3072  }
  3073  
  3074  func (s *BadRequestException) Error() string {
  3075  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  3076  }
  3077  
  3078  // Status code returns the HTTP status code for the request's response error.
  3079  func (s *BadRequestException) StatusCode() int {
  3080  	return s.RespMetadata.StatusCode
  3081  }
  3082  
  3083  // RequestID returns the service's response RequestID for request.
  3084  func (s *BadRequestException) RequestID() string {
  3085  	return s.RespMetadata.RequestID
  3086  }
  3087  
  3088  type ConflictException struct {
  3089  	_            struct{}                  `type:"structure"`
  3090  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  3091  
  3092  	Code_ *string `locationName:"Code" type:"string"`
  3093  
  3094  	Message_ *string `locationName:"Message" type:"string"`
  3095  }
  3096  
  3097  // String returns the string representation.
  3098  //
  3099  // API parameter values that are decorated as "sensitive" in the API will not
  3100  // be included in the string output. The member name will be present, but the
  3101  // value will be replaced with "sensitive".
  3102  func (s ConflictException) String() string {
  3103  	return awsutil.Prettify(s)
  3104  }
  3105  
  3106  // GoString returns the string representation.
  3107  //
  3108  // API parameter values that are decorated as "sensitive" in the API will not
  3109  // be included in the string output. The member name will be present, but the
  3110  // value will be replaced with "sensitive".
  3111  func (s ConflictException) GoString() string {
  3112  	return s.String()
  3113  }
  3114  
  3115  func newErrorConflictException(v protocol.ResponseMetadata) error {
  3116  	return &ConflictException{
  3117  		RespMetadata: v,
  3118  	}
  3119  }
  3120  
  3121  // Code returns the exception type name.
  3122  func (s *ConflictException) Code() string {
  3123  	return "ConflictException"
  3124  }
  3125  
  3126  // Message returns the exception's message.
  3127  func (s *ConflictException) Message() string {
  3128  	if s.Message_ != nil {
  3129  		return *s.Message_
  3130  	}
  3131  	return ""
  3132  }
  3133  
  3134  // OrigErr always returns nil, satisfies awserr.Error interface.
  3135  func (s *ConflictException) OrigErr() error {
  3136  	return nil
  3137  }
  3138  
  3139  func (s *ConflictException) Error() string {
  3140  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  3141  }
  3142  
  3143  // Status code returns the HTTP status code for the request's response error.
  3144  func (s *ConflictException) StatusCode() int {
  3145  	return s.RespMetadata.StatusCode
  3146  }
  3147  
  3148  // RequestID returns the service's response RequestID for request.
  3149  func (s *ConflictException) RequestID() string {
  3150  	return s.RespMetadata.RequestID
  3151  }
  3152  
  3153  type CreateDiscovererInput struct {
  3154  	_ struct{} `type:"structure"`
  3155  
  3156  	CrossAccount *bool `type:"boolean"`
  3157  
  3158  	Description *string `type:"string"`
  3159  
  3160  	// SourceArn is a required field
  3161  	SourceArn *string `min:"20" type:"string" required:"true"`
  3162  
  3163  	// Key-value pairs associated with a resource.
  3164  	Tags map[string]*string `locationName:"tags" type:"map"`
  3165  }
  3166  
  3167  // String returns the string representation.
  3168  //
  3169  // API parameter values that are decorated as "sensitive" in the API will not
  3170  // be included in the string output. The member name will be present, but the
  3171  // value will be replaced with "sensitive".
  3172  func (s CreateDiscovererInput) String() string {
  3173  	return awsutil.Prettify(s)
  3174  }
  3175  
  3176  // GoString returns the string representation.
  3177  //
  3178  // API parameter values that are decorated as "sensitive" in the API will not
  3179  // be included in the string output. The member name will be present, but the
  3180  // value will be replaced with "sensitive".
  3181  func (s CreateDiscovererInput) GoString() string {
  3182  	return s.String()
  3183  }
  3184  
  3185  // Validate inspects the fields of the type to determine if they are valid.
  3186  func (s *CreateDiscovererInput) Validate() error {
  3187  	invalidParams := request.ErrInvalidParams{Context: "CreateDiscovererInput"}
  3188  	if s.SourceArn == nil {
  3189  		invalidParams.Add(request.NewErrParamRequired("SourceArn"))
  3190  	}
  3191  	if s.SourceArn != nil && len(*s.SourceArn) < 20 {
  3192  		invalidParams.Add(request.NewErrParamMinLen("SourceArn", 20))
  3193  	}
  3194  
  3195  	if invalidParams.Len() > 0 {
  3196  		return invalidParams
  3197  	}
  3198  	return nil
  3199  }
  3200  
  3201  // SetCrossAccount sets the CrossAccount field's value.
  3202  func (s *CreateDiscovererInput) SetCrossAccount(v bool) *CreateDiscovererInput {
  3203  	s.CrossAccount = &v
  3204  	return s
  3205  }
  3206  
  3207  // SetDescription sets the Description field's value.
  3208  func (s *CreateDiscovererInput) SetDescription(v string) *CreateDiscovererInput {
  3209  	s.Description = &v
  3210  	return s
  3211  }
  3212  
  3213  // SetSourceArn sets the SourceArn field's value.
  3214  func (s *CreateDiscovererInput) SetSourceArn(v string) *CreateDiscovererInput {
  3215  	s.SourceArn = &v
  3216  	return s
  3217  }
  3218  
  3219  // SetTags sets the Tags field's value.
  3220  func (s *CreateDiscovererInput) SetTags(v map[string]*string) *CreateDiscovererInput {
  3221  	s.Tags = v
  3222  	return s
  3223  }
  3224  
  3225  type CreateDiscovererOutput struct {
  3226  	_ struct{} `type:"structure"`
  3227  
  3228  	CrossAccount *bool `type:"boolean"`
  3229  
  3230  	Description *string `type:"string"`
  3231  
  3232  	DiscovererArn *string `type:"string"`
  3233  
  3234  	DiscovererId *string `type:"string"`
  3235  
  3236  	SourceArn *string `type:"string"`
  3237  
  3238  	State *string `type:"string" enum:"DiscovererState"`
  3239  
  3240  	// Key-value pairs associated with a resource.
  3241  	Tags map[string]*string `locationName:"tags" type:"map"`
  3242  }
  3243  
  3244  // String returns the string representation.
  3245  //
  3246  // API parameter values that are decorated as "sensitive" in the API will not
  3247  // be included in the string output. The member name will be present, but the
  3248  // value will be replaced with "sensitive".
  3249  func (s CreateDiscovererOutput) String() string {
  3250  	return awsutil.Prettify(s)
  3251  }
  3252  
  3253  // GoString returns the string representation.
  3254  //
  3255  // API parameter values that are decorated as "sensitive" in the API will not
  3256  // be included in the string output. The member name will be present, but the
  3257  // value will be replaced with "sensitive".
  3258  func (s CreateDiscovererOutput) GoString() string {
  3259  	return s.String()
  3260  }
  3261  
  3262  // SetCrossAccount sets the CrossAccount field's value.
  3263  func (s *CreateDiscovererOutput) SetCrossAccount(v bool) *CreateDiscovererOutput {
  3264  	s.CrossAccount = &v
  3265  	return s
  3266  }
  3267  
  3268  // SetDescription sets the Description field's value.
  3269  func (s *CreateDiscovererOutput) SetDescription(v string) *CreateDiscovererOutput {
  3270  	s.Description = &v
  3271  	return s
  3272  }
  3273  
  3274  // SetDiscovererArn sets the DiscovererArn field's value.
  3275  func (s *CreateDiscovererOutput) SetDiscovererArn(v string) *CreateDiscovererOutput {
  3276  	s.DiscovererArn = &v
  3277  	return s
  3278  }
  3279  
  3280  // SetDiscovererId sets the DiscovererId field's value.
  3281  func (s *CreateDiscovererOutput) SetDiscovererId(v string) *CreateDiscovererOutput {
  3282  	s.DiscovererId = &v
  3283  	return s
  3284  }
  3285  
  3286  // SetSourceArn sets the SourceArn field's value.
  3287  func (s *CreateDiscovererOutput) SetSourceArn(v string) *CreateDiscovererOutput {
  3288  	s.SourceArn = &v
  3289  	return s
  3290  }
  3291  
  3292  // SetState sets the State field's value.
  3293  func (s *CreateDiscovererOutput) SetState(v string) *CreateDiscovererOutput {
  3294  	s.State = &v
  3295  	return s
  3296  }
  3297  
  3298  // SetTags sets the Tags field's value.
  3299  func (s *CreateDiscovererOutput) SetTags(v map[string]*string) *CreateDiscovererOutput {
  3300  	s.Tags = v
  3301  	return s
  3302  }
  3303  
  3304  type CreateRegistryInput struct {
  3305  	_ struct{} `type:"structure"`
  3306  
  3307  	Description *string `type:"string"`
  3308  
  3309  	// RegistryName is a required field
  3310  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  3311  
  3312  	// Key-value pairs associated with a resource.
  3313  	Tags map[string]*string `locationName:"tags" type:"map"`
  3314  }
  3315  
  3316  // String returns the string representation.
  3317  //
  3318  // API parameter values that are decorated as "sensitive" in the API will not
  3319  // be included in the string output. The member name will be present, but the
  3320  // value will be replaced with "sensitive".
  3321  func (s CreateRegistryInput) String() string {
  3322  	return awsutil.Prettify(s)
  3323  }
  3324  
  3325  // GoString returns the string representation.
  3326  //
  3327  // API parameter values that are decorated as "sensitive" in the API will not
  3328  // be included in the string output. The member name will be present, but the
  3329  // value will be replaced with "sensitive".
  3330  func (s CreateRegistryInput) GoString() string {
  3331  	return s.String()
  3332  }
  3333  
  3334  // Validate inspects the fields of the type to determine if they are valid.
  3335  func (s *CreateRegistryInput) Validate() error {
  3336  	invalidParams := request.ErrInvalidParams{Context: "CreateRegistryInput"}
  3337  	if s.RegistryName == nil {
  3338  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  3339  	}
  3340  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  3341  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  3342  	}
  3343  
  3344  	if invalidParams.Len() > 0 {
  3345  		return invalidParams
  3346  	}
  3347  	return nil
  3348  }
  3349  
  3350  // SetDescription sets the Description field's value.
  3351  func (s *CreateRegistryInput) SetDescription(v string) *CreateRegistryInput {
  3352  	s.Description = &v
  3353  	return s
  3354  }
  3355  
  3356  // SetRegistryName sets the RegistryName field's value.
  3357  func (s *CreateRegistryInput) SetRegistryName(v string) *CreateRegistryInput {
  3358  	s.RegistryName = &v
  3359  	return s
  3360  }
  3361  
  3362  // SetTags sets the Tags field's value.
  3363  func (s *CreateRegistryInput) SetTags(v map[string]*string) *CreateRegistryInput {
  3364  	s.Tags = v
  3365  	return s
  3366  }
  3367  
  3368  type CreateRegistryOutput struct {
  3369  	_ struct{} `type:"structure"`
  3370  
  3371  	Description *string `type:"string"`
  3372  
  3373  	RegistryArn *string `type:"string"`
  3374  
  3375  	RegistryName *string `type:"string"`
  3376  
  3377  	// Key-value pairs associated with a resource.
  3378  	Tags map[string]*string `locationName:"tags" type:"map"`
  3379  }
  3380  
  3381  // String returns the string representation.
  3382  //
  3383  // API parameter values that are decorated as "sensitive" in the API will not
  3384  // be included in the string output. The member name will be present, but the
  3385  // value will be replaced with "sensitive".
  3386  func (s CreateRegistryOutput) String() string {
  3387  	return awsutil.Prettify(s)
  3388  }
  3389  
  3390  // GoString returns the string representation.
  3391  //
  3392  // API parameter values that are decorated as "sensitive" in the API will not
  3393  // be included in the string output. The member name will be present, but the
  3394  // value will be replaced with "sensitive".
  3395  func (s CreateRegistryOutput) GoString() string {
  3396  	return s.String()
  3397  }
  3398  
  3399  // SetDescription sets the Description field's value.
  3400  func (s *CreateRegistryOutput) SetDescription(v string) *CreateRegistryOutput {
  3401  	s.Description = &v
  3402  	return s
  3403  }
  3404  
  3405  // SetRegistryArn sets the RegistryArn field's value.
  3406  func (s *CreateRegistryOutput) SetRegistryArn(v string) *CreateRegistryOutput {
  3407  	s.RegistryArn = &v
  3408  	return s
  3409  }
  3410  
  3411  // SetRegistryName sets the RegistryName field's value.
  3412  func (s *CreateRegistryOutput) SetRegistryName(v string) *CreateRegistryOutput {
  3413  	s.RegistryName = &v
  3414  	return s
  3415  }
  3416  
  3417  // SetTags sets the Tags field's value.
  3418  func (s *CreateRegistryOutput) SetTags(v map[string]*string) *CreateRegistryOutput {
  3419  	s.Tags = v
  3420  	return s
  3421  }
  3422  
  3423  type CreateSchemaInput struct {
  3424  	_ struct{} `type:"structure"`
  3425  
  3426  	// Content is a required field
  3427  	Content *string `min:"1" type:"string" required:"true"`
  3428  
  3429  	Description *string `type:"string"`
  3430  
  3431  	// RegistryName is a required field
  3432  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  3433  
  3434  	// SchemaName is a required field
  3435  	SchemaName *string `location:"uri" locationName:"schemaName" type:"string" required:"true"`
  3436  
  3437  	// Key-value pairs associated with a resource.
  3438  	Tags map[string]*string `locationName:"tags" type:"map"`
  3439  
  3440  	// Type is a required field
  3441  	Type *string `type:"string" required:"true" enum:"Type"`
  3442  }
  3443  
  3444  // String returns the string representation.
  3445  //
  3446  // API parameter values that are decorated as "sensitive" in the API will not
  3447  // be included in the string output. The member name will be present, but the
  3448  // value will be replaced with "sensitive".
  3449  func (s CreateSchemaInput) String() string {
  3450  	return awsutil.Prettify(s)
  3451  }
  3452  
  3453  // GoString returns the string representation.
  3454  //
  3455  // API parameter values that are decorated as "sensitive" in the API will not
  3456  // be included in the string output. The member name will be present, but the
  3457  // value will be replaced with "sensitive".
  3458  func (s CreateSchemaInput) GoString() string {
  3459  	return s.String()
  3460  }
  3461  
  3462  // Validate inspects the fields of the type to determine if they are valid.
  3463  func (s *CreateSchemaInput) Validate() error {
  3464  	invalidParams := request.ErrInvalidParams{Context: "CreateSchemaInput"}
  3465  	if s.Content == nil {
  3466  		invalidParams.Add(request.NewErrParamRequired("Content"))
  3467  	}
  3468  	if s.Content != nil && len(*s.Content) < 1 {
  3469  		invalidParams.Add(request.NewErrParamMinLen("Content", 1))
  3470  	}
  3471  	if s.RegistryName == nil {
  3472  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  3473  	}
  3474  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  3475  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  3476  	}
  3477  	if s.SchemaName == nil {
  3478  		invalidParams.Add(request.NewErrParamRequired("SchemaName"))
  3479  	}
  3480  	if s.SchemaName != nil && len(*s.SchemaName) < 1 {
  3481  		invalidParams.Add(request.NewErrParamMinLen("SchemaName", 1))
  3482  	}
  3483  	if s.Type == nil {
  3484  		invalidParams.Add(request.NewErrParamRequired("Type"))
  3485  	}
  3486  
  3487  	if invalidParams.Len() > 0 {
  3488  		return invalidParams
  3489  	}
  3490  	return nil
  3491  }
  3492  
  3493  // SetContent sets the Content field's value.
  3494  func (s *CreateSchemaInput) SetContent(v string) *CreateSchemaInput {
  3495  	s.Content = &v
  3496  	return s
  3497  }
  3498  
  3499  // SetDescription sets the Description field's value.
  3500  func (s *CreateSchemaInput) SetDescription(v string) *CreateSchemaInput {
  3501  	s.Description = &v
  3502  	return s
  3503  }
  3504  
  3505  // SetRegistryName sets the RegistryName field's value.
  3506  func (s *CreateSchemaInput) SetRegistryName(v string) *CreateSchemaInput {
  3507  	s.RegistryName = &v
  3508  	return s
  3509  }
  3510  
  3511  // SetSchemaName sets the SchemaName field's value.
  3512  func (s *CreateSchemaInput) SetSchemaName(v string) *CreateSchemaInput {
  3513  	s.SchemaName = &v
  3514  	return s
  3515  }
  3516  
  3517  // SetTags sets the Tags field's value.
  3518  func (s *CreateSchemaInput) SetTags(v map[string]*string) *CreateSchemaInput {
  3519  	s.Tags = v
  3520  	return s
  3521  }
  3522  
  3523  // SetType sets the Type field's value.
  3524  func (s *CreateSchemaInput) SetType(v string) *CreateSchemaInput {
  3525  	s.Type = &v
  3526  	return s
  3527  }
  3528  
  3529  type CreateSchemaOutput struct {
  3530  	_ struct{} `type:"structure"`
  3531  
  3532  	Description *string `type:"string"`
  3533  
  3534  	LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3535  
  3536  	SchemaArn *string `type:"string"`
  3537  
  3538  	SchemaName *string `type:"string"`
  3539  
  3540  	SchemaVersion *string `type:"string"`
  3541  
  3542  	// Key-value pairs associated with a resource.
  3543  	Tags map[string]*string `locationName:"tags" type:"map"`
  3544  
  3545  	Type *string `type:"string"`
  3546  
  3547  	VersionCreatedDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3548  }
  3549  
  3550  // String returns the string representation.
  3551  //
  3552  // API parameter values that are decorated as "sensitive" in the API will not
  3553  // be included in the string output. The member name will be present, but the
  3554  // value will be replaced with "sensitive".
  3555  func (s CreateSchemaOutput) String() string {
  3556  	return awsutil.Prettify(s)
  3557  }
  3558  
  3559  // GoString returns the string representation.
  3560  //
  3561  // API parameter values that are decorated as "sensitive" in the API will not
  3562  // be included in the string output. The member name will be present, but the
  3563  // value will be replaced with "sensitive".
  3564  func (s CreateSchemaOutput) GoString() string {
  3565  	return s.String()
  3566  }
  3567  
  3568  // SetDescription sets the Description field's value.
  3569  func (s *CreateSchemaOutput) SetDescription(v string) *CreateSchemaOutput {
  3570  	s.Description = &v
  3571  	return s
  3572  }
  3573  
  3574  // SetLastModified sets the LastModified field's value.
  3575  func (s *CreateSchemaOutput) SetLastModified(v time.Time) *CreateSchemaOutput {
  3576  	s.LastModified = &v
  3577  	return s
  3578  }
  3579  
  3580  // SetSchemaArn sets the SchemaArn field's value.
  3581  func (s *CreateSchemaOutput) SetSchemaArn(v string) *CreateSchemaOutput {
  3582  	s.SchemaArn = &v
  3583  	return s
  3584  }
  3585  
  3586  // SetSchemaName sets the SchemaName field's value.
  3587  func (s *CreateSchemaOutput) SetSchemaName(v string) *CreateSchemaOutput {
  3588  	s.SchemaName = &v
  3589  	return s
  3590  }
  3591  
  3592  // SetSchemaVersion sets the SchemaVersion field's value.
  3593  func (s *CreateSchemaOutput) SetSchemaVersion(v string) *CreateSchemaOutput {
  3594  	s.SchemaVersion = &v
  3595  	return s
  3596  }
  3597  
  3598  // SetTags sets the Tags field's value.
  3599  func (s *CreateSchemaOutput) SetTags(v map[string]*string) *CreateSchemaOutput {
  3600  	s.Tags = v
  3601  	return s
  3602  }
  3603  
  3604  // SetType sets the Type field's value.
  3605  func (s *CreateSchemaOutput) SetType(v string) *CreateSchemaOutput {
  3606  	s.Type = &v
  3607  	return s
  3608  }
  3609  
  3610  // SetVersionCreatedDate sets the VersionCreatedDate field's value.
  3611  func (s *CreateSchemaOutput) SetVersionCreatedDate(v time.Time) *CreateSchemaOutput {
  3612  	s.VersionCreatedDate = &v
  3613  	return s
  3614  }
  3615  
  3616  type DeleteDiscovererInput struct {
  3617  	_ struct{} `type:"structure" nopayload:"true"`
  3618  
  3619  	// DiscovererId is a required field
  3620  	DiscovererId *string `location:"uri" locationName:"discovererId" type:"string" required:"true"`
  3621  }
  3622  
  3623  // String returns the string representation.
  3624  //
  3625  // API parameter values that are decorated as "sensitive" in the API will not
  3626  // be included in the string output. The member name will be present, but the
  3627  // value will be replaced with "sensitive".
  3628  func (s DeleteDiscovererInput) String() string {
  3629  	return awsutil.Prettify(s)
  3630  }
  3631  
  3632  // GoString returns the string representation.
  3633  //
  3634  // API parameter values that are decorated as "sensitive" in the API will not
  3635  // be included in the string output. The member name will be present, but the
  3636  // value will be replaced with "sensitive".
  3637  func (s DeleteDiscovererInput) GoString() string {
  3638  	return s.String()
  3639  }
  3640  
  3641  // Validate inspects the fields of the type to determine if they are valid.
  3642  func (s *DeleteDiscovererInput) Validate() error {
  3643  	invalidParams := request.ErrInvalidParams{Context: "DeleteDiscovererInput"}
  3644  	if s.DiscovererId == nil {
  3645  		invalidParams.Add(request.NewErrParamRequired("DiscovererId"))
  3646  	}
  3647  	if s.DiscovererId != nil && len(*s.DiscovererId) < 1 {
  3648  		invalidParams.Add(request.NewErrParamMinLen("DiscovererId", 1))
  3649  	}
  3650  
  3651  	if invalidParams.Len() > 0 {
  3652  		return invalidParams
  3653  	}
  3654  	return nil
  3655  }
  3656  
  3657  // SetDiscovererId sets the DiscovererId field's value.
  3658  func (s *DeleteDiscovererInput) SetDiscovererId(v string) *DeleteDiscovererInput {
  3659  	s.DiscovererId = &v
  3660  	return s
  3661  }
  3662  
  3663  type DeleteDiscovererOutput struct {
  3664  	_ struct{} `type:"structure" nopayload:"true"`
  3665  }
  3666  
  3667  // String returns the string representation.
  3668  //
  3669  // API parameter values that are decorated as "sensitive" in the API will not
  3670  // be included in the string output. The member name will be present, but the
  3671  // value will be replaced with "sensitive".
  3672  func (s DeleteDiscovererOutput) String() string {
  3673  	return awsutil.Prettify(s)
  3674  }
  3675  
  3676  // GoString returns the string representation.
  3677  //
  3678  // API parameter values that are decorated as "sensitive" in the API will not
  3679  // be included in the string output. The member name will be present, but the
  3680  // value will be replaced with "sensitive".
  3681  func (s DeleteDiscovererOutput) GoString() string {
  3682  	return s.String()
  3683  }
  3684  
  3685  type DeleteRegistryInput struct {
  3686  	_ struct{} `type:"structure" nopayload:"true"`
  3687  
  3688  	// RegistryName is a required field
  3689  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  3690  }
  3691  
  3692  // String returns the string representation.
  3693  //
  3694  // API parameter values that are decorated as "sensitive" in the API will not
  3695  // be included in the string output. The member name will be present, but the
  3696  // value will be replaced with "sensitive".
  3697  func (s DeleteRegistryInput) String() string {
  3698  	return awsutil.Prettify(s)
  3699  }
  3700  
  3701  // GoString returns the string representation.
  3702  //
  3703  // API parameter values that are decorated as "sensitive" in the API will not
  3704  // be included in the string output. The member name will be present, but the
  3705  // value will be replaced with "sensitive".
  3706  func (s DeleteRegistryInput) GoString() string {
  3707  	return s.String()
  3708  }
  3709  
  3710  // Validate inspects the fields of the type to determine if they are valid.
  3711  func (s *DeleteRegistryInput) Validate() error {
  3712  	invalidParams := request.ErrInvalidParams{Context: "DeleteRegistryInput"}
  3713  	if s.RegistryName == nil {
  3714  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  3715  	}
  3716  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  3717  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  3718  	}
  3719  
  3720  	if invalidParams.Len() > 0 {
  3721  		return invalidParams
  3722  	}
  3723  	return nil
  3724  }
  3725  
  3726  // SetRegistryName sets the RegistryName field's value.
  3727  func (s *DeleteRegistryInput) SetRegistryName(v string) *DeleteRegistryInput {
  3728  	s.RegistryName = &v
  3729  	return s
  3730  }
  3731  
  3732  type DeleteRegistryOutput struct {
  3733  	_ struct{} `type:"structure" nopayload:"true"`
  3734  }
  3735  
  3736  // String returns the string representation.
  3737  //
  3738  // API parameter values that are decorated as "sensitive" in the API will not
  3739  // be included in the string output. The member name will be present, but the
  3740  // value will be replaced with "sensitive".
  3741  func (s DeleteRegistryOutput) String() string {
  3742  	return awsutil.Prettify(s)
  3743  }
  3744  
  3745  // GoString returns the string representation.
  3746  //
  3747  // API parameter values that are decorated as "sensitive" in the API will not
  3748  // be included in the string output. The member name will be present, but the
  3749  // value will be replaced with "sensitive".
  3750  func (s DeleteRegistryOutput) GoString() string {
  3751  	return s.String()
  3752  }
  3753  
  3754  type DeleteResourcePolicyInput struct {
  3755  	_ struct{} `type:"structure" nopayload:"true"`
  3756  
  3757  	RegistryName *string `location:"querystring" locationName:"registryName" type:"string"`
  3758  }
  3759  
  3760  // String returns the string representation.
  3761  //
  3762  // API parameter values that are decorated as "sensitive" in the API will not
  3763  // be included in the string output. The member name will be present, but the
  3764  // value will be replaced with "sensitive".
  3765  func (s DeleteResourcePolicyInput) String() string {
  3766  	return awsutil.Prettify(s)
  3767  }
  3768  
  3769  // GoString returns the string representation.
  3770  //
  3771  // API parameter values that are decorated as "sensitive" in the API will not
  3772  // be included in the string output. The member name will be present, but the
  3773  // value will be replaced with "sensitive".
  3774  func (s DeleteResourcePolicyInput) GoString() string {
  3775  	return s.String()
  3776  }
  3777  
  3778  // SetRegistryName sets the RegistryName field's value.
  3779  func (s *DeleteResourcePolicyInput) SetRegistryName(v string) *DeleteResourcePolicyInput {
  3780  	s.RegistryName = &v
  3781  	return s
  3782  }
  3783  
  3784  type DeleteResourcePolicyOutput struct {
  3785  	_ struct{} `type:"structure" nopayload:"true"`
  3786  }
  3787  
  3788  // String returns the string representation.
  3789  //
  3790  // API parameter values that are decorated as "sensitive" in the API will not
  3791  // be included in the string output. The member name will be present, but the
  3792  // value will be replaced with "sensitive".
  3793  func (s DeleteResourcePolicyOutput) String() string {
  3794  	return awsutil.Prettify(s)
  3795  }
  3796  
  3797  // GoString returns the string representation.
  3798  //
  3799  // API parameter values that are decorated as "sensitive" in the API will not
  3800  // be included in the string output. The member name will be present, but the
  3801  // value will be replaced with "sensitive".
  3802  func (s DeleteResourcePolicyOutput) GoString() string {
  3803  	return s.String()
  3804  }
  3805  
  3806  type DeleteSchemaInput struct {
  3807  	_ struct{} `type:"structure" nopayload:"true"`
  3808  
  3809  	// RegistryName is a required field
  3810  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  3811  
  3812  	// SchemaName is a required field
  3813  	SchemaName *string `location:"uri" locationName:"schemaName" type:"string" required:"true"`
  3814  }
  3815  
  3816  // String returns the string representation.
  3817  //
  3818  // API parameter values that are decorated as "sensitive" in the API will not
  3819  // be included in the string output. The member name will be present, but the
  3820  // value will be replaced with "sensitive".
  3821  func (s DeleteSchemaInput) String() string {
  3822  	return awsutil.Prettify(s)
  3823  }
  3824  
  3825  // GoString returns the string representation.
  3826  //
  3827  // API parameter values that are decorated as "sensitive" in the API will not
  3828  // be included in the string output. The member name will be present, but the
  3829  // value will be replaced with "sensitive".
  3830  func (s DeleteSchemaInput) GoString() string {
  3831  	return s.String()
  3832  }
  3833  
  3834  // Validate inspects the fields of the type to determine if they are valid.
  3835  func (s *DeleteSchemaInput) Validate() error {
  3836  	invalidParams := request.ErrInvalidParams{Context: "DeleteSchemaInput"}
  3837  	if s.RegistryName == nil {
  3838  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  3839  	}
  3840  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  3841  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  3842  	}
  3843  	if s.SchemaName == nil {
  3844  		invalidParams.Add(request.NewErrParamRequired("SchemaName"))
  3845  	}
  3846  	if s.SchemaName != nil && len(*s.SchemaName) < 1 {
  3847  		invalidParams.Add(request.NewErrParamMinLen("SchemaName", 1))
  3848  	}
  3849  
  3850  	if invalidParams.Len() > 0 {
  3851  		return invalidParams
  3852  	}
  3853  	return nil
  3854  }
  3855  
  3856  // SetRegistryName sets the RegistryName field's value.
  3857  func (s *DeleteSchemaInput) SetRegistryName(v string) *DeleteSchemaInput {
  3858  	s.RegistryName = &v
  3859  	return s
  3860  }
  3861  
  3862  // SetSchemaName sets the SchemaName field's value.
  3863  func (s *DeleteSchemaInput) SetSchemaName(v string) *DeleteSchemaInput {
  3864  	s.SchemaName = &v
  3865  	return s
  3866  }
  3867  
  3868  type DeleteSchemaOutput struct {
  3869  	_ struct{} `type:"structure" nopayload:"true"`
  3870  }
  3871  
  3872  // String returns the string representation.
  3873  //
  3874  // API parameter values that are decorated as "sensitive" in the API will not
  3875  // be included in the string output. The member name will be present, but the
  3876  // value will be replaced with "sensitive".
  3877  func (s DeleteSchemaOutput) String() string {
  3878  	return awsutil.Prettify(s)
  3879  }
  3880  
  3881  // GoString returns the string representation.
  3882  //
  3883  // API parameter values that are decorated as "sensitive" in the API will not
  3884  // be included in the string output. The member name will be present, but the
  3885  // value will be replaced with "sensitive".
  3886  func (s DeleteSchemaOutput) GoString() string {
  3887  	return s.String()
  3888  }
  3889  
  3890  type DeleteSchemaVersionInput struct {
  3891  	_ struct{} `type:"structure" nopayload:"true"`
  3892  
  3893  	// RegistryName is a required field
  3894  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  3895  
  3896  	// SchemaName is a required field
  3897  	SchemaName *string `location:"uri" locationName:"schemaName" type:"string" required:"true"`
  3898  
  3899  	// SchemaVersion is a required field
  3900  	SchemaVersion *string `location:"uri" locationName:"schemaVersion" type:"string" required:"true"`
  3901  }
  3902  
  3903  // String returns the string representation.
  3904  //
  3905  // API parameter values that are decorated as "sensitive" in the API will not
  3906  // be included in the string output. The member name will be present, but the
  3907  // value will be replaced with "sensitive".
  3908  func (s DeleteSchemaVersionInput) String() string {
  3909  	return awsutil.Prettify(s)
  3910  }
  3911  
  3912  // GoString returns the string representation.
  3913  //
  3914  // API parameter values that are decorated as "sensitive" in the API will not
  3915  // be included in the string output. The member name will be present, but the
  3916  // value will be replaced with "sensitive".
  3917  func (s DeleteSchemaVersionInput) GoString() string {
  3918  	return s.String()
  3919  }
  3920  
  3921  // Validate inspects the fields of the type to determine if they are valid.
  3922  func (s *DeleteSchemaVersionInput) Validate() error {
  3923  	invalidParams := request.ErrInvalidParams{Context: "DeleteSchemaVersionInput"}
  3924  	if s.RegistryName == nil {
  3925  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  3926  	}
  3927  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  3928  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  3929  	}
  3930  	if s.SchemaName == nil {
  3931  		invalidParams.Add(request.NewErrParamRequired("SchemaName"))
  3932  	}
  3933  	if s.SchemaName != nil && len(*s.SchemaName) < 1 {
  3934  		invalidParams.Add(request.NewErrParamMinLen("SchemaName", 1))
  3935  	}
  3936  	if s.SchemaVersion == nil {
  3937  		invalidParams.Add(request.NewErrParamRequired("SchemaVersion"))
  3938  	}
  3939  	if s.SchemaVersion != nil && len(*s.SchemaVersion) < 1 {
  3940  		invalidParams.Add(request.NewErrParamMinLen("SchemaVersion", 1))
  3941  	}
  3942  
  3943  	if invalidParams.Len() > 0 {
  3944  		return invalidParams
  3945  	}
  3946  	return nil
  3947  }
  3948  
  3949  // SetRegistryName sets the RegistryName field's value.
  3950  func (s *DeleteSchemaVersionInput) SetRegistryName(v string) *DeleteSchemaVersionInput {
  3951  	s.RegistryName = &v
  3952  	return s
  3953  }
  3954  
  3955  // SetSchemaName sets the SchemaName field's value.
  3956  func (s *DeleteSchemaVersionInput) SetSchemaName(v string) *DeleteSchemaVersionInput {
  3957  	s.SchemaName = &v
  3958  	return s
  3959  }
  3960  
  3961  // SetSchemaVersion sets the SchemaVersion field's value.
  3962  func (s *DeleteSchemaVersionInput) SetSchemaVersion(v string) *DeleteSchemaVersionInput {
  3963  	s.SchemaVersion = &v
  3964  	return s
  3965  }
  3966  
  3967  type DeleteSchemaVersionOutput struct {
  3968  	_ struct{} `type:"structure" nopayload:"true"`
  3969  }
  3970  
  3971  // String returns the string representation.
  3972  //
  3973  // API parameter values that are decorated as "sensitive" in the API will not
  3974  // be included in the string output. The member name will be present, but the
  3975  // value will be replaced with "sensitive".
  3976  func (s DeleteSchemaVersionOutput) String() string {
  3977  	return awsutil.Prettify(s)
  3978  }
  3979  
  3980  // GoString returns the string representation.
  3981  //
  3982  // API parameter values that are decorated as "sensitive" in the API will not
  3983  // be included in the string output. The member name will be present, but the
  3984  // value will be replaced with "sensitive".
  3985  func (s DeleteSchemaVersionOutput) GoString() string {
  3986  	return s.String()
  3987  }
  3988  
  3989  type DescribeCodeBindingInput struct {
  3990  	_ struct{} `type:"structure" nopayload:"true"`
  3991  
  3992  	// Language is a required field
  3993  	Language *string `location:"uri" locationName:"language" type:"string" required:"true"`
  3994  
  3995  	// RegistryName is a required field
  3996  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  3997  
  3998  	// SchemaName is a required field
  3999  	SchemaName *string `location:"uri" locationName:"schemaName" type:"string" required:"true"`
  4000  
  4001  	SchemaVersion *string `location:"querystring" locationName:"schemaVersion" type:"string"`
  4002  }
  4003  
  4004  // String returns the string representation.
  4005  //
  4006  // API parameter values that are decorated as "sensitive" in the API will not
  4007  // be included in the string output. The member name will be present, but the
  4008  // value will be replaced with "sensitive".
  4009  func (s DescribeCodeBindingInput) String() string {
  4010  	return awsutil.Prettify(s)
  4011  }
  4012  
  4013  // GoString returns the string representation.
  4014  //
  4015  // API parameter values that are decorated as "sensitive" in the API will not
  4016  // be included in the string output. The member name will be present, but the
  4017  // value will be replaced with "sensitive".
  4018  func (s DescribeCodeBindingInput) GoString() string {
  4019  	return s.String()
  4020  }
  4021  
  4022  // Validate inspects the fields of the type to determine if they are valid.
  4023  func (s *DescribeCodeBindingInput) Validate() error {
  4024  	invalidParams := request.ErrInvalidParams{Context: "DescribeCodeBindingInput"}
  4025  	if s.Language == nil {
  4026  		invalidParams.Add(request.NewErrParamRequired("Language"))
  4027  	}
  4028  	if s.Language != nil && len(*s.Language) < 1 {
  4029  		invalidParams.Add(request.NewErrParamMinLen("Language", 1))
  4030  	}
  4031  	if s.RegistryName == nil {
  4032  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  4033  	}
  4034  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  4035  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  4036  	}
  4037  	if s.SchemaName == nil {
  4038  		invalidParams.Add(request.NewErrParamRequired("SchemaName"))
  4039  	}
  4040  	if s.SchemaName != nil && len(*s.SchemaName) < 1 {
  4041  		invalidParams.Add(request.NewErrParamMinLen("SchemaName", 1))
  4042  	}
  4043  
  4044  	if invalidParams.Len() > 0 {
  4045  		return invalidParams
  4046  	}
  4047  	return nil
  4048  }
  4049  
  4050  // SetLanguage sets the Language field's value.
  4051  func (s *DescribeCodeBindingInput) SetLanguage(v string) *DescribeCodeBindingInput {
  4052  	s.Language = &v
  4053  	return s
  4054  }
  4055  
  4056  // SetRegistryName sets the RegistryName field's value.
  4057  func (s *DescribeCodeBindingInput) SetRegistryName(v string) *DescribeCodeBindingInput {
  4058  	s.RegistryName = &v
  4059  	return s
  4060  }
  4061  
  4062  // SetSchemaName sets the SchemaName field's value.
  4063  func (s *DescribeCodeBindingInput) SetSchemaName(v string) *DescribeCodeBindingInput {
  4064  	s.SchemaName = &v
  4065  	return s
  4066  }
  4067  
  4068  // SetSchemaVersion sets the SchemaVersion field's value.
  4069  func (s *DescribeCodeBindingInput) SetSchemaVersion(v string) *DescribeCodeBindingInput {
  4070  	s.SchemaVersion = &v
  4071  	return s
  4072  }
  4073  
  4074  type DescribeCodeBindingOutput struct {
  4075  	_ struct{} `type:"structure"`
  4076  
  4077  	CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  4078  
  4079  	LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  4080  
  4081  	SchemaVersion *string `type:"string"`
  4082  
  4083  	Status *string `type:"string" enum:"CodeGenerationStatus"`
  4084  }
  4085  
  4086  // String returns the string representation.
  4087  //
  4088  // API parameter values that are decorated as "sensitive" in the API will not
  4089  // be included in the string output. The member name will be present, but the
  4090  // value will be replaced with "sensitive".
  4091  func (s DescribeCodeBindingOutput) String() string {
  4092  	return awsutil.Prettify(s)
  4093  }
  4094  
  4095  // GoString returns the string representation.
  4096  //
  4097  // API parameter values that are decorated as "sensitive" in the API will not
  4098  // be included in the string output. The member name will be present, but the
  4099  // value will be replaced with "sensitive".
  4100  func (s DescribeCodeBindingOutput) GoString() string {
  4101  	return s.String()
  4102  }
  4103  
  4104  // SetCreationDate sets the CreationDate field's value.
  4105  func (s *DescribeCodeBindingOutput) SetCreationDate(v time.Time) *DescribeCodeBindingOutput {
  4106  	s.CreationDate = &v
  4107  	return s
  4108  }
  4109  
  4110  // SetLastModified sets the LastModified field's value.
  4111  func (s *DescribeCodeBindingOutput) SetLastModified(v time.Time) *DescribeCodeBindingOutput {
  4112  	s.LastModified = &v
  4113  	return s
  4114  }
  4115  
  4116  // SetSchemaVersion sets the SchemaVersion field's value.
  4117  func (s *DescribeCodeBindingOutput) SetSchemaVersion(v string) *DescribeCodeBindingOutput {
  4118  	s.SchemaVersion = &v
  4119  	return s
  4120  }
  4121  
  4122  // SetStatus sets the Status field's value.
  4123  func (s *DescribeCodeBindingOutput) SetStatus(v string) *DescribeCodeBindingOutput {
  4124  	s.Status = &v
  4125  	return s
  4126  }
  4127  
  4128  type DescribeDiscovererInput struct {
  4129  	_ struct{} `type:"structure" nopayload:"true"`
  4130  
  4131  	// DiscovererId is a required field
  4132  	DiscovererId *string `location:"uri" locationName:"discovererId" type:"string" required:"true"`
  4133  }
  4134  
  4135  // String returns the string representation.
  4136  //
  4137  // API parameter values that are decorated as "sensitive" in the API will not
  4138  // be included in the string output. The member name will be present, but the
  4139  // value will be replaced with "sensitive".
  4140  func (s DescribeDiscovererInput) String() string {
  4141  	return awsutil.Prettify(s)
  4142  }
  4143  
  4144  // GoString returns the string representation.
  4145  //
  4146  // API parameter values that are decorated as "sensitive" in the API will not
  4147  // be included in the string output. The member name will be present, but the
  4148  // value will be replaced with "sensitive".
  4149  func (s DescribeDiscovererInput) GoString() string {
  4150  	return s.String()
  4151  }
  4152  
  4153  // Validate inspects the fields of the type to determine if they are valid.
  4154  func (s *DescribeDiscovererInput) Validate() error {
  4155  	invalidParams := request.ErrInvalidParams{Context: "DescribeDiscovererInput"}
  4156  	if s.DiscovererId == nil {
  4157  		invalidParams.Add(request.NewErrParamRequired("DiscovererId"))
  4158  	}
  4159  	if s.DiscovererId != nil && len(*s.DiscovererId) < 1 {
  4160  		invalidParams.Add(request.NewErrParamMinLen("DiscovererId", 1))
  4161  	}
  4162  
  4163  	if invalidParams.Len() > 0 {
  4164  		return invalidParams
  4165  	}
  4166  	return nil
  4167  }
  4168  
  4169  // SetDiscovererId sets the DiscovererId field's value.
  4170  func (s *DescribeDiscovererInput) SetDiscovererId(v string) *DescribeDiscovererInput {
  4171  	s.DiscovererId = &v
  4172  	return s
  4173  }
  4174  
  4175  type DescribeDiscovererOutput struct {
  4176  	_ struct{} `type:"structure"`
  4177  
  4178  	CrossAccount *bool `type:"boolean"`
  4179  
  4180  	Description *string `type:"string"`
  4181  
  4182  	DiscovererArn *string `type:"string"`
  4183  
  4184  	DiscovererId *string `type:"string"`
  4185  
  4186  	SourceArn *string `type:"string"`
  4187  
  4188  	State *string `type:"string" enum:"DiscovererState"`
  4189  
  4190  	// Key-value pairs associated with a resource.
  4191  	Tags map[string]*string `locationName:"tags" type:"map"`
  4192  }
  4193  
  4194  // String returns the string representation.
  4195  //
  4196  // API parameter values that are decorated as "sensitive" in the API will not
  4197  // be included in the string output. The member name will be present, but the
  4198  // value will be replaced with "sensitive".
  4199  func (s DescribeDiscovererOutput) String() string {
  4200  	return awsutil.Prettify(s)
  4201  }
  4202  
  4203  // GoString returns the string representation.
  4204  //
  4205  // API parameter values that are decorated as "sensitive" in the API will not
  4206  // be included in the string output. The member name will be present, but the
  4207  // value will be replaced with "sensitive".
  4208  func (s DescribeDiscovererOutput) GoString() string {
  4209  	return s.String()
  4210  }
  4211  
  4212  // SetCrossAccount sets the CrossAccount field's value.
  4213  func (s *DescribeDiscovererOutput) SetCrossAccount(v bool) *DescribeDiscovererOutput {
  4214  	s.CrossAccount = &v
  4215  	return s
  4216  }
  4217  
  4218  // SetDescription sets the Description field's value.
  4219  func (s *DescribeDiscovererOutput) SetDescription(v string) *DescribeDiscovererOutput {
  4220  	s.Description = &v
  4221  	return s
  4222  }
  4223  
  4224  // SetDiscovererArn sets the DiscovererArn field's value.
  4225  func (s *DescribeDiscovererOutput) SetDiscovererArn(v string) *DescribeDiscovererOutput {
  4226  	s.DiscovererArn = &v
  4227  	return s
  4228  }
  4229  
  4230  // SetDiscovererId sets the DiscovererId field's value.
  4231  func (s *DescribeDiscovererOutput) SetDiscovererId(v string) *DescribeDiscovererOutput {
  4232  	s.DiscovererId = &v
  4233  	return s
  4234  }
  4235  
  4236  // SetSourceArn sets the SourceArn field's value.
  4237  func (s *DescribeDiscovererOutput) SetSourceArn(v string) *DescribeDiscovererOutput {
  4238  	s.SourceArn = &v
  4239  	return s
  4240  }
  4241  
  4242  // SetState sets the State field's value.
  4243  func (s *DescribeDiscovererOutput) SetState(v string) *DescribeDiscovererOutput {
  4244  	s.State = &v
  4245  	return s
  4246  }
  4247  
  4248  // SetTags sets the Tags field's value.
  4249  func (s *DescribeDiscovererOutput) SetTags(v map[string]*string) *DescribeDiscovererOutput {
  4250  	s.Tags = v
  4251  	return s
  4252  }
  4253  
  4254  type DescribeRegistryInput struct {
  4255  	_ struct{} `type:"structure" nopayload:"true"`
  4256  
  4257  	// RegistryName is a required field
  4258  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  4259  }
  4260  
  4261  // String returns the string representation.
  4262  //
  4263  // API parameter values that are decorated as "sensitive" in the API will not
  4264  // be included in the string output. The member name will be present, but the
  4265  // value will be replaced with "sensitive".
  4266  func (s DescribeRegistryInput) String() string {
  4267  	return awsutil.Prettify(s)
  4268  }
  4269  
  4270  // GoString returns the string representation.
  4271  //
  4272  // API parameter values that are decorated as "sensitive" in the API will not
  4273  // be included in the string output. The member name will be present, but the
  4274  // value will be replaced with "sensitive".
  4275  func (s DescribeRegistryInput) GoString() string {
  4276  	return s.String()
  4277  }
  4278  
  4279  // Validate inspects the fields of the type to determine if they are valid.
  4280  func (s *DescribeRegistryInput) Validate() error {
  4281  	invalidParams := request.ErrInvalidParams{Context: "DescribeRegistryInput"}
  4282  	if s.RegistryName == nil {
  4283  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  4284  	}
  4285  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  4286  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  4287  	}
  4288  
  4289  	if invalidParams.Len() > 0 {
  4290  		return invalidParams
  4291  	}
  4292  	return nil
  4293  }
  4294  
  4295  // SetRegistryName sets the RegistryName field's value.
  4296  func (s *DescribeRegistryInput) SetRegistryName(v string) *DescribeRegistryInput {
  4297  	s.RegistryName = &v
  4298  	return s
  4299  }
  4300  
  4301  type DescribeRegistryOutput struct {
  4302  	_ struct{} `type:"structure"`
  4303  
  4304  	Description *string `type:"string"`
  4305  
  4306  	RegistryArn *string `type:"string"`
  4307  
  4308  	RegistryName *string `type:"string"`
  4309  
  4310  	// Key-value pairs associated with a resource.
  4311  	Tags map[string]*string `locationName:"tags" type:"map"`
  4312  }
  4313  
  4314  // String returns the string representation.
  4315  //
  4316  // API parameter values that are decorated as "sensitive" in the API will not
  4317  // be included in the string output. The member name will be present, but the
  4318  // value will be replaced with "sensitive".
  4319  func (s DescribeRegistryOutput) String() string {
  4320  	return awsutil.Prettify(s)
  4321  }
  4322  
  4323  // GoString returns the string representation.
  4324  //
  4325  // API parameter values that are decorated as "sensitive" in the API will not
  4326  // be included in the string output. The member name will be present, but the
  4327  // value will be replaced with "sensitive".
  4328  func (s DescribeRegistryOutput) GoString() string {
  4329  	return s.String()
  4330  }
  4331  
  4332  // SetDescription sets the Description field's value.
  4333  func (s *DescribeRegistryOutput) SetDescription(v string) *DescribeRegistryOutput {
  4334  	s.Description = &v
  4335  	return s
  4336  }
  4337  
  4338  // SetRegistryArn sets the RegistryArn field's value.
  4339  func (s *DescribeRegistryOutput) SetRegistryArn(v string) *DescribeRegistryOutput {
  4340  	s.RegistryArn = &v
  4341  	return s
  4342  }
  4343  
  4344  // SetRegistryName sets the RegistryName field's value.
  4345  func (s *DescribeRegistryOutput) SetRegistryName(v string) *DescribeRegistryOutput {
  4346  	s.RegistryName = &v
  4347  	return s
  4348  }
  4349  
  4350  // SetTags sets the Tags field's value.
  4351  func (s *DescribeRegistryOutput) SetTags(v map[string]*string) *DescribeRegistryOutput {
  4352  	s.Tags = v
  4353  	return s
  4354  }
  4355  
  4356  type DescribeSchemaInput struct {
  4357  	_ struct{} `type:"structure" nopayload:"true"`
  4358  
  4359  	// RegistryName is a required field
  4360  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  4361  
  4362  	// SchemaName is a required field
  4363  	SchemaName *string `location:"uri" locationName:"schemaName" type:"string" required:"true"`
  4364  
  4365  	SchemaVersion *string `location:"querystring" locationName:"schemaVersion" type:"string"`
  4366  }
  4367  
  4368  // String returns the string representation.
  4369  //
  4370  // API parameter values that are decorated as "sensitive" in the API will not
  4371  // be included in the string output. The member name will be present, but the
  4372  // value will be replaced with "sensitive".
  4373  func (s DescribeSchemaInput) String() string {
  4374  	return awsutil.Prettify(s)
  4375  }
  4376  
  4377  // GoString returns the string representation.
  4378  //
  4379  // API parameter values that are decorated as "sensitive" in the API will not
  4380  // be included in the string output. The member name will be present, but the
  4381  // value will be replaced with "sensitive".
  4382  func (s DescribeSchemaInput) GoString() string {
  4383  	return s.String()
  4384  }
  4385  
  4386  // Validate inspects the fields of the type to determine if they are valid.
  4387  func (s *DescribeSchemaInput) Validate() error {
  4388  	invalidParams := request.ErrInvalidParams{Context: "DescribeSchemaInput"}
  4389  	if s.RegistryName == nil {
  4390  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  4391  	}
  4392  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  4393  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  4394  	}
  4395  	if s.SchemaName == nil {
  4396  		invalidParams.Add(request.NewErrParamRequired("SchemaName"))
  4397  	}
  4398  	if s.SchemaName != nil && len(*s.SchemaName) < 1 {
  4399  		invalidParams.Add(request.NewErrParamMinLen("SchemaName", 1))
  4400  	}
  4401  
  4402  	if invalidParams.Len() > 0 {
  4403  		return invalidParams
  4404  	}
  4405  	return nil
  4406  }
  4407  
  4408  // SetRegistryName sets the RegistryName field's value.
  4409  func (s *DescribeSchemaInput) SetRegistryName(v string) *DescribeSchemaInput {
  4410  	s.RegistryName = &v
  4411  	return s
  4412  }
  4413  
  4414  // SetSchemaName sets the SchemaName field's value.
  4415  func (s *DescribeSchemaInput) SetSchemaName(v string) *DescribeSchemaInput {
  4416  	s.SchemaName = &v
  4417  	return s
  4418  }
  4419  
  4420  // SetSchemaVersion sets the SchemaVersion field's value.
  4421  func (s *DescribeSchemaInput) SetSchemaVersion(v string) *DescribeSchemaInput {
  4422  	s.SchemaVersion = &v
  4423  	return s
  4424  }
  4425  
  4426  type DescribeSchemaOutput struct {
  4427  	_ struct{} `type:"structure"`
  4428  
  4429  	Content *string `type:"string"`
  4430  
  4431  	Description *string `type:"string"`
  4432  
  4433  	LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  4434  
  4435  	SchemaArn *string `type:"string"`
  4436  
  4437  	SchemaName *string `type:"string"`
  4438  
  4439  	SchemaVersion *string `type:"string"`
  4440  
  4441  	// Key-value pairs associated with a resource.
  4442  	Tags map[string]*string `locationName:"tags" type:"map"`
  4443  
  4444  	Type *string `type:"string"`
  4445  
  4446  	VersionCreatedDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  4447  }
  4448  
  4449  // String returns the string representation.
  4450  //
  4451  // API parameter values that are decorated as "sensitive" in the API will not
  4452  // be included in the string output. The member name will be present, but the
  4453  // value will be replaced with "sensitive".
  4454  func (s DescribeSchemaOutput) String() string {
  4455  	return awsutil.Prettify(s)
  4456  }
  4457  
  4458  // GoString returns the string representation.
  4459  //
  4460  // API parameter values that are decorated as "sensitive" in the API will not
  4461  // be included in the string output. The member name will be present, but the
  4462  // value will be replaced with "sensitive".
  4463  func (s DescribeSchemaOutput) GoString() string {
  4464  	return s.String()
  4465  }
  4466  
  4467  // SetContent sets the Content field's value.
  4468  func (s *DescribeSchemaOutput) SetContent(v string) *DescribeSchemaOutput {
  4469  	s.Content = &v
  4470  	return s
  4471  }
  4472  
  4473  // SetDescription sets the Description field's value.
  4474  func (s *DescribeSchemaOutput) SetDescription(v string) *DescribeSchemaOutput {
  4475  	s.Description = &v
  4476  	return s
  4477  }
  4478  
  4479  // SetLastModified sets the LastModified field's value.
  4480  func (s *DescribeSchemaOutput) SetLastModified(v time.Time) *DescribeSchemaOutput {
  4481  	s.LastModified = &v
  4482  	return s
  4483  }
  4484  
  4485  // SetSchemaArn sets the SchemaArn field's value.
  4486  func (s *DescribeSchemaOutput) SetSchemaArn(v string) *DescribeSchemaOutput {
  4487  	s.SchemaArn = &v
  4488  	return s
  4489  }
  4490  
  4491  // SetSchemaName sets the SchemaName field's value.
  4492  func (s *DescribeSchemaOutput) SetSchemaName(v string) *DescribeSchemaOutput {
  4493  	s.SchemaName = &v
  4494  	return s
  4495  }
  4496  
  4497  // SetSchemaVersion sets the SchemaVersion field's value.
  4498  func (s *DescribeSchemaOutput) SetSchemaVersion(v string) *DescribeSchemaOutput {
  4499  	s.SchemaVersion = &v
  4500  	return s
  4501  }
  4502  
  4503  // SetTags sets the Tags field's value.
  4504  func (s *DescribeSchemaOutput) SetTags(v map[string]*string) *DescribeSchemaOutput {
  4505  	s.Tags = v
  4506  	return s
  4507  }
  4508  
  4509  // SetType sets the Type field's value.
  4510  func (s *DescribeSchemaOutput) SetType(v string) *DescribeSchemaOutput {
  4511  	s.Type = &v
  4512  	return s
  4513  }
  4514  
  4515  // SetVersionCreatedDate sets the VersionCreatedDate field's value.
  4516  func (s *DescribeSchemaOutput) SetVersionCreatedDate(v time.Time) *DescribeSchemaOutput {
  4517  	s.VersionCreatedDate = &v
  4518  	return s
  4519  }
  4520  
  4521  type DiscovererSummary struct {
  4522  	_ struct{} `type:"structure"`
  4523  
  4524  	// The Status if the discoverer will discover schemas from events sent from
  4525  	// another account.
  4526  	CrossAccount *bool `type:"boolean"`
  4527  
  4528  	// The ARN of the discoverer.
  4529  	DiscovererArn *string `type:"string"`
  4530  
  4531  	// The ID of the discoverer.
  4532  	DiscovererId *string `type:"string"`
  4533  
  4534  	// The ARN of the event bus.
  4535  	SourceArn *string `type:"string"`
  4536  
  4537  	// The state of the discoverer.
  4538  	State *string `type:"string" enum:"DiscovererState"`
  4539  
  4540  	// Tags associated with the resource.
  4541  	Tags map[string]*string `locationName:"tags" type:"map"`
  4542  }
  4543  
  4544  // String returns the string representation.
  4545  //
  4546  // API parameter values that are decorated as "sensitive" in the API will not
  4547  // be included in the string output. The member name will be present, but the
  4548  // value will be replaced with "sensitive".
  4549  func (s DiscovererSummary) String() string {
  4550  	return awsutil.Prettify(s)
  4551  }
  4552  
  4553  // GoString returns the string representation.
  4554  //
  4555  // API parameter values that are decorated as "sensitive" in the API will not
  4556  // be included in the string output. The member name will be present, but the
  4557  // value will be replaced with "sensitive".
  4558  func (s DiscovererSummary) GoString() string {
  4559  	return s.String()
  4560  }
  4561  
  4562  // SetCrossAccount sets the CrossAccount field's value.
  4563  func (s *DiscovererSummary) SetCrossAccount(v bool) *DiscovererSummary {
  4564  	s.CrossAccount = &v
  4565  	return s
  4566  }
  4567  
  4568  // SetDiscovererArn sets the DiscovererArn field's value.
  4569  func (s *DiscovererSummary) SetDiscovererArn(v string) *DiscovererSummary {
  4570  	s.DiscovererArn = &v
  4571  	return s
  4572  }
  4573  
  4574  // SetDiscovererId sets the DiscovererId field's value.
  4575  func (s *DiscovererSummary) SetDiscovererId(v string) *DiscovererSummary {
  4576  	s.DiscovererId = &v
  4577  	return s
  4578  }
  4579  
  4580  // SetSourceArn sets the SourceArn field's value.
  4581  func (s *DiscovererSummary) SetSourceArn(v string) *DiscovererSummary {
  4582  	s.SourceArn = &v
  4583  	return s
  4584  }
  4585  
  4586  // SetState sets the State field's value.
  4587  func (s *DiscovererSummary) SetState(v string) *DiscovererSummary {
  4588  	s.State = &v
  4589  	return s
  4590  }
  4591  
  4592  // SetTags sets the Tags field's value.
  4593  func (s *DiscovererSummary) SetTags(v map[string]*string) *DiscovererSummary {
  4594  	s.Tags = v
  4595  	return s
  4596  }
  4597  
  4598  type ExportSchemaInput struct {
  4599  	_ struct{} `type:"structure" nopayload:"true"`
  4600  
  4601  	// RegistryName is a required field
  4602  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  4603  
  4604  	// SchemaName is a required field
  4605  	SchemaName *string `location:"uri" locationName:"schemaName" type:"string" required:"true"`
  4606  
  4607  	SchemaVersion *string `location:"querystring" locationName:"schemaVersion" type:"string"`
  4608  
  4609  	// Type is a required field
  4610  	Type *string `location:"querystring" locationName:"type" type:"string" required:"true"`
  4611  }
  4612  
  4613  // String returns the string representation.
  4614  //
  4615  // API parameter values that are decorated as "sensitive" in the API will not
  4616  // be included in the string output. The member name will be present, but the
  4617  // value will be replaced with "sensitive".
  4618  func (s ExportSchemaInput) String() string {
  4619  	return awsutil.Prettify(s)
  4620  }
  4621  
  4622  // GoString returns the string representation.
  4623  //
  4624  // API parameter values that are decorated as "sensitive" in the API will not
  4625  // be included in the string output. The member name will be present, but the
  4626  // value will be replaced with "sensitive".
  4627  func (s ExportSchemaInput) GoString() string {
  4628  	return s.String()
  4629  }
  4630  
  4631  // Validate inspects the fields of the type to determine if they are valid.
  4632  func (s *ExportSchemaInput) Validate() error {
  4633  	invalidParams := request.ErrInvalidParams{Context: "ExportSchemaInput"}
  4634  	if s.RegistryName == nil {
  4635  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  4636  	}
  4637  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  4638  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  4639  	}
  4640  	if s.SchemaName == nil {
  4641  		invalidParams.Add(request.NewErrParamRequired("SchemaName"))
  4642  	}
  4643  	if s.SchemaName != nil && len(*s.SchemaName) < 1 {
  4644  		invalidParams.Add(request.NewErrParamMinLen("SchemaName", 1))
  4645  	}
  4646  	if s.Type == nil {
  4647  		invalidParams.Add(request.NewErrParamRequired("Type"))
  4648  	}
  4649  
  4650  	if invalidParams.Len() > 0 {
  4651  		return invalidParams
  4652  	}
  4653  	return nil
  4654  }
  4655  
  4656  // SetRegistryName sets the RegistryName field's value.
  4657  func (s *ExportSchemaInput) SetRegistryName(v string) *ExportSchemaInput {
  4658  	s.RegistryName = &v
  4659  	return s
  4660  }
  4661  
  4662  // SetSchemaName sets the SchemaName field's value.
  4663  func (s *ExportSchemaInput) SetSchemaName(v string) *ExportSchemaInput {
  4664  	s.SchemaName = &v
  4665  	return s
  4666  }
  4667  
  4668  // SetSchemaVersion sets the SchemaVersion field's value.
  4669  func (s *ExportSchemaInput) SetSchemaVersion(v string) *ExportSchemaInput {
  4670  	s.SchemaVersion = &v
  4671  	return s
  4672  }
  4673  
  4674  // SetType sets the Type field's value.
  4675  func (s *ExportSchemaInput) SetType(v string) *ExportSchemaInput {
  4676  	s.Type = &v
  4677  	return s
  4678  }
  4679  
  4680  type ExportSchemaOutput struct {
  4681  	_ struct{} `type:"structure"`
  4682  
  4683  	Content *string `type:"string"`
  4684  
  4685  	SchemaArn *string `type:"string"`
  4686  
  4687  	SchemaName *string `type:"string"`
  4688  
  4689  	SchemaVersion *string `type:"string"`
  4690  
  4691  	Type *string `type:"string"`
  4692  }
  4693  
  4694  // String returns the string representation.
  4695  //
  4696  // API parameter values that are decorated as "sensitive" in the API will not
  4697  // be included in the string output. The member name will be present, but the
  4698  // value will be replaced with "sensitive".
  4699  func (s ExportSchemaOutput) String() string {
  4700  	return awsutil.Prettify(s)
  4701  }
  4702  
  4703  // GoString returns the string representation.
  4704  //
  4705  // API parameter values that are decorated as "sensitive" in the API will not
  4706  // be included in the string output. The member name will be present, but the
  4707  // value will be replaced with "sensitive".
  4708  func (s ExportSchemaOutput) GoString() string {
  4709  	return s.String()
  4710  }
  4711  
  4712  // SetContent sets the Content field's value.
  4713  func (s *ExportSchemaOutput) SetContent(v string) *ExportSchemaOutput {
  4714  	s.Content = &v
  4715  	return s
  4716  }
  4717  
  4718  // SetSchemaArn sets the SchemaArn field's value.
  4719  func (s *ExportSchemaOutput) SetSchemaArn(v string) *ExportSchemaOutput {
  4720  	s.SchemaArn = &v
  4721  	return s
  4722  }
  4723  
  4724  // SetSchemaName sets the SchemaName field's value.
  4725  func (s *ExportSchemaOutput) SetSchemaName(v string) *ExportSchemaOutput {
  4726  	s.SchemaName = &v
  4727  	return s
  4728  }
  4729  
  4730  // SetSchemaVersion sets the SchemaVersion field's value.
  4731  func (s *ExportSchemaOutput) SetSchemaVersion(v string) *ExportSchemaOutput {
  4732  	s.SchemaVersion = &v
  4733  	return s
  4734  }
  4735  
  4736  // SetType sets the Type field's value.
  4737  func (s *ExportSchemaOutput) SetType(v string) *ExportSchemaOutput {
  4738  	s.Type = &v
  4739  	return s
  4740  }
  4741  
  4742  type ForbiddenException struct {
  4743  	_            struct{}                  `type:"structure"`
  4744  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  4745  
  4746  	Code_ *string `locationName:"Code" type:"string"`
  4747  
  4748  	Message_ *string `locationName:"Message" type:"string"`
  4749  }
  4750  
  4751  // String returns the string representation.
  4752  //
  4753  // API parameter values that are decorated as "sensitive" in the API will not
  4754  // be included in the string output. The member name will be present, but the
  4755  // value will be replaced with "sensitive".
  4756  func (s ForbiddenException) String() string {
  4757  	return awsutil.Prettify(s)
  4758  }
  4759  
  4760  // GoString returns the string representation.
  4761  //
  4762  // API parameter values that are decorated as "sensitive" in the API will not
  4763  // be included in the string output. The member name will be present, but the
  4764  // value will be replaced with "sensitive".
  4765  func (s ForbiddenException) GoString() string {
  4766  	return s.String()
  4767  }
  4768  
  4769  func newErrorForbiddenException(v protocol.ResponseMetadata) error {
  4770  	return &ForbiddenException{
  4771  		RespMetadata: v,
  4772  	}
  4773  }
  4774  
  4775  // Code returns the exception type name.
  4776  func (s *ForbiddenException) Code() string {
  4777  	return "ForbiddenException"
  4778  }
  4779  
  4780  // Message returns the exception's message.
  4781  func (s *ForbiddenException) Message() string {
  4782  	if s.Message_ != nil {
  4783  		return *s.Message_
  4784  	}
  4785  	return ""
  4786  }
  4787  
  4788  // OrigErr always returns nil, satisfies awserr.Error interface.
  4789  func (s *ForbiddenException) OrigErr() error {
  4790  	return nil
  4791  }
  4792  
  4793  func (s *ForbiddenException) Error() string {
  4794  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  4795  }
  4796  
  4797  // Status code returns the HTTP status code for the request's response error.
  4798  func (s *ForbiddenException) StatusCode() int {
  4799  	return s.RespMetadata.StatusCode
  4800  }
  4801  
  4802  // RequestID returns the service's response RequestID for request.
  4803  func (s *ForbiddenException) RequestID() string {
  4804  	return s.RespMetadata.RequestID
  4805  }
  4806  
  4807  type GetCodeBindingSourceInput struct {
  4808  	_ struct{} `type:"structure" nopayload:"true"`
  4809  
  4810  	// Language is a required field
  4811  	Language *string `location:"uri" locationName:"language" type:"string" required:"true"`
  4812  
  4813  	// RegistryName is a required field
  4814  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  4815  
  4816  	// SchemaName is a required field
  4817  	SchemaName *string `location:"uri" locationName:"schemaName" type:"string" required:"true"`
  4818  
  4819  	SchemaVersion *string `location:"querystring" locationName:"schemaVersion" type:"string"`
  4820  }
  4821  
  4822  // String returns the string representation.
  4823  //
  4824  // API parameter values that are decorated as "sensitive" in the API will not
  4825  // be included in the string output. The member name will be present, but the
  4826  // value will be replaced with "sensitive".
  4827  func (s GetCodeBindingSourceInput) String() string {
  4828  	return awsutil.Prettify(s)
  4829  }
  4830  
  4831  // GoString returns the string representation.
  4832  //
  4833  // API parameter values that are decorated as "sensitive" in the API will not
  4834  // be included in the string output. The member name will be present, but the
  4835  // value will be replaced with "sensitive".
  4836  func (s GetCodeBindingSourceInput) GoString() string {
  4837  	return s.String()
  4838  }
  4839  
  4840  // Validate inspects the fields of the type to determine if they are valid.
  4841  func (s *GetCodeBindingSourceInput) Validate() error {
  4842  	invalidParams := request.ErrInvalidParams{Context: "GetCodeBindingSourceInput"}
  4843  	if s.Language == nil {
  4844  		invalidParams.Add(request.NewErrParamRequired("Language"))
  4845  	}
  4846  	if s.Language != nil && len(*s.Language) < 1 {
  4847  		invalidParams.Add(request.NewErrParamMinLen("Language", 1))
  4848  	}
  4849  	if s.RegistryName == nil {
  4850  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  4851  	}
  4852  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  4853  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  4854  	}
  4855  	if s.SchemaName == nil {
  4856  		invalidParams.Add(request.NewErrParamRequired("SchemaName"))
  4857  	}
  4858  	if s.SchemaName != nil && len(*s.SchemaName) < 1 {
  4859  		invalidParams.Add(request.NewErrParamMinLen("SchemaName", 1))
  4860  	}
  4861  
  4862  	if invalidParams.Len() > 0 {
  4863  		return invalidParams
  4864  	}
  4865  	return nil
  4866  }
  4867  
  4868  // SetLanguage sets the Language field's value.
  4869  func (s *GetCodeBindingSourceInput) SetLanguage(v string) *GetCodeBindingSourceInput {
  4870  	s.Language = &v
  4871  	return s
  4872  }
  4873  
  4874  // SetRegistryName sets the RegistryName field's value.
  4875  func (s *GetCodeBindingSourceInput) SetRegistryName(v string) *GetCodeBindingSourceInput {
  4876  	s.RegistryName = &v
  4877  	return s
  4878  }
  4879  
  4880  // SetSchemaName sets the SchemaName field's value.
  4881  func (s *GetCodeBindingSourceInput) SetSchemaName(v string) *GetCodeBindingSourceInput {
  4882  	s.SchemaName = &v
  4883  	return s
  4884  }
  4885  
  4886  // SetSchemaVersion sets the SchemaVersion field's value.
  4887  func (s *GetCodeBindingSourceInput) SetSchemaVersion(v string) *GetCodeBindingSourceInput {
  4888  	s.SchemaVersion = &v
  4889  	return s
  4890  }
  4891  
  4892  type GetCodeBindingSourceOutput struct {
  4893  	_ struct{} `type:"structure" payload:"Body"`
  4894  
  4895  	Body []byte `type:"blob"`
  4896  }
  4897  
  4898  // String returns the string representation.
  4899  //
  4900  // API parameter values that are decorated as "sensitive" in the API will not
  4901  // be included in the string output. The member name will be present, but the
  4902  // value will be replaced with "sensitive".
  4903  func (s GetCodeBindingSourceOutput) String() string {
  4904  	return awsutil.Prettify(s)
  4905  }
  4906  
  4907  // GoString returns the string representation.
  4908  //
  4909  // API parameter values that are decorated as "sensitive" in the API will not
  4910  // be included in the string output. The member name will be present, but the
  4911  // value will be replaced with "sensitive".
  4912  func (s GetCodeBindingSourceOutput) GoString() string {
  4913  	return s.String()
  4914  }
  4915  
  4916  // SetBody sets the Body field's value.
  4917  func (s *GetCodeBindingSourceOutput) SetBody(v []byte) *GetCodeBindingSourceOutput {
  4918  	s.Body = v
  4919  	return s
  4920  }
  4921  
  4922  type GetDiscoveredSchemaInput struct {
  4923  	_ struct{} `type:"structure"`
  4924  
  4925  	// Events is a required field
  4926  	Events []*string `min:"1" type:"list" required:"true"`
  4927  
  4928  	// Type is a required field
  4929  	Type *string `type:"string" required:"true" enum:"Type"`
  4930  }
  4931  
  4932  // String returns the string representation.
  4933  //
  4934  // API parameter values that are decorated as "sensitive" in the API will not
  4935  // be included in the string output. The member name will be present, but the
  4936  // value will be replaced with "sensitive".
  4937  func (s GetDiscoveredSchemaInput) String() string {
  4938  	return awsutil.Prettify(s)
  4939  }
  4940  
  4941  // GoString returns the string representation.
  4942  //
  4943  // API parameter values that are decorated as "sensitive" in the API will not
  4944  // be included in the string output. The member name will be present, but the
  4945  // value will be replaced with "sensitive".
  4946  func (s GetDiscoveredSchemaInput) GoString() string {
  4947  	return s.String()
  4948  }
  4949  
  4950  // Validate inspects the fields of the type to determine if they are valid.
  4951  func (s *GetDiscoveredSchemaInput) Validate() error {
  4952  	invalidParams := request.ErrInvalidParams{Context: "GetDiscoveredSchemaInput"}
  4953  	if s.Events == nil {
  4954  		invalidParams.Add(request.NewErrParamRequired("Events"))
  4955  	}
  4956  	if s.Events != nil && len(s.Events) < 1 {
  4957  		invalidParams.Add(request.NewErrParamMinLen("Events", 1))
  4958  	}
  4959  	if s.Type == nil {
  4960  		invalidParams.Add(request.NewErrParamRequired("Type"))
  4961  	}
  4962  
  4963  	if invalidParams.Len() > 0 {
  4964  		return invalidParams
  4965  	}
  4966  	return nil
  4967  }
  4968  
  4969  // SetEvents sets the Events field's value.
  4970  func (s *GetDiscoveredSchemaInput) SetEvents(v []*string) *GetDiscoveredSchemaInput {
  4971  	s.Events = v
  4972  	return s
  4973  }
  4974  
  4975  // SetType sets the Type field's value.
  4976  func (s *GetDiscoveredSchemaInput) SetType(v string) *GetDiscoveredSchemaInput {
  4977  	s.Type = &v
  4978  	return s
  4979  }
  4980  
  4981  type GetDiscoveredSchemaOutput struct {
  4982  	_ struct{} `type:"structure"`
  4983  
  4984  	Content *string `type:"string"`
  4985  }
  4986  
  4987  // String returns the string representation.
  4988  //
  4989  // API parameter values that are decorated as "sensitive" in the API will not
  4990  // be included in the string output. The member name will be present, but the
  4991  // value will be replaced with "sensitive".
  4992  func (s GetDiscoveredSchemaOutput) String() string {
  4993  	return awsutil.Prettify(s)
  4994  }
  4995  
  4996  // GoString returns the string representation.
  4997  //
  4998  // API parameter values that are decorated as "sensitive" in the API will not
  4999  // be included in the string output. The member name will be present, but the
  5000  // value will be replaced with "sensitive".
  5001  func (s GetDiscoveredSchemaOutput) GoString() string {
  5002  	return s.String()
  5003  }
  5004  
  5005  // SetContent sets the Content field's value.
  5006  func (s *GetDiscoveredSchemaOutput) SetContent(v string) *GetDiscoveredSchemaOutput {
  5007  	s.Content = &v
  5008  	return s
  5009  }
  5010  
  5011  type GetResourcePolicyInput struct {
  5012  	_ struct{} `type:"structure" nopayload:"true"`
  5013  
  5014  	RegistryName *string `location:"querystring" locationName:"registryName" type:"string"`
  5015  }
  5016  
  5017  // String returns the string representation.
  5018  //
  5019  // API parameter values that are decorated as "sensitive" in the API will not
  5020  // be included in the string output. The member name will be present, but the
  5021  // value will be replaced with "sensitive".
  5022  func (s GetResourcePolicyInput) String() string {
  5023  	return awsutil.Prettify(s)
  5024  }
  5025  
  5026  // GoString returns the string representation.
  5027  //
  5028  // API parameter values that are decorated as "sensitive" in the API will not
  5029  // be included in the string output. The member name will be present, but the
  5030  // value will be replaced with "sensitive".
  5031  func (s GetResourcePolicyInput) GoString() string {
  5032  	return s.String()
  5033  }
  5034  
  5035  // SetRegistryName sets the RegistryName field's value.
  5036  func (s *GetResourcePolicyInput) SetRegistryName(v string) *GetResourcePolicyInput {
  5037  	s.RegistryName = &v
  5038  	return s
  5039  }
  5040  
  5041  type GetResourcePolicyOutput struct {
  5042  	_ struct{} `type:"structure"`
  5043  
  5044  	Policy aws.JSONValue `type:"jsonvalue"`
  5045  
  5046  	RevisionId *string `type:"string"`
  5047  }
  5048  
  5049  // String returns the string representation.
  5050  //
  5051  // API parameter values that are decorated as "sensitive" in the API will not
  5052  // be included in the string output. The member name will be present, but the
  5053  // value will be replaced with "sensitive".
  5054  func (s GetResourcePolicyOutput) String() string {
  5055  	return awsutil.Prettify(s)
  5056  }
  5057  
  5058  // GoString returns the string representation.
  5059  //
  5060  // API parameter values that are decorated as "sensitive" in the API will not
  5061  // be included in the string output. The member name will be present, but the
  5062  // value will be replaced with "sensitive".
  5063  func (s GetResourcePolicyOutput) GoString() string {
  5064  	return s.String()
  5065  }
  5066  
  5067  // SetPolicy sets the Policy field's value.
  5068  func (s *GetResourcePolicyOutput) SetPolicy(v aws.JSONValue) *GetResourcePolicyOutput {
  5069  	s.Policy = v
  5070  	return s
  5071  }
  5072  
  5073  // SetRevisionId sets the RevisionId field's value.
  5074  func (s *GetResourcePolicyOutput) SetRevisionId(v string) *GetResourcePolicyOutput {
  5075  	s.RevisionId = &v
  5076  	return s
  5077  }
  5078  
  5079  type GoneException struct {
  5080  	_            struct{}                  `type:"structure"`
  5081  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  5082  
  5083  	Code_ *string `locationName:"Code" type:"string"`
  5084  
  5085  	Message_ *string `locationName:"Message" type:"string"`
  5086  }
  5087  
  5088  // String returns the string representation.
  5089  //
  5090  // API parameter values that are decorated as "sensitive" in the API will not
  5091  // be included in the string output. The member name will be present, but the
  5092  // value will be replaced with "sensitive".
  5093  func (s GoneException) String() string {
  5094  	return awsutil.Prettify(s)
  5095  }
  5096  
  5097  // GoString returns the string representation.
  5098  //
  5099  // API parameter values that are decorated as "sensitive" in the API will not
  5100  // be included in the string output. The member name will be present, but the
  5101  // value will be replaced with "sensitive".
  5102  func (s GoneException) GoString() string {
  5103  	return s.String()
  5104  }
  5105  
  5106  func newErrorGoneException(v protocol.ResponseMetadata) error {
  5107  	return &GoneException{
  5108  		RespMetadata: v,
  5109  	}
  5110  }
  5111  
  5112  // Code returns the exception type name.
  5113  func (s *GoneException) Code() string {
  5114  	return "GoneException"
  5115  }
  5116  
  5117  // Message returns the exception's message.
  5118  func (s *GoneException) Message() string {
  5119  	if s.Message_ != nil {
  5120  		return *s.Message_
  5121  	}
  5122  	return ""
  5123  }
  5124  
  5125  // OrigErr always returns nil, satisfies awserr.Error interface.
  5126  func (s *GoneException) OrigErr() error {
  5127  	return nil
  5128  }
  5129  
  5130  func (s *GoneException) Error() string {
  5131  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  5132  }
  5133  
  5134  // Status code returns the HTTP status code for the request's response error.
  5135  func (s *GoneException) StatusCode() int {
  5136  	return s.RespMetadata.StatusCode
  5137  }
  5138  
  5139  // RequestID returns the service's response RequestID for request.
  5140  func (s *GoneException) RequestID() string {
  5141  	return s.RespMetadata.RequestID
  5142  }
  5143  
  5144  type InternalServerErrorException struct {
  5145  	_            struct{}                  `type:"structure"`
  5146  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  5147  
  5148  	Code_ *string `locationName:"Code" type:"string"`
  5149  
  5150  	Message_ *string `locationName:"Message" type:"string"`
  5151  }
  5152  
  5153  // String returns the string representation.
  5154  //
  5155  // API parameter values that are decorated as "sensitive" in the API will not
  5156  // be included in the string output. The member name will be present, but the
  5157  // value will be replaced with "sensitive".
  5158  func (s InternalServerErrorException) String() string {
  5159  	return awsutil.Prettify(s)
  5160  }
  5161  
  5162  // GoString returns the string representation.
  5163  //
  5164  // API parameter values that are decorated as "sensitive" in the API will not
  5165  // be included in the string output. The member name will be present, but the
  5166  // value will be replaced with "sensitive".
  5167  func (s InternalServerErrorException) GoString() string {
  5168  	return s.String()
  5169  }
  5170  
  5171  func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
  5172  	return &InternalServerErrorException{
  5173  		RespMetadata: v,
  5174  	}
  5175  }
  5176  
  5177  // Code returns the exception type name.
  5178  func (s *InternalServerErrorException) Code() string {
  5179  	return "InternalServerErrorException"
  5180  }
  5181  
  5182  // Message returns the exception's message.
  5183  func (s *InternalServerErrorException) Message() string {
  5184  	if s.Message_ != nil {
  5185  		return *s.Message_
  5186  	}
  5187  	return ""
  5188  }
  5189  
  5190  // OrigErr always returns nil, satisfies awserr.Error interface.
  5191  func (s *InternalServerErrorException) OrigErr() error {
  5192  	return nil
  5193  }
  5194  
  5195  func (s *InternalServerErrorException) Error() string {
  5196  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  5197  }
  5198  
  5199  // Status code returns the HTTP status code for the request's response error.
  5200  func (s *InternalServerErrorException) StatusCode() int {
  5201  	return s.RespMetadata.StatusCode
  5202  }
  5203  
  5204  // RequestID returns the service's response RequestID for request.
  5205  func (s *InternalServerErrorException) RequestID() string {
  5206  	return s.RespMetadata.RequestID
  5207  }
  5208  
  5209  type ListDiscoverersInput struct {
  5210  	_ struct{} `type:"structure" nopayload:"true"`
  5211  
  5212  	DiscovererIdPrefix *string `location:"querystring" locationName:"discovererIdPrefix" type:"string"`
  5213  
  5214  	Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
  5215  
  5216  	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  5217  
  5218  	SourceArnPrefix *string `location:"querystring" locationName:"sourceArnPrefix" type:"string"`
  5219  }
  5220  
  5221  // String returns the string representation.
  5222  //
  5223  // API parameter values that are decorated as "sensitive" in the API will not
  5224  // be included in the string output. The member name will be present, but the
  5225  // value will be replaced with "sensitive".
  5226  func (s ListDiscoverersInput) String() string {
  5227  	return awsutil.Prettify(s)
  5228  }
  5229  
  5230  // GoString returns the string representation.
  5231  //
  5232  // API parameter values that are decorated as "sensitive" in the API will not
  5233  // be included in the string output. The member name will be present, but the
  5234  // value will be replaced with "sensitive".
  5235  func (s ListDiscoverersInput) GoString() string {
  5236  	return s.String()
  5237  }
  5238  
  5239  // SetDiscovererIdPrefix sets the DiscovererIdPrefix field's value.
  5240  func (s *ListDiscoverersInput) SetDiscovererIdPrefix(v string) *ListDiscoverersInput {
  5241  	s.DiscovererIdPrefix = &v
  5242  	return s
  5243  }
  5244  
  5245  // SetLimit sets the Limit field's value.
  5246  func (s *ListDiscoverersInput) SetLimit(v int64) *ListDiscoverersInput {
  5247  	s.Limit = &v
  5248  	return s
  5249  }
  5250  
  5251  // SetNextToken sets the NextToken field's value.
  5252  func (s *ListDiscoverersInput) SetNextToken(v string) *ListDiscoverersInput {
  5253  	s.NextToken = &v
  5254  	return s
  5255  }
  5256  
  5257  // SetSourceArnPrefix sets the SourceArnPrefix field's value.
  5258  func (s *ListDiscoverersInput) SetSourceArnPrefix(v string) *ListDiscoverersInput {
  5259  	s.SourceArnPrefix = &v
  5260  	return s
  5261  }
  5262  
  5263  type ListDiscoverersOutput struct {
  5264  	_ struct{} `type:"structure"`
  5265  
  5266  	Discoverers []*DiscovererSummary `type:"list"`
  5267  
  5268  	NextToken *string `type:"string"`
  5269  }
  5270  
  5271  // String returns the string representation.
  5272  //
  5273  // API parameter values that are decorated as "sensitive" in the API will not
  5274  // be included in the string output. The member name will be present, but the
  5275  // value will be replaced with "sensitive".
  5276  func (s ListDiscoverersOutput) String() string {
  5277  	return awsutil.Prettify(s)
  5278  }
  5279  
  5280  // GoString returns the string representation.
  5281  //
  5282  // API parameter values that are decorated as "sensitive" in the API will not
  5283  // be included in the string output. The member name will be present, but the
  5284  // value will be replaced with "sensitive".
  5285  func (s ListDiscoverersOutput) GoString() string {
  5286  	return s.String()
  5287  }
  5288  
  5289  // SetDiscoverers sets the Discoverers field's value.
  5290  func (s *ListDiscoverersOutput) SetDiscoverers(v []*DiscovererSummary) *ListDiscoverersOutput {
  5291  	s.Discoverers = v
  5292  	return s
  5293  }
  5294  
  5295  // SetNextToken sets the NextToken field's value.
  5296  func (s *ListDiscoverersOutput) SetNextToken(v string) *ListDiscoverersOutput {
  5297  	s.NextToken = &v
  5298  	return s
  5299  }
  5300  
  5301  type ListRegistriesInput struct {
  5302  	_ struct{} `type:"structure" nopayload:"true"`
  5303  
  5304  	Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
  5305  
  5306  	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  5307  
  5308  	RegistryNamePrefix *string `location:"querystring" locationName:"registryNamePrefix" type:"string"`
  5309  
  5310  	Scope *string `location:"querystring" locationName:"scope" type:"string"`
  5311  }
  5312  
  5313  // String returns the string representation.
  5314  //
  5315  // API parameter values that are decorated as "sensitive" in the API will not
  5316  // be included in the string output. The member name will be present, but the
  5317  // value will be replaced with "sensitive".
  5318  func (s ListRegistriesInput) String() string {
  5319  	return awsutil.Prettify(s)
  5320  }
  5321  
  5322  // GoString returns the string representation.
  5323  //
  5324  // API parameter values that are decorated as "sensitive" in the API will not
  5325  // be included in the string output. The member name will be present, but the
  5326  // value will be replaced with "sensitive".
  5327  func (s ListRegistriesInput) GoString() string {
  5328  	return s.String()
  5329  }
  5330  
  5331  // SetLimit sets the Limit field's value.
  5332  func (s *ListRegistriesInput) SetLimit(v int64) *ListRegistriesInput {
  5333  	s.Limit = &v
  5334  	return s
  5335  }
  5336  
  5337  // SetNextToken sets the NextToken field's value.
  5338  func (s *ListRegistriesInput) SetNextToken(v string) *ListRegistriesInput {
  5339  	s.NextToken = &v
  5340  	return s
  5341  }
  5342  
  5343  // SetRegistryNamePrefix sets the RegistryNamePrefix field's value.
  5344  func (s *ListRegistriesInput) SetRegistryNamePrefix(v string) *ListRegistriesInput {
  5345  	s.RegistryNamePrefix = &v
  5346  	return s
  5347  }
  5348  
  5349  // SetScope sets the Scope field's value.
  5350  func (s *ListRegistriesInput) SetScope(v string) *ListRegistriesInput {
  5351  	s.Scope = &v
  5352  	return s
  5353  }
  5354  
  5355  type ListRegistriesOutput struct {
  5356  	_ struct{} `type:"structure"`
  5357  
  5358  	NextToken *string `type:"string"`
  5359  
  5360  	Registries []*RegistrySummary `type:"list"`
  5361  }
  5362  
  5363  // String returns the string representation.
  5364  //
  5365  // API parameter values that are decorated as "sensitive" in the API will not
  5366  // be included in the string output. The member name will be present, but the
  5367  // value will be replaced with "sensitive".
  5368  func (s ListRegistriesOutput) String() string {
  5369  	return awsutil.Prettify(s)
  5370  }
  5371  
  5372  // GoString returns the string representation.
  5373  //
  5374  // API parameter values that are decorated as "sensitive" in the API will not
  5375  // be included in the string output. The member name will be present, but the
  5376  // value will be replaced with "sensitive".
  5377  func (s ListRegistriesOutput) GoString() string {
  5378  	return s.String()
  5379  }
  5380  
  5381  // SetNextToken sets the NextToken field's value.
  5382  func (s *ListRegistriesOutput) SetNextToken(v string) *ListRegistriesOutput {
  5383  	s.NextToken = &v
  5384  	return s
  5385  }
  5386  
  5387  // SetRegistries sets the Registries field's value.
  5388  func (s *ListRegistriesOutput) SetRegistries(v []*RegistrySummary) *ListRegistriesOutput {
  5389  	s.Registries = v
  5390  	return s
  5391  }
  5392  
  5393  type ListSchemaVersionsInput struct {
  5394  	_ struct{} `type:"structure" nopayload:"true"`
  5395  
  5396  	Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
  5397  
  5398  	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  5399  
  5400  	// RegistryName is a required field
  5401  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  5402  
  5403  	// SchemaName is a required field
  5404  	SchemaName *string `location:"uri" locationName:"schemaName" type:"string" required:"true"`
  5405  }
  5406  
  5407  // String returns the string representation.
  5408  //
  5409  // API parameter values that are decorated as "sensitive" in the API will not
  5410  // be included in the string output. The member name will be present, but the
  5411  // value will be replaced with "sensitive".
  5412  func (s ListSchemaVersionsInput) String() string {
  5413  	return awsutil.Prettify(s)
  5414  }
  5415  
  5416  // GoString returns the string representation.
  5417  //
  5418  // API parameter values that are decorated as "sensitive" in the API will not
  5419  // be included in the string output. The member name will be present, but the
  5420  // value will be replaced with "sensitive".
  5421  func (s ListSchemaVersionsInput) GoString() string {
  5422  	return s.String()
  5423  }
  5424  
  5425  // Validate inspects the fields of the type to determine if they are valid.
  5426  func (s *ListSchemaVersionsInput) Validate() error {
  5427  	invalidParams := request.ErrInvalidParams{Context: "ListSchemaVersionsInput"}
  5428  	if s.RegistryName == nil {
  5429  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  5430  	}
  5431  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  5432  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  5433  	}
  5434  	if s.SchemaName == nil {
  5435  		invalidParams.Add(request.NewErrParamRequired("SchemaName"))
  5436  	}
  5437  	if s.SchemaName != nil && len(*s.SchemaName) < 1 {
  5438  		invalidParams.Add(request.NewErrParamMinLen("SchemaName", 1))
  5439  	}
  5440  
  5441  	if invalidParams.Len() > 0 {
  5442  		return invalidParams
  5443  	}
  5444  	return nil
  5445  }
  5446  
  5447  // SetLimit sets the Limit field's value.
  5448  func (s *ListSchemaVersionsInput) SetLimit(v int64) *ListSchemaVersionsInput {
  5449  	s.Limit = &v
  5450  	return s
  5451  }
  5452  
  5453  // SetNextToken sets the NextToken field's value.
  5454  func (s *ListSchemaVersionsInput) SetNextToken(v string) *ListSchemaVersionsInput {
  5455  	s.NextToken = &v
  5456  	return s
  5457  }
  5458  
  5459  // SetRegistryName sets the RegistryName field's value.
  5460  func (s *ListSchemaVersionsInput) SetRegistryName(v string) *ListSchemaVersionsInput {
  5461  	s.RegistryName = &v
  5462  	return s
  5463  }
  5464  
  5465  // SetSchemaName sets the SchemaName field's value.
  5466  func (s *ListSchemaVersionsInput) SetSchemaName(v string) *ListSchemaVersionsInput {
  5467  	s.SchemaName = &v
  5468  	return s
  5469  }
  5470  
  5471  type ListSchemaVersionsOutput struct {
  5472  	_ struct{} `type:"structure"`
  5473  
  5474  	NextToken *string `type:"string"`
  5475  
  5476  	SchemaVersions []*SchemaVersionSummary `type:"list"`
  5477  }
  5478  
  5479  // String returns the string representation.
  5480  //
  5481  // API parameter values that are decorated as "sensitive" in the API will not
  5482  // be included in the string output. The member name will be present, but the
  5483  // value will be replaced with "sensitive".
  5484  func (s ListSchemaVersionsOutput) String() string {
  5485  	return awsutil.Prettify(s)
  5486  }
  5487  
  5488  // GoString returns the string representation.
  5489  //
  5490  // API parameter values that are decorated as "sensitive" in the API will not
  5491  // be included in the string output. The member name will be present, but the
  5492  // value will be replaced with "sensitive".
  5493  func (s ListSchemaVersionsOutput) GoString() string {
  5494  	return s.String()
  5495  }
  5496  
  5497  // SetNextToken sets the NextToken field's value.
  5498  func (s *ListSchemaVersionsOutput) SetNextToken(v string) *ListSchemaVersionsOutput {
  5499  	s.NextToken = &v
  5500  	return s
  5501  }
  5502  
  5503  // SetSchemaVersions sets the SchemaVersions field's value.
  5504  func (s *ListSchemaVersionsOutput) SetSchemaVersions(v []*SchemaVersionSummary) *ListSchemaVersionsOutput {
  5505  	s.SchemaVersions = v
  5506  	return s
  5507  }
  5508  
  5509  type ListSchemasInput struct {
  5510  	_ struct{} `type:"structure" nopayload:"true"`
  5511  
  5512  	Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
  5513  
  5514  	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  5515  
  5516  	// RegistryName is a required field
  5517  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  5518  
  5519  	SchemaNamePrefix *string `location:"querystring" locationName:"schemaNamePrefix" type:"string"`
  5520  }
  5521  
  5522  // String returns the string representation.
  5523  //
  5524  // API parameter values that are decorated as "sensitive" in the API will not
  5525  // be included in the string output. The member name will be present, but the
  5526  // value will be replaced with "sensitive".
  5527  func (s ListSchemasInput) String() string {
  5528  	return awsutil.Prettify(s)
  5529  }
  5530  
  5531  // GoString returns the string representation.
  5532  //
  5533  // API parameter values that are decorated as "sensitive" in the API will not
  5534  // be included in the string output. The member name will be present, but the
  5535  // value will be replaced with "sensitive".
  5536  func (s ListSchemasInput) GoString() string {
  5537  	return s.String()
  5538  }
  5539  
  5540  // Validate inspects the fields of the type to determine if they are valid.
  5541  func (s *ListSchemasInput) Validate() error {
  5542  	invalidParams := request.ErrInvalidParams{Context: "ListSchemasInput"}
  5543  	if s.RegistryName == nil {
  5544  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  5545  	}
  5546  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  5547  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  5548  	}
  5549  
  5550  	if invalidParams.Len() > 0 {
  5551  		return invalidParams
  5552  	}
  5553  	return nil
  5554  }
  5555  
  5556  // SetLimit sets the Limit field's value.
  5557  func (s *ListSchemasInput) SetLimit(v int64) *ListSchemasInput {
  5558  	s.Limit = &v
  5559  	return s
  5560  }
  5561  
  5562  // SetNextToken sets the NextToken field's value.
  5563  func (s *ListSchemasInput) SetNextToken(v string) *ListSchemasInput {
  5564  	s.NextToken = &v
  5565  	return s
  5566  }
  5567  
  5568  // SetRegistryName sets the RegistryName field's value.
  5569  func (s *ListSchemasInput) SetRegistryName(v string) *ListSchemasInput {
  5570  	s.RegistryName = &v
  5571  	return s
  5572  }
  5573  
  5574  // SetSchemaNamePrefix sets the SchemaNamePrefix field's value.
  5575  func (s *ListSchemasInput) SetSchemaNamePrefix(v string) *ListSchemasInput {
  5576  	s.SchemaNamePrefix = &v
  5577  	return s
  5578  }
  5579  
  5580  type ListSchemasOutput struct {
  5581  	_ struct{} `type:"structure"`
  5582  
  5583  	NextToken *string `type:"string"`
  5584  
  5585  	Schemas []*SchemaSummary `type:"list"`
  5586  }
  5587  
  5588  // String returns the string representation.
  5589  //
  5590  // API parameter values that are decorated as "sensitive" in the API will not
  5591  // be included in the string output. The member name will be present, but the
  5592  // value will be replaced with "sensitive".
  5593  func (s ListSchemasOutput) String() string {
  5594  	return awsutil.Prettify(s)
  5595  }
  5596  
  5597  // GoString returns the string representation.
  5598  //
  5599  // API parameter values that are decorated as "sensitive" in the API will not
  5600  // be included in the string output. The member name will be present, but the
  5601  // value will be replaced with "sensitive".
  5602  func (s ListSchemasOutput) GoString() string {
  5603  	return s.String()
  5604  }
  5605  
  5606  // SetNextToken sets the NextToken field's value.
  5607  func (s *ListSchemasOutput) SetNextToken(v string) *ListSchemasOutput {
  5608  	s.NextToken = &v
  5609  	return s
  5610  }
  5611  
  5612  // SetSchemas sets the Schemas field's value.
  5613  func (s *ListSchemasOutput) SetSchemas(v []*SchemaSummary) *ListSchemasOutput {
  5614  	s.Schemas = v
  5615  	return s
  5616  }
  5617  
  5618  type ListTagsForResourceInput struct {
  5619  	_ struct{} `type:"structure" nopayload:"true"`
  5620  
  5621  	// ResourceArn is a required field
  5622  	ResourceArn *string `location:"uri" locationName:"resource-arn" type:"string" required:"true"`
  5623  }
  5624  
  5625  // String returns the string representation.
  5626  //
  5627  // API parameter values that are decorated as "sensitive" in the API will not
  5628  // be included in the string output. The member name will be present, but the
  5629  // value will be replaced with "sensitive".
  5630  func (s ListTagsForResourceInput) String() string {
  5631  	return awsutil.Prettify(s)
  5632  }
  5633  
  5634  // GoString returns the string representation.
  5635  //
  5636  // API parameter values that are decorated as "sensitive" in the API will not
  5637  // be included in the string output. The member name will be present, but the
  5638  // value will be replaced with "sensitive".
  5639  func (s ListTagsForResourceInput) GoString() string {
  5640  	return s.String()
  5641  }
  5642  
  5643  // Validate inspects the fields of the type to determine if they are valid.
  5644  func (s *ListTagsForResourceInput) Validate() error {
  5645  	invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  5646  	if s.ResourceArn == nil {
  5647  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  5648  	}
  5649  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  5650  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  5651  	}
  5652  
  5653  	if invalidParams.Len() > 0 {
  5654  		return invalidParams
  5655  	}
  5656  	return nil
  5657  }
  5658  
  5659  // SetResourceArn sets the ResourceArn field's value.
  5660  func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
  5661  	s.ResourceArn = &v
  5662  	return s
  5663  }
  5664  
  5665  type ListTagsForResourceOutput struct {
  5666  	_ struct{} `type:"structure"`
  5667  
  5668  	// Key-value pairs associated with a resource.
  5669  	Tags map[string]*string `locationName:"tags" type:"map"`
  5670  }
  5671  
  5672  // String returns the string representation.
  5673  //
  5674  // API parameter values that are decorated as "sensitive" in the API will not
  5675  // be included in the string output. The member name will be present, but the
  5676  // value will be replaced with "sensitive".
  5677  func (s ListTagsForResourceOutput) String() string {
  5678  	return awsutil.Prettify(s)
  5679  }
  5680  
  5681  // GoString returns the string representation.
  5682  //
  5683  // API parameter values that are decorated as "sensitive" in the API will not
  5684  // be included in the string output. The member name will be present, but the
  5685  // value will be replaced with "sensitive".
  5686  func (s ListTagsForResourceOutput) GoString() string {
  5687  	return s.String()
  5688  }
  5689  
  5690  // SetTags sets the Tags field's value.
  5691  func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
  5692  	s.Tags = v
  5693  	return s
  5694  }
  5695  
  5696  type NotFoundException struct {
  5697  	_            struct{}                  `type:"structure"`
  5698  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  5699  
  5700  	Code_ *string `locationName:"Code" type:"string"`
  5701  
  5702  	Message_ *string `locationName:"Message" type:"string"`
  5703  }
  5704  
  5705  // String returns the string representation.
  5706  //
  5707  // API parameter values that are decorated as "sensitive" in the API will not
  5708  // be included in the string output. The member name will be present, but the
  5709  // value will be replaced with "sensitive".
  5710  func (s NotFoundException) String() string {
  5711  	return awsutil.Prettify(s)
  5712  }
  5713  
  5714  // GoString returns the string representation.
  5715  //
  5716  // API parameter values that are decorated as "sensitive" in the API will not
  5717  // be included in the string output. The member name will be present, but the
  5718  // value will be replaced with "sensitive".
  5719  func (s NotFoundException) GoString() string {
  5720  	return s.String()
  5721  }
  5722  
  5723  func newErrorNotFoundException(v protocol.ResponseMetadata) error {
  5724  	return &NotFoundException{
  5725  		RespMetadata: v,
  5726  	}
  5727  }
  5728  
  5729  // Code returns the exception type name.
  5730  func (s *NotFoundException) Code() string {
  5731  	return "NotFoundException"
  5732  }
  5733  
  5734  // Message returns the exception's message.
  5735  func (s *NotFoundException) Message() string {
  5736  	if s.Message_ != nil {
  5737  		return *s.Message_
  5738  	}
  5739  	return ""
  5740  }
  5741  
  5742  // OrigErr always returns nil, satisfies awserr.Error interface.
  5743  func (s *NotFoundException) OrigErr() error {
  5744  	return nil
  5745  }
  5746  
  5747  func (s *NotFoundException) Error() string {
  5748  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  5749  }
  5750  
  5751  // Status code returns the HTTP status code for the request's response error.
  5752  func (s *NotFoundException) StatusCode() int {
  5753  	return s.RespMetadata.StatusCode
  5754  }
  5755  
  5756  // RequestID returns the service's response RequestID for request.
  5757  func (s *NotFoundException) RequestID() string {
  5758  	return s.RespMetadata.RequestID
  5759  }
  5760  
  5761  type PreconditionFailedException struct {
  5762  	_            struct{}                  `type:"structure"`
  5763  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  5764  
  5765  	Code_ *string `locationName:"Code" type:"string"`
  5766  
  5767  	Message_ *string `locationName:"Message" type:"string"`
  5768  }
  5769  
  5770  // String returns the string representation.
  5771  //
  5772  // API parameter values that are decorated as "sensitive" in the API will not
  5773  // be included in the string output. The member name will be present, but the
  5774  // value will be replaced with "sensitive".
  5775  func (s PreconditionFailedException) String() string {
  5776  	return awsutil.Prettify(s)
  5777  }
  5778  
  5779  // GoString returns the string representation.
  5780  //
  5781  // API parameter values that are decorated as "sensitive" in the API will not
  5782  // be included in the string output. The member name will be present, but the
  5783  // value will be replaced with "sensitive".
  5784  func (s PreconditionFailedException) GoString() string {
  5785  	return s.String()
  5786  }
  5787  
  5788  func newErrorPreconditionFailedException(v protocol.ResponseMetadata) error {
  5789  	return &PreconditionFailedException{
  5790  		RespMetadata: v,
  5791  	}
  5792  }
  5793  
  5794  // Code returns the exception type name.
  5795  func (s *PreconditionFailedException) Code() string {
  5796  	return "PreconditionFailedException"
  5797  }
  5798  
  5799  // Message returns the exception's message.
  5800  func (s *PreconditionFailedException) Message() string {
  5801  	if s.Message_ != nil {
  5802  		return *s.Message_
  5803  	}
  5804  	return ""
  5805  }
  5806  
  5807  // OrigErr always returns nil, satisfies awserr.Error interface.
  5808  func (s *PreconditionFailedException) OrigErr() error {
  5809  	return nil
  5810  }
  5811  
  5812  func (s *PreconditionFailedException) Error() string {
  5813  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  5814  }
  5815  
  5816  // Status code returns the HTTP status code for the request's response error.
  5817  func (s *PreconditionFailedException) StatusCode() int {
  5818  	return s.RespMetadata.StatusCode
  5819  }
  5820  
  5821  // RequestID returns the service's response RequestID for request.
  5822  func (s *PreconditionFailedException) RequestID() string {
  5823  	return s.RespMetadata.RequestID
  5824  }
  5825  
  5826  type PutCodeBindingInput struct {
  5827  	_ struct{} `type:"structure" nopayload:"true"`
  5828  
  5829  	// Language is a required field
  5830  	Language *string `location:"uri" locationName:"language" type:"string" required:"true"`
  5831  
  5832  	// RegistryName is a required field
  5833  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  5834  
  5835  	// SchemaName is a required field
  5836  	SchemaName *string `location:"uri" locationName:"schemaName" type:"string" required:"true"`
  5837  
  5838  	SchemaVersion *string `location:"querystring" locationName:"schemaVersion" type:"string"`
  5839  }
  5840  
  5841  // String returns the string representation.
  5842  //
  5843  // API parameter values that are decorated as "sensitive" in the API will not
  5844  // be included in the string output. The member name will be present, but the
  5845  // value will be replaced with "sensitive".
  5846  func (s PutCodeBindingInput) String() string {
  5847  	return awsutil.Prettify(s)
  5848  }
  5849  
  5850  // GoString returns the string representation.
  5851  //
  5852  // API parameter values that are decorated as "sensitive" in the API will not
  5853  // be included in the string output. The member name will be present, but the
  5854  // value will be replaced with "sensitive".
  5855  func (s PutCodeBindingInput) GoString() string {
  5856  	return s.String()
  5857  }
  5858  
  5859  // Validate inspects the fields of the type to determine if they are valid.
  5860  func (s *PutCodeBindingInput) Validate() error {
  5861  	invalidParams := request.ErrInvalidParams{Context: "PutCodeBindingInput"}
  5862  	if s.Language == nil {
  5863  		invalidParams.Add(request.NewErrParamRequired("Language"))
  5864  	}
  5865  	if s.Language != nil && len(*s.Language) < 1 {
  5866  		invalidParams.Add(request.NewErrParamMinLen("Language", 1))
  5867  	}
  5868  	if s.RegistryName == nil {
  5869  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  5870  	}
  5871  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  5872  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  5873  	}
  5874  	if s.SchemaName == nil {
  5875  		invalidParams.Add(request.NewErrParamRequired("SchemaName"))
  5876  	}
  5877  	if s.SchemaName != nil && len(*s.SchemaName) < 1 {
  5878  		invalidParams.Add(request.NewErrParamMinLen("SchemaName", 1))
  5879  	}
  5880  
  5881  	if invalidParams.Len() > 0 {
  5882  		return invalidParams
  5883  	}
  5884  	return nil
  5885  }
  5886  
  5887  // SetLanguage sets the Language field's value.
  5888  func (s *PutCodeBindingInput) SetLanguage(v string) *PutCodeBindingInput {
  5889  	s.Language = &v
  5890  	return s
  5891  }
  5892  
  5893  // SetRegistryName sets the RegistryName field's value.
  5894  func (s *PutCodeBindingInput) SetRegistryName(v string) *PutCodeBindingInput {
  5895  	s.RegistryName = &v
  5896  	return s
  5897  }
  5898  
  5899  // SetSchemaName sets the SchemaName field's value.
  5900  func (s *PutCodeBindingInput) SetSchemaName(v string) *PutCodeBindingInput {
  5901  	s.SchemaName = &v
  5902  	return s
  5903  }
  5904  
  5905  // SetSchemaVersion sets the SchemaVersion field's value.
  5906  func (s *PutCodeBindingInput) SetSchemaVersion(v string) *PutCodeBindingInput {
  5907  	s.SchemaVersion = &v
  5908  	return s
  5909  }
  5910  
  5911  type PutCodeBindingOutput struct {
  5912  	_ struct{} `type:"structure"`
  5913  
  5914  	CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  5915  
  5916  	LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  5917  
  5918  	SchemaVersion *string `type:"string"`
  5919  
  5920  	Status *string `type:"string" enum:"CodeGenerationStatus"`
  5921  }
  5922  
  5923  // String returns the string representation.
  5924  //
  5925  // API parameter values that are decorated as "sensitive" in the API will not
  5926  // be included in the string output. The member name will be present, but the
  5927  // value will be replaced with "sensitive".
  5928  func (s PutCodeBindingOutput) String() string {
  5929  	return awsutil.Prettify(s)
  5930  }
  5931  
  5932  // GoString returns the string representation.
  5933  //
  5934  // API parameter values that are decorated as "sensitive" in the API will not
  5935  // be included in the string output. The member name will be present, but the
  5936  // value will be replaced with "sensitive".
  5937  func (s PutCodeBindingOutput) GoString() string {
  5938  	return s.String()
  5939  }
  5940  
  5941  // SetCreationDate sets the CreationDate field's value.
  5942  func (s *PutCodeBindingOutput) SetCreationDate(v time.Time) *PutCodeBindingOutput {
  5943  	s.CreationDate = &v
  5944  	return s
  5945  }
  5946  
  5947  // SetLastModified sets the LastModified field's value.
  5948  func (s *PutCodeBindingOutput) SetLastModified(v time.Time) *PutCodeBindingOutput {
  5949  	s.LastModified = &v
  5950  	return s
  5951  }
  5952  
  5953  // SetSchemaVersion sets the SchemaVersion field's value.
  5954  func (s *PutCodeBindingOutput) SetSchemaVersion(v string) *PutCodeBindingOutput {
  5955  	s.SchemaVersion = &v
  5956  	return s
  5957  }
  5958  
  5959  // SetStatus sets the Status field's value.
  5960  func (s *PutCodeBindingOutput) SetStatus(v string) *PutCodeBindingOutput {
  5961  	s.Status = &v
  5962  	return s
  5963  }
  5964  
  5965  type PutResourcePolicyInput struct {
  5966  	_ struct{} `type:"structure"`
  5967  
  5968  	// Policy is a required field
  5969  	Policy aws.JSONValue `type:"jsonvalue" required:"true"`
  5970  
  5971  	RegistryName *string `location:"querystring" locationName:"registryName" type:"string"`
  5972  
  5973  	RevisionId *string `type:"string"`
  5974  }
  5975  
  5976  // String returns the string representation.
  5977  //
  5978  // API parameter values that are decorated as "sensitive" in the API will not
  5979  // be included in the string output. The member name will be present, but the
  5980  // value will be replaced with "sensitive".
  5981  func (s PutResourcePolicyInput) String() string {
  5982  	return awsutil.Prettify(s)
  5983  }
  5984  
  5985  // GoString returns the string representation.
  5986  //
  5987  // API parameter values that are decorated as "sensitive" in the API will not
  5988  // be included in the string output. The member name will be present, but the
  5989  // value will be replaced with "sensitive".
  5990  func (s PutResourcePolicyInput) GoString() string {
  5991  	return s.String()
  5992  }
  5993  
  5994  // Validate inspects the fields of the type to determine if they are valid.
  5995  func (s *PutResourcePolicyInput) Validate() error {
  5996  	invalidParams := request.ErrInvalidParams{Context: "PutResourcePolicyInput"}
  5997  	if s.Policy == nil {
  5998  		invalidParams.Add(request.NewErrParamRequired("Policy"))
  5999  	}
  6000  
  6001  	if invalidParams.Len() > 0 {
  6002  		return invalidParams
  6003  	}
  6004  	return nil
  6005  }
  6006  
  6007  // SetPolicy sets the Policy field's value.
  6008  func (s *PutResourcePolicyInput) SetPolicy(v aws.JSONValue) *PutResourcePolicyInput {
  6009  	s.Policy = v
  6010  	return s
  6011  }
  6012  
  6013  // SetRegistryName sets the RegistryName field's value.
  6014  func (s *PutResourcePolicyInput) SetRegistryName(v string) *PutResourcePolicyInput {
  6015  	s.RegistryName = &v
  6016  	return s
  6017  }
  6018  
  6019  // SetRevisionId sets the RevisionId field's value.
  6020  func (s *PutResourcePolicyInput) SetRevisionId(v string) *PutResourcePolicyInput {
  6021  	s.RevisionId = &v
  6022  	return s
  6023  }
  6024  
  6025  type PutResourcePolicyOutput struct {
  6026  	_ struct{} `type:"structure"`
  6027  
  6028  	Policy aws.JSONValue `type:"jsonvalue"`
  6029  
  6030  	RevisionId *string `type:"string"`
  6031  }
  6032  
  6033  // String returns the string representation.
  6034  //
  6035  // API parameter values that are decorated as "sensitive" in the API will not
  6036  // be included in the string output. The member name will be present, but the
  6037  // value will be replaced with "sensitive".
  6038  func (s PutResourcePolicyOutput) String() string {
  6039  	return awsutil.Prettify(s)
  6040  }
  6041  
  6042  // GoString returns the string representation.
  6043  //
  6044  // API parameter values that are decorated as "sensitive" in the API will not
  6045  // be included in the string output. The member name will be present, but the
  6046  // value will be replaced with "sensitive".
  6047  func (s PutResourcePolicyOutput) GoString() string {
  6048  	return s.String()
  6049  }
  6050  
  6051  // SetPolicy sets the Policy field's value.
  6052  func (s *PutResourcePolicyOutput) SetPolicy(v aws.JSONValue) *PutResourcePolicyOutput {
  6053  	s.Policy = v
  6054  	return s
  6055  }
  6056  
  6057  // SetRevisionId sets the RevisionId field's value.
  6058  func (s *PutResourcePolicyOutput) SetRevisionId(v string) *PutResourcePolicyOutput {
  6059  	s.RevisionId = &v
  6060  	return s
  6061  }
  6062  
  6063  type RegistrySummary struct {
  6064  	_ struct{} `type:"structure"`
  6065  
  6066  	// The ARN of the registry.
  6067  	RegistryArn *string `type:"string"`
  6068  
  6069  	// The name of the registry.
  6070  	RegistryName *string `type:"string"`
  6071  
  6072  	// Tags associated with the registry.
  6073  	Tags map[string]*string `locationName:"tags" type:"map"`
  6074  }
  6075  
  6076  // String returns the string representation.
  6077  //
  6078  // API parameter values that are decorated as "sensitive" in the API will not
  6079  // be included in the string output. The member name will be present, but the
  6080  // value will be replaced with "sensitive".
  6081  func (s RegistrySummary) String() string {
  6082  	return awsutil.Prettify(s)
  6083  }
  6084  
  6085  // GoString returns the string representation.
  6086  //
  6087  // API parameter values that are decorated as "sensitive" in the API will not
  6088  // be included in the string output. The member name will be present, but the
  6089  // value will be replaced with "sensitive".
  6090  func (s RegistrySummary) GoString() string {
  6091  	return s.String()
  6092  }
  6093  
  6094  // SetRegistryArn sets the RegistryArn field's value.
  6095  func (s *RegistrySummary) SetRegistryArn(v string) *RegistrySummary {
  6096  	s.RegistryArn = &v
  6097  	return s
  6098  }
  6099  
  6100  // SetRegistryName sets the RegistryName field's value.
  6101  func (s *RegistrySummary) SetRegistryName(v string) *RegistrySummary {
  6102  	s.RegistryName = &v
  6103  	return s
  6104  }
  6105  
  6106  // SetTags sets the Tags field's value.
  6107  func (s *RegistrySummary) SetTags(v map[string]*string) *RegistrySummary {
  6108  	s.Tags = v
  6109  	return s
  6110  }
  6111  
  6112  // A summary of schema details.
  6113  type SchemaSummary struct {
  6114  	_ struct{} `type:"structure"`
  6115  
  6116  	// The date and time that schema was modified.
  6117  	LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  6118  
  6119  	// The ARN of the schema.
  6120  	SchemaArn *string `type:"string"`
  6121  
  6122  	// The name of the schema.
  6123  	SchemaName *string `type:"string"`
  6124  
  6125  	// Tags associated with the schema.
  6126  	Tags map[string]*string `locationName:"tags" type:"map"`
  6127  
  6128  	// The number of versions available for the schema.
  6129  	VersionCount *int64 `type:"long"`
  6130  }
  6131  
  6132  // String returns the string representation.
  6133  //
  6134  // API parameter values that are decorated as "sensitive" in the API will not
  6135  // be included in the string output. The member name will be present, but the
  6136  // value will be replaced with "sensitive".
  6137  func (s SchemaSummary) String() string {
  6138  	return awsutil.Prettify(s)
  6139  }
  6140  
  6141  // GoString returns the string representation.
  6142  //
  6143  // API parameter values that are decorated as "sensitive" in the API will not
  6144  // be included in the string output. The member name will be present, but the
  6145  // value will be replaced with "sensitive".
  6146  func (s SchemaSummary) GoString() string {
  6147  	return s.String()
  6148  }
  6149  
  6150  // SetLastModified sets the LastModified field's value.
  6151  func (s *SchemaSummary) SetLastModified(v time.Time) *SchemaSummary {
  6152  	s.LastModified = &v
  6153  	return s
  6154  }
  6155  
  6156  // SetSchemaArn sets the SchemaArn field's value.
  6157  func (s *SchemaSummary) SetSchemaArn(v string) *SchemaSummary {
  6158  	s.SchemaArn = &v
  6159  	return s
  6160  }
  6161  
  6162  // SetSchemaName sets the SchemaName field's value.
  6163  func (s *SchemaSummary) SetSchemaName(v string) *SchemaSummary {
  6164  	s.SchemaName = &v
  6165  	return s
  6166  }
  6167  
  6168  // SetTags sets the Tags field's value.
  6169  func (s *SchemaSummary) SetTags(v map[string]*string) *SchemaSummary {
  6170  	s.Tags = v
  6171  	return s
  6172  }
  6173  
  6174  // SetVersionCount sets the VersionCount field's value.
  6175  func (s *SchemaSummary) SetVersionCount(v int64) *SchemaSummary {
  6176  	s.VersionCount = &v
  6177  	return s
  6178  }
  6179  
  6180  type SchemaVersionSummary struct {
  6181  	_ struct{} `type:"structure"`
  6182  
  6183  	// The ARN of the schema version.
  6184  	SchemaArn *string `type:"string"`
  6185  
  6186  	// The name of the schema.
  6187  	SchemaName *string `type:"string"`
  6188  
  6189  	// The version number of the schema.
  6190  	SchemaVersion *string `type:"string"`
  6191  
  6192  	Type *string `type:"string"`
  6193  }
  6194  
  6195  // String returns the string representation.
  6196  //
  6197  // API parameter values that are decorated as "sensitive" in the API will not
  6198  // be included in the string output. The member name will be present, but the
  6199  // value will be replaced with "sensitive".
  6200  func (s SchemaVersionSummary) String() string {
  6201  	return awsutil.Prettify(s)
  6202  }
  6203  
  6204  // GoString returns the string representation.
  6205  //
  6206  // API parameter values that are decorated as "sensitive" in the API will not
  6207  // be included in the string output. The member name will be present, but the
  6208  // value will be replaced with "sensitive".
  6209  func (s SchemaVersionSummary) GoString() string {
  6210  	return s.String()
  6211  }
  6212  
  6213  // SetSchemaArn sets the SchemaArn field's value.
  6214  func (s *SchemaVersionSummary) SetSchemaArn(v string) *SchemaVersionSummary {
  6215  	s.SchemaArn = &v
  6216  	return s
  6217  }
  6218  
  6219  // SetSchemaName sets the SchemaName field's value.
  6220  func (s *SchemaVersionSummary) SetSchemaName(v string) *SchemaVersionSummary {
  6221  	s.SchemaName = &v
  6222  	return s
  6223  }
  6224  
  6225  // SetSchemaVersion sets the SchemaVersion field's value.
  6226  func (s *SchemaVersionSummary) SetSchemaVersion(v string) *SchemaVersionSummary {
  6227  	s.SchemaVersion = &v
  6228  	return s
  6229  }
  6230  
  6231  // SetType sets the Type field's value.
  6232  func (s *SchemaVersionSummary) SetType(v string) *SchemaVersionSummary {
  6233  	s.Type = &v
  6234  	return s
  6235  }
  6236  
  6237  type SearchSchemaSummary struct {
  6238  	_ struct{} `type:"structure"`
  6239  
  6240  	// The name of the registry.
  6241  	RegistryName *string `type:"string"`
  6242  
  6243  	// The ARN of the schema.
  6244  	SchemaArn *string `type:"string"`
  6245  
  6246  	// The name of the schema.
  6247  	SchemaName *string `type:"string"`
  6248  
  6249  	// An array of schema version summaries.
  6250  	SchemaVersions []*SearchSchemaVersionSummary `type:"list"`
  6251  }
  6252  
  6253  // String returns the string representation.
  6254  //
  6255  // API parameter values that are decorated as "sensitive" in the API will not
  6256  // be included in the string output. The member name will be present, but the
  6257  // value will be replaced with "sensitive".
  6258  func (s SearchSchemaSummary) String() string {
  6259  	return awsutil.Prettify(s)
  6260  }
  6261  
  6262  // GoString returns the string representation.
  6263  //
  6264  // API parameter values that are decorated as "sensitive" in the API will not
  6265  // be included in the string output. The member name will be present, but the
  6266  // value will be replaced with "sensitive".
  6267  func (s SearchSchemaSummary) GoString() string {
  6268  	return s.String()
  6269  }
  6270  
  6271  // SetRegistryName sets the RegistryName field's value.
  6272  func (s *SearchSchemaSummary) SetRegistryName(v string) *SearchSchemaSummary {
  6273  	s.RegistryName = &v
  6274  	return s
  6275  }
  6276  
  6277  // SetSchemaArn sets the SchemaArn field's value.
  6278  func (s *SearchSchemaSummary) SetSchemaArn(v string) *SearchSchemaSummary {
  6279  	s.SchemaArn = &v
  6280  	return s
  6281  }
  6282  
  6283  // SetSchemaName sets the SchemaName field's value.
  6284  func (s *SearchSchemaSummary) SetSchemaName(v string) *SearchSchemaSummary {
  6285  	s.SchemaName = &v
  6286  	return s
  6287  }
  6288  
  6289  // SetSchemaVersions sets the SchemaVersions field's value.
  6290  func (s *SearchSchemaSummary) SetSchemaVersions(v []*SearchSchemaVersionSummary) *SearchSchemaSummary {
  6291  	s.SchemaVersions = v
  6292  	return s
  6293  }
  6294  
  6295  type SearchSchemaVersionSummary struct {
  6296  	_ struct{} `type:"structure"`
  6297  
  6298  	// The date the schema version was created.
  6299  	CreatedDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  6300  
  6301  	// The version number of the schema
  6302  	SchemaVersion *string `type:"string"`
  6303  
  6304  	Type *string `type:"string"`
  6305  }
  6306  
  6307  // String returns the string representation.
  6308  //
  6309  // API parameter values that are decorated as "sensitive" in the API will not
  6310  // be included in the string output. The member name will be present, but the
  6311  // value will be replaced with "sensitive".
  6312  func (s SearchSchemaVersionSummary) String() string {
  6313  	return awsutil.Prettify(s)
  6314  }
  6315  
  6316  // GoString returns the string representation.
  6317  //
  6318  // API parameter values that are decorated as "sensitive" in the API will not
  6319  // be included in the string output. The member name will be present, but the
  6320  // value will be replaced with "sensitive".
  6321  func (s SearchSchemaVersionSummary) GoString() string {
  6322  	return s.String()
  6323  }
  6324  
  6325  // SetCreatedDate sets the CreatedDate field's value.
  6326  func (s *SearchSchemaVersionSummary) SetCreatedDate(v time.Time) *SearchSchemaVersionSummary {
  6327  	s.CreatedDate = &v
  6328  	return s
  6329  }
  6330  
  6331  // SetSchemaVersion sets the SchemaVersion field's value.
  6332  func (s *SearchSchemaVersionSummary) SetSchemaVersion(v string) *SearchSchemaVersionSummary {
  6333  	s.SchemaVersion = &v
  6334  	return s
  6335  }
  6336  
  6337  // SetType sets the Type field's value.
  6338  func (s *SearchSchemaVersionSummary) SetType(v string) *SearchSchemaVersionSummary {
  6339  	s.Type = &v
  6340  	return s
  6341  }
  6342  
  6343  type SearchSchemasInput struct {
  6344  	_ struct{} `type:"structure" nopayload:"true"`
  6345  
  6346  	// Keywords is a required field
  6347  	Keywords *string `location:"querystring" locationName:"keywords" type:"string" required:"true"`
  6348  
  6349  	Limit *int64 `location:"querystring" locationName:"limit" type:"integer"`
  6350  
  6351  	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  6352  
  6353  	// RegistryName is a required field
  6354  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  6355  }
  6356  
  6357  // String returns the string representation.
  6358  //
  6359  // API parameter values that are decorated as "sensitive" in the API will not
  6360  // be included in the string output. The member name will be present, but the
  6361  // value will be replaced with "sensitive".
  6362  func (s SearchSchemasInput) String() string {
  6363  	return awsutil.Prettify(s)
  6364  }
  6365  
  6366  // GoString returns the string representation.
  6367  //
  6368  // API parameter values that are decorated as "sensitive" in the API will not
  6369  // be included in the string output. The member name will be present, but the
  6370  // value will be replaced with "sensitive".
  6371  func (s SearchSchemasInput) GoString() string {
  6372  	return s.String()
  6373  }
  6374  
  6375  // Validate inspects the fields of the type to determine if they are valid.
  6376  func (s *SearchSchemasInput) Validate() error {
  6377  	invalidParams := request.ErrInvalidParams{Context: "SearchSchemasInput"}
  6378  	if s.Keywords == nil {
  6379  		invalidParams.Add(request.NewErrParamRequired("Keywords"))
  6380  	}
  6381  	if s.RegistryName == nil {
  6382  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  6383  	}
  6384  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  6385  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  6386  	}
  6387  
  6388  	if invalidParams.Len() > 0 {
  6389  		return invalidParams
  6390  	}
  6391  	return nil
  6392  }
  6393  
  6394  // SetKeywords sets the Keywords field's value.
  6395  func (s *SearchSchemasInput) SetKeywords(v string) *SearchSchemasInput {
  6396  	s.Keywords = &v
  6397  	return s
  6398  }
  6399  
  6400  // SetLimit sets the Limit field's value.
  6401  func (s *SearchSchemasInput) SetLimit(v int64) *SearchSchemasInput {
  6402  	s.Limit = &v
  6403  	return s
  6404  }
  6405  
  6406  // SetNextToken sets the NextToken field's value.
  6407  func (s *SearchSchemasInput) SetNextToken(v string) *SearchSchemasInput {
  6408  	s.NextToken = &v
  6409  	return s
  6410  }
  6411  
  6412  // SetRegistryName sets the RegistryName field's value.
  6413  func (s *SearchSchemasInput) SetRegistryName(v string) *SearchSchemasInput {
  6414  	s.RegistryName = &v
  6415  	return s
  6416  }
  6417  
  6418  type SearchSchemasOutput struct {
  6419  	_ struct{} `type:"structure"`
  6420  
  6421  	NextToken *string `type:"string"`
  6422  
  6423  	Schemas []*SearchSchemaSummary `type:"list"`
  6424  }
  6425  
  6426  // String returns the string representation.
  6427  //
  6428  // API parameter values that are decorated as "sensitive" in the API will not
  6429  // be included in the string output. The member name will be present, but the
  6430  // value will be replaced with "sensitive".
  6431  func (s SearchSchemasOutput) String() string {
  6432  	return awsutil.Prettify(s)
  6433  }
  6434  
  6435  // GoString returns the string representation.
  6436  //
  6437  // API parameter values that are decorated as "sensitive" in the API will not
  6438  // be included in the string output. The member name will be present, but the
  6439  // value will be replaced with "sensitive".
  6440  func (s SearchSchemasOutput) GoString() string {
  6441  	return s.String()
  6442  }
  6443  
  6444  // SetNextToken sets the NextToken field's value.
  6445  func (s *SearchSchemasOutput) SetNextToken(v string) *SearchSchemasOutput {
  6446  	s.NextToken = &v
  6447  	return s
  6448  }
  6449  
  6450  // SetSchemas sets the Schemas field's value.
  6451  func (s *SearchSchemasOutput) SetSchemas(v []*SearchSchemaSummary) *SearchSchemasOutput {
  6452  	s.Schemas = v
  6453  	return s
  6454  }
  6455  
  6456  type ServiceUnavailableException struct {
  6457  	_            struct{}                  `type:"structure"`
  6458  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  6459  
  6460  	Code_ *string `locationName:"Code" type:"string"`
  6461  
  6462  	Message_ *string `locationName:"Message" type:"string"`
  6463  }
  6464  
  6465  // String returns the string representation.
  6466  //
  6467  // API parameter values that are decorated as "sensitive" in the API will not
  6468  // be included in the string output. The member name will be present, but the
  6469  // value will be replaced with "sensitive".
  6470  func (s ServiceUnavailableException) String() string {
  6471  	return awsutil.Prettify(s)
  6472  }
  6473  
  6474  // GoString returns the string representation.
  6475  //
  6476  // API parameter values that are decorated as "sensitive" in the API will not
  6477  // be included in the string output. The member name will be present, but the
  6478  // value will be replaced with "sensitive".
  6479  func (s ServiceUnavailableException) GoString() string {
  6480  	return s.String()
  6481  }
  6482  
  6483  func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
  6484  	return &ServiceUnavailableException{
  6485  		RespMetadata: v,
  6486  	}
  6487  }
  6488  
  6489  // Code returns the exception type name.
  6490  func (s *ServiceUnavailableException) Code() string {
  6491  	return "ServiceUnavailableException"
  6492  }
  6493  
  6494  // Message returns the exception's message.
  6495  func (s *ServiceUnavailableException) Message() string {
  6496  	if s.Message_ != nil {
  6497  		return *s.Message_
  6498  	}
  6499  	return ""
  6500  }
  6501  
  6502  // OrigErr always returns nil, satisfies awserr.Error interface.
  6503  func (s *ServiceUnavailableException) OrigErr() error {
  6504  	return nil
  6505  }
  6506  
  6507  func (s *ServiceUnavailableException) Error() string {
  6508  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  6509  }
  6510  
  6511  // Status code returns the HTTP status code for the request's response error.
  6512  func (s *ServiceUnavailableException) StatusCode() int {
  6513  	return s.RespMetadata.StatusCode
  6514  }
  6515  
  6516  // RequestID returns the service's response RequestID for request.
  6517  func (s *ServiceUnavailableException) RequestID() string {
  6518  	return s.RespMetadata.RequestID
  6519  }
  6520  
  6521  type StartDiscovererInput struct {
  6522  	_ struct{} `type:"structure" nopayload:"true"`
  6523  
  6524  	// DiscovererId is a required field
  6525  	DiscovererId *string `location:"uri" locationName:"discovererId" type:"string" required:"true"`
  6526  }
  6527  
  6528  // String returns the string representation.
  6529  //
  6530  // API parameter values that are decorated as "sensitive" in the API will not
  6531  // be included in the string output. The member name will be present, but the
  6532  // value will be replaced with "sensitive".
  6533  func (s StartDiscovererInput) String() string {
  6534  	return awsutil.Prettify(s)
  6535  }
  6536  
  6537  // GoString returns the string representation.
  6538  //
  6539  // API parameter values that are decorated as "sensitive" in the API will not
  6540  // be included in the string output. The member name will be present, but the
  6541  // value will be replaced with "sensitive".
  6542  func (s StartDiscovererInput) GoString() string {
  6543  	return s.String()
  6544  }
  6545  
  6546  // Validate inspects the fields of the type to determine if they are valid.
  6547  func (s *StartDiscovererInput) Validate() error {
  6548  	invalidParams := request.ErrInvalidParams{Context: "StartDiscovererInput"}
  6549  	if s.DiscovererId == nil {
  6550  		invalidParams.Add(request.NewErrParamRequired("DiscovererId"))
  6551  	}
  6552  	if s.DiscovererId != nil && len(*s.DiscovererId) < 1 {
  6553  		invalidParams.Add(request.NewErrParamMinLen("DiscovererId", 1))
  6554  	}
  6555  
  6556  	if invalidParams.Len() > 0 {
  6557  		return invalidParams
  6558  	}
  6559  	return nil
  6560  }
  6561  
  6562  // SetDiscovererId sets the DiscovererId field's value.
  6563  func (s *StartDiscovererInput) SetDiscovererId(v string) *StartDiscovererInput {
  6564  	s.DiscovererId = &v
  6565  	return s
  6566  }
  6567  
  6568  type StartDiscovererOutput struct {
  6569  	_ struct{} `type:"structure"`
  6570  
  6571  	DiscovererId *string `type:"string"`
  6572  
  6573  	State *string `type:"string" enum:"DiscovererState"`
  6574  }
  6575  
  6576  // String returns the string representation.
  6577  //
  6578  // API parameter values that are decorated as "sensitive" in the API will not
  6579  // be included in the string output. The member name will be present, but the
  6580  // value will be replaced with "sensitive".
  6581  func (s StartDiscovererOutput) String() string {
  6582  	return awsutil.Prettify(s)
  6583  }
  6584  
  6585  // GoString returns the string representation.
  6586  //
  6587  // API parameter values that are decorated as "sensitive" in the API will not
  6588  // be included in the string output. The member name will be present, but the
  6589  // value will be replaced with "sensitive".
  6590  func (s StartDiscovererOutput) GoString() string {
  6591  	return s.String()
  6592  }
  6593  
  6594  // SetDiscovererId sets the DiscovererId field's value.
  6595  func (s *StartDiscovererOutput) SetDiscovererId(v string) *StartDiscovererOutput {
  6596  	s.DiscovererId = &v
  6597  	return s
  6598  }
  6599  
  6600  // SetState sets the State field's value.
  6601  func (s *StartDiscovererOutput) SetState(v string) *StartDiscovererOutput {
  6602  	s.State = &v
  6603  	return s
  6604  }
  6605  
  6606  type StopDiscovererInput struct {
  6607  	_ struct{} `type:"structure" nopayload:"true"`
  6608  
  6609  	// DiscovererId is a required field
  6610  	DiscovererId *string `location:"uri" locationName:"discovererId" type:"string" required:"true"`
  6611  }
  6612  
  6613  // String returns the string representation.
  6614  //
  6615  // API parameter values that are decorated as "sensitive" in the API will not
  6616  // be included in the string output. The member name will be present, but the
  6617  // value will be replaced with "sensitive".
  6618  func (s StopDiscovererInput) String() string {
  6619  	return awsutil.Prettify(s)
  6620  }
  6621  
  6622  // GoString returns the string representation.
  6623  //
  6624  // API parameter values that are decorated as "sensitive" in the API will not
  6625  // be included in the string output. The member name will be present, but the
  6626  // value will be replaced with "sensitive".
  6627  func (s StopDiscovererInput) GoString() string {
  6628  	return s.String()
  6629  }
  6630  
  6631  // Validate inspects the fields of the type to determine if they are valid.
  6632  func (s *StopDiscovererInput) Validate() error {
  6633  	invalidParams := request.ErrInvalidParams{Context: "StopDiscovererInput"}
  6634  	if s.DiscovererId == nil {
  6635  		invalidParams.Add(request.NewErrParamRequired("DiscovererId"))
  6636  	}
  6637  	if s.DiscovererId != nil && len(*s.DiscovererId) < 1 {
  6638  		invalidParams.Add(request.NewErrParamMinLen("DiscovererId", 1))
  6639  	}
  6640  
  6641  	if invalidParams.Len() > 0 {
  6642  		return invalidParams
  6643  	}
  6644  	return nil
  6645  }
  6646  
  6647  // SetDiscovererId sets the DiscovererId field's value.
  6648  func (s *StopDiscovererInput) SetDiscovererId(v string) *StopDiscovererInput {
  6649  	s.DiscovererId = &v
  6650  	return s
  6651  }
  6652  
  6653  type StopDiscovererOutput struct {
  6654  	_ struct{} `type:"structure"`
  6655  
  6656  	DiscovererId *string `type:"string"`
  6657  
  6658  	State *string `type:"string" enum:"DiscovererState"`
  6659  }
  6660  
  6661  // String returns the string representation.
  6662  //
  6663  // API parameter values that are decorated as "sensitive" in the API will not
  6664  // be included in the string output. The member name will be present, but the
  6665  // value will be replaced with "sensitive".
  6666  func (s StopDiscovererOutput) String() string {
  6667  	return awsutil.Prettify(s)
  6668  }
  6669  
  6670  // GoString returns the string representation.
  6671  //
  6672  // API parameter values that are decorated as "sensitive" in the API will not
  6673  // be included in the string output. The member name will be present, but the
  6674  // value will be replaced with "sensitive".
  6675  func (s StopDiscovererOutput) GoString() string {
  6676  	return s.String()
  6677  }
  6678  
  6679  // SetDiscovererId sets the DiscovererId field's value.
  6680  func (s *StopDiscovererOutput) SetDiscovererId(v string) *StopDiscovererOutput {
  6681  	s.DiscovererId = &v
  6682  	return s
  6683  }
  6684  
  6685  // SetState sets the State field's value.
  6686  func (s *StopDiscovererOutput) SetState(v string) *StopDiscovererOutput {
  6687  	s.State = &v
  6688  	return s
  6689  }
  6690  
  6691  type TagResourceInput struct {
  6692  	_ struct{} `type:"structure"`
  6693  
  6694  	// ResourceArn is a required field
  6695  	ResourceArn *string `location:"uri" locationName:"resource-arn" type:"string" required:"true"`
  6696  
  6697  	// Key-value pairs associated with a resource.
  6698  	//
  6699  	// Tags is a required field
  6700  	Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
  6701  }
  6702  
  6703  // String returns the string representation.
  6704  //
  6705  // API parameter values that are decorated as "sensitive" in the API will not
  6706  // be included in the string output. The member name will be present, but the
  6707  // value will be replaced with "sensitive".
  6708  func (s TagResourceInput) String() string {
  6709  	return awsutil.Prettify(s)
  6710  }
  6711  
  6712  // GoString returns the string representation.
  6713  //
  6714  // API parameter values that are decorated as "sensitive" in the API will not
  6715  // be included in the string output. The member name will be present, but the
  6716  // value will be replaced with "sensitive".
  6717  func (s TagResourceInput) GoString() string {
  6718  	return s.String()
  6719  }
  6720  
  6721  // Validate inspects the fields of the type to determine if they are valid.
  6722  func (s *TagResourceInput) Validate() error {
  6723  	invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
  6724  	if s.ResourceArn == nil {
  6725  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  6726  	}
  6727  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  6728  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  6729  	}
  6730  	if s.Tags == nil {
  6731  		invalidParams.Add(request.NewErrParamRequired("Tags"))
  6732  	}
  6733  
  6734  	if invalidParams.Len() > 0 {
  6735  		return invalidParams
  6736  	}
  6737  	return nil
  6738  }
  6739  
  6740  // SetResourceArn sets the ResourceArn field's value.
  6741  func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
  6742  	s.ResourceArn = &v
  6743  	return s
  6744  }
  6745  
  6746  // SetTags sets the Tags field's value.
  6747  func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
  6748  	s.Tags = v
  6749  	return s
  6750  }
  6751  
  6752  type TagResourceOutput struct {
  6753  	_ struct{} `type:"structure" nopayload:"true"`
  6754  }
  6755  
  6756  // String returns the string representation.
  6757  //
  6758  // API parameter values that are decorated as "sensitive" in the API will not
  6759  // be included in the string output. The member name will be present, but the
  6760  // value will be replaced with "sensitive".
  6761  func (s TagResourceOutput) String() string {
  6762  	return awsutil.Prettify(s)
  6763  }
  6764  
  6765  // GoString returns the string representation.
  6766  //
  6767  // API parameter values that are decorated as "sensitive" in the API will not
  6768  // be included in the string output. The member name will be present, but the
  6769  // value will be replaced with "sensitive".
  6770  func (s TagResourceOutput) GoString() string {
  6771  	return s.String()
  6772  }
  6773  
  6774  type TooManyRequestsException struct {
  6775  	_            struct{}                  `type:"structure"`
  6776  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  6777  
  6778  	Code_ *string `locationName:"Code" type:"string"`
  6779  
  6780  	Message_ *string `locationName:"Message" type:"string"`
  6781  }
  6782  
  6783  // String returns the string representation.
  6784  //
  6785  // API parameter values that are decorated as "sensitive" in the API will not
  6786  // be included in the string output. The member name will be present, but the
  6787  // value will be replaced with "sensitive".
  6788  func (s TooManyRequestsException) String() string {
  6789  	return awsutil.Prettify(s)
  6790  }
  6791  
  6792  // GoString returns the string representation.
  6793  //
  6794  // API parameter values that are decorated as "sensitive" in the API will not
  6795  // be included in the string output. The member name will be present, but the
  6796  // value will be replaced with "sensitive".
  6797  func (s TooManyRequestsException) GoString() string {
  6798  	return s.String()
  6799  }
  6800  
  6801  func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
  6802  	return &TooManyRequestsException{
  6803  		RespMetadata: v,
  6804  	}
  6805  }
  6806  
  6807  // Code returns the exception type name.
  6808  func (s *TooManyRequestsException) Code() string {
  6809  	return "TooManyRequestsException"
  6810  }
  6811  
  6812  // Message returns the exception's message.
  6813  func (s *TooManyRequestsException) Message() string {
  6814  	if s.Message_ != nil {
  6815  		return *s.Message_
  6816  	}
  6817  	return ""
  6818  }
  6819  
  6820  // OrigErr always returns nil, satisfies awserr.Error interface.
  6821  func (s *TooManyRequestsException) OrigErr() error {
  6822  	return nil
  6823  }
  6824  
  6825  func (s *TooManyRequestsException) Error() string {
  6826  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  6827  }
  6828  
  6829  // Status code returns the HTTP status code for the request's response error.
  6830  func (s *TooManyRequestsException) StatusCode() int {
  6831  	return s.RespMetadata.StatusCode
  6832  }
  6833  
  6834  // RequestID returns the service's response RequestID for request.
  6835  func (s *TooManyRequestsException) RequestID() string {
  6836  	return s.RespMetadata.RequestID
  6837  }
  6838  
  6839  type UnauthorizedException struct {
  6840  	_            struct{}                  `type:"structure"`
  6841  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  6842  
  6843  	Code_ *string `locationName:"Code" type:"string"`
  6844  
  6845  	Message_ *string `locationName:"Message" type:"string"`
  6846  }
  6847  
  6848  // String returns the string representation.
  6849  //
  6850  // API parameter values that are decorated as "sensitive" in the API will not
  6851  // be included in the string output. The member name will be present, but the
  6852  // value will be replaced with "sensitive".
  6853  func (s UnauthorizedException) String() string {
  6854  	return awsutil.Prettify(s)
  6855  }
  6856  
  6857  // GoString returns the string representation.
  6858  //
  6859  // API parameter values that are decorated as "sensitive" in the API will not
  6860  // be included in the string output. The member name will be present, but the
  6861  // value will be replaced with "sensitive".
  6862  func (s UnauthorizedException) GoString() string {
  6863  	return s.String()
  6864  }
  6865  
  6866  func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
  6867  	return &UnauthorizedException{
  6868  		RespMetadata: v,
  6869  	}
  6870  }
  6871  
  6872  // Code returns the exception type name.
  6873  func (s *UnauthorizedException) Code() string {
  6874  	return "UnauthorizedException"
  6875  }
  6876  
  6877  // Message returns the exception's message.
  6878  func (s *UnauthorizedException) Message() string {
  6879  	if s.Message_ != nil {
  6880  		return *s.Message_
  6881  	}
  6882  	return ""
  6883  }
  6884  
  6885  // OrigErr always returns nil, satisfies awserr.Error interface.
  6886  func (s *UnauthorizedException) OrigErr() error {
  6887  	return nil
  6888  }
  6889  
  6890  func (s *UnauthorizedException) Error() string {
  6891  	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
  6892  }
  6893  
  6894  // Status code returns the HTTP status code for the request's response error.
  6895  func (s *UnauthorizedException) StatusCode() int {
  6896  	return s.RespMetadata.StatusCode
  6897  }
  6898  
  6899  // RequestID returns the service's response RequestID for request.
  6900  func (s *UnauthorizedException) RequestID() string {
  6901  	return s.RespMetadata.RequestID
  6902  }
  6903  
  6904  type UntagResourceInput struct {
  6905  	_ struct{} `type:"structure" nopayload:"true"`
  6906  
  6907  	// ResourceArn is a required field
  6908  	ResourceArn *string `location:"uri" locationName:"resource-arn" type:"string" required:"true"`
  6909  
  6910  	// TagKeys is a required field
  6911  	TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
  6912  }
  6913  
  6914  // String returns the string representation.
  6915  //
  6916  // API parameter values that are decorated as "sensitive" in the API will not
  6917  // be included in the string output. The member name will be present, but the
  6918  // value will be replaced with "sensitive".
  6919  func (s UntagResourceInput) String() string {
  6920  	return awsutil.Prettify(s)
  6921  }
  6922  
  6923  // GoString returns the string representation.
  6924  //
  6925  // API parameter values that are decorated as "sensitive" in the API will not
  6926  // be included in the string output. The member name will be present, but the
  6927  // value will be replaced with "sensitive".
  6928  func (s UntagResourceInput) GoString() string {
  6929  	return s.String()
  6930  }
  6931  
  6932  // Validate inspects the fields of the type to determine if they are valid.
  6933  func (s *UntagResourceInput) Validate() error {
  6934  	invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
  6935  	if s.ResourceArn == nil {
  6936  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  6937  	}
  6938  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  6939  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  6940  	}
  6941  	if s.TagKeys == nil {
  6942  		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  6943  	}
  6944  
  6945  	if invalidParams.Len() > 0 {
  6946  		return invalidParams
  6947  	}
  6948  	return nil
  6949  }
  6950  
  6951  // SetResourceArn sets the ResourceArn field's value.
  6952  func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
  6953  	s.ResourceArn = &v
  6954  	return s
  6955  }
  6956  
  6957  // SetTagKeys sets the TagKeys field's value.
  6958  func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
  6959  	s.TagKeys = v
  6960  	return s
  6961  }
  6962  
  6963  type UntagResourceOutput struct {
  6964  	_ struct{} `type:"structure" nopayload:"true"`
  6965  }
  6966  
  6967  // String returns the string representation.
  6968  //
  6969  // API parameter values that are decorated as "sensitive" in the API will not
  6970  // be included in the string output. The member name will be present, but the
  6971  // value will be replaced with "sensitive".
  6972  func (s UntagResourceOutput) String() string {
  6973  	return awsutil.Prettify(s)
  6974  }
  6975  
  6976  // GoString returns the string representation.
  6977  //
  6978  // API parameter values that are decorated as "sensitive" in the API will not
  6979  // be included in the string output. The member name will be present, but the
  6980  // value will be replaced with "sensitive".
  6981  func (s UntagResourceOutput) GoString() string {
  6982  	return s.String()
  6983  }
  6984  
  6985  type UpdateDiscovererInput struct {
  6986  	_ struct{} `type:"structure"`
  6987  
  6988  	CrossAccount *bool `type:"boolean"`
  6989  
  6990  	Description *string `type:"string"`
  6991  
  6992  	// DiscovererId is a required field
  6993  	DiscovererId *string `location:"uri" locationName:"discovererId" type:"string" required:"true"`
  6994  }
  6995  
  6996  // String returns the string representation.
  6997  //
  6998  // API parameter values that are decorated as "sensitive" in the API will not
  6999  // be included in the string output. The member name will be present, but the
  7000  // value will be replaced with "sensitive".
  7001  func (s UpdateDiscovererInput) String() string {
  7002  	return awsutil.Prettify(s)
  7003  }
  7004  
  7005  // GoString returns the string representation.
  7006  //
  7007  // API parameter values that are decorated as "sensitive" in the API will not
  7008  // be included in the string output. The member name will be present, but the
  7009  // value will be replaced with "sensitive".
  7010  func (s UpdateDiscovererInput) GoString() string {
  7011  	return s.String()
  7012  }
  7013  
  7014  // Validate inspects the fields of the type to determine if they are valid.
  7015  func (s *UpdateDiscovererInput) Validate() error {
  7016  	invalidParams := request.ErrInvalidParams{Context: "UpdateDiscovererInput"}
  7017  	if s.DiscovererId == nil {
  7018  		invalidParams.Add(request.NewErrParamRequired("DiscovererId"))
  7019  	}
  7020  	if s.DiscovererId != nil && len(*s.DiscovererId) < 1 {
  7021  		invalidParams.Add(request.NewErrParamMinLen("DiscovererId", 1))
  7022  	}
  7023  
  7024  	if invalidParams.Len() > 0 {
  7025  		return invalidParams
  7026  	}
  7027  	return nil
  7028  }
  7029  
  7030  // SetCrossAccount sets the CrossAccount field's value.
  7031  func (s *UpdateDiscovererInput) SetCrossAccount(v bool) *UpdateDiscovererInput {
  7032  	s.CrossAccount = &v
  7033  	return s
  7034  }
  7035  
  7036  // SetDescription sets the Description field's value.
  7037  func (s *UpdateDiscovererInput) SetDescription(v string) *UpdateDiscovererInput {
  7038  	s.Description = &v
  7039  	return s
  7040  }
  7041  
  7042  // SetDiscovererId sets the DiscovererId field's value.
  7043  func (s *UpdateDiscovererInput) SetDiscovererId(v string) *UpdateDiscovererInput {
  7044  	s.DiscovererId = &v
  7045  	return s
  7046  }
  7047  
  7048  type UpdateDiscovererOutput struct {
  7049  	_ struct{} `type:"structure"`
  7050  
  7051  	CrossAccount *bool `type:"boolean"`
  7052  
  7053  	Description *string `type:"string"`
  7054  
  7055  	DiscovererArn *string `type:"string"`
  7056  
  7057  	DiscovererId *string `type:"string"`
  7058  
  7059  	SourceArn *string `type:"string"`
  7060  
  7061  	State *string `type:"string" enum:"DiscovererState"`
  7062  
  7063  	// Key-value pairs associated with a resource.
  7064  	Tags map[string]*string `locationName:"tags" type:"map"`
  7065  }
  7066  
  7067  // String returns the string representation.
  7068  //
  7069  // API parameter values that are decorated as "sensitive" in the API will not
  7070  // be included in the string output. The member name will be present, but the
  7071  // value will be replaced with "sensitive".
  7072  func (s UpdateDiscovererOutput) String() string {
  7073  	return awsutil.Prettify(s)
  7074  }
  7075  
  7076  // GoString returns the string representation.
  7077  //
  7078  // API parameter values that are decorated as "sensitive" in the API will not
  7079  // be included in the string output. The member name will be present, but the
  7080  // value will be replaced with "sensitive".
  7081  func (s UpdateDiscovererOutput) GoString() string {
  7082  	return s.String()
  7083  }
  7084  
  7085  // SetCrossAccount sets the CrossAccount field's value.
  7086  func (s *UpdateDiscovererOutput) SetCrossAccount(v bool) *UpdateDiscovererOutput {
  7087  	s.CrossAccount = &v
  7088  	return s
  7089  }
  7090  
  7091  // SetDescription sets the Description field's value.
  7092  func (s *UpdateDiscovererOutput) SetDescription(v string) *UpdateDiscovererOutput {
  7093  	s.Description = &v
  7094  	return s
  7095  }
  7096  
  7097  // SetDiscovererArn sets the DiscovererArn field's value.
  7098  func (s *UpdateDiscovererOutput) SetDiscovererArn(v string) *UpdateDiscovererOutput {
  7099  	s.DiscovererArn = &v
  7100  	return s
  7101  }
  7102  
  7103  // SetDiscovererId sets the DiscovererId field's value.
  7104  func (s *UpdateDiscovererOutput) SetDiscovererId(v string) *UpdateDiscovererOutput {
  7105  	s.DiscovererId = &v
  7106  	return s
  7107  }
  7108  
  7109  // SetSourceArn sets the SourceArn field's value.
  7110  func (s *UpdateDiscovererOutput) SetSourceArn(v string) *UpdateDiscovererOutput {
  7111  	s.SourceArn = &v
  7112  	return s
  7113  }
  7114  
  7115  // SetState sets the State field's value.
  7116  func (s *UpdateDiscovererOutput) SetState(v string) *UpdateDiscovererOutput {
  7117  	s.State = &v
  7118  	return s
  7119  }
  7120  
  7121  // SetTags sets the Tags field's value.
  7122  func (s *UpdateDiscovererOutput) SetTags(v map[string]*string) *UpdateDiscovererOutput {
  7123  	s.Tags = v
  7124  	return s
  7125  }
  7126  
  7127  type UpdateRegistryInput struct {
  7128  	_ struct{} `type:"structure"`
  7129  
  7130  	Description *string `type:"string"`
  7131  
  7132  	// RegistryName is a required field
  7133  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  7134  }
  7135  
  7136  // String returns the string representation.
  7137  //
  7138  // API parameter values that are decorated as "sensitive" in the API will not
  7139  // be included in the string output. The member name will be present, but the
  7140  // value will be replaced with "sensitive".
  7141  func (s UpdateRegistryInput) String() string {
  7142  	return awsutil.Prettify(s)
  7143  }
  7144  
  7145  // GoString returns the string representation.
  7146  //
  7147  // API parameter values that are decorated as "sensitive" in the API will not
  7148  // be included in the string output. The member name will be present, but the
  7149  // value will be replaced with "sensitive".
  7150  func (s UpdateRegistryInput) GoString() string {
  7151  	return s.String()
  7152  }
  7153  
  7154  // Validate inspects the fields of the type to determine if they are valid.
  7155  func (s *UpdateRegistryInput) Validate() error {
  7156  	invalidParams := request.ErrInvalidParams{Context: "UpdateRegistryInput"}
  7157  	if s.RegistryName == nil {
  7158  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  7159  	}
  7160  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  7161  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  7162  	}
  7163  
  7164  	if invalidParams.Len() > 0 {
  7165  		return invalidParams
  7166  	}
  7167  	return nil
  7168  }
  7169  
  7170  // SetDescription sets the Description field's value.
  7171  func (s *UpdateRegistryInput) SetDescription(v string) *UpdateRegistryInput {
  7172  	s.Description = &v
  7173  	return s
  7174  }
  7175  
  7176  // SetRegistryName sets the RegistryName field's value.
  7177  func (s *UpdateRegistryInput) SetRegistryName(v string) *UpdateRegistryInput {
  7178  	s.RegistryName = &v
  7179  	return s
  7180  }
  7181  
  7182  type UpdateRegistryOutput struct {
  7183  	_ struct{} `type:"structure"`
  7184  
  7185  	Description *string `type:"string"`
  7186  
  7187  	RegistryArn *string `type:"string"`
  7188  
  7189  	RegistryName *string `type:"string"`
  7190  
  7191  	// Key-value pairs associated with a resource.
  7192  	Tags map[string]*string `locationName:"tags" type:"map"`
  7193  }
  7194  
  7195  // String returns the string representation.
  7196  //
  7197  // API parameter values that are decorated as "sensitive" in the API will not
  7198  // be included in the string output. The member name will be present, but the
  7199  // value will be replaced with "sensitive".
  7200  func (s UpdateRegistryOutput) String() string {
  7201  	return awsutil.Prettify(s)
  7202  }
  7203  
  7204  // GoString returns the string representation.
  7205  //
  7206  // API parameter values that are decorated as "sensitive" in the API will not
  7207  // be included in the string output. The member name will be present, but the
  7208  // value will be replaced with "sensitive".
  7209  func (s UpdateRegistryOutput) GoString() string {
  7210  	return s.String()
  7211  }
  7212  
  7213  // SetDescription sets the Description field's value.
  7214  func (s *UpdateRegistryOutput) SetDescription(v string) *UpdateRegistryOutput {
  7215  	s.Description = &v
  7216  	return s
  7217  }
  7218  
  7219  // SetRegistryArn sets the RegistryArn field's value.
  7220  func (s *UpdateRegistryOutput) SetRegistryArn(v string) *UpdateRegistryOutput {
  7221  	s.RegistryArn = &v
  7222  	return s
  7223  }
  7224  
  7225  // SetRegistryName sets the RegistryName field's value.
  7226  func (s *UpdateRegistryOutput) SetRegistryName(v string) *UpdateRegistryOutput {
  7227  	s.RegistryName = &v
  7228  	return s
  7229  }
  7230  
  7231  // SetTags sets the Tags field's value.
  7232  func (s *UpdateRegistryOutput) SetTags(v map[string]*string) *UpdateRegistryOutput {
  7233  	s.Tags = v
  7234  	return s
  7235  }
  7236  
  7237  type UpdateSchemaInput struct {
  7238  	_ struct{} `type:"structure"`
  7239  
  7240  	ClientTokenId *string `type:"string" idempotencyToken:"true"`
  7241  
  7242  	Content *string `min:"1" type:"string"`
  7243  
  7244  	Description *string `type:"string"`
  7245  
  7246  	// RegistryName is a required field
  7247  	RegistryName *string `location:"uri" locationName:"registryName" type:"string" required:"true"`
  7248  
  7249  	// SchemaName is a required field
  7250  	SchemaName *string `location:"uri" locationName:"schemaName" type:"string" required:"true"`
  7251  
  7252  	Type *string `type:"string" enum:"Type"`
  7253  }
  7254  
  7255  // String returns the string representation.
  7256  //
  7257  // API parameter values that are decorated as "sensitive" in the API will not
  7258  // be included in the string output. The member name will be present, but the
  7259  // value will be replaced with "sensitive".
  7260  func (s UpdateSchemaInput) String() string {
  7261  	return awsutil.Prettify(s)
  7262  }
  7263  
  7264  // GoString returns the string representation.
  7265  //
  7266  // API parameter values that are decorated as "sensitive" in the API will not
  7267  // be included in the string output. The member name will be present, but the
  7268  // value will be replaced with "sensitive".
  7269  func (s UpdateSchemaInput) GoString() string {
  7270  	return s.String()
  7271  }
  7272  
  7273  // Validate inspects the fields of the type to determine if they are valid.
  7274  func (s *UpdateSchemaInput) Validate() error {
  7275  	invalidParams := request.ErrInvalidParams{Context: "UpdateSchemaInput"}
  7276  	if s.Content != nil && len(*s.Content) < 1 {
  7277  		invalidParams.Add(request.NewErrParamMinLen("Content", 1))
  7278  	}
  7279  	if s.RegistryName == nil {
  7280  		invalidParams.Add(request.NewErrParamRequired("RegistryName"))
  7281  	}
  7282  	if s.RegistryName != nil && len(*s.RegistryName) < 1 {
  7283  		invalidParams.Add(request.NewErrParamMinLen("RegistryName", 1))
  7284  	}
  7285  	if s.SchemaName == nil {
  7286  		invalidParams.Add(request.NewErrParamRequired("SchemaName"))
  7287  	}
  7288  	if s.SchemaName != nil && len(*s.SchemaName) < 1 {
  7289  		invalidParams.Add(request.NewErrParamMinLen("SchemaName", 1))
  7290  	}
  7291  
  7292  	if invalidParams.Len() > 0 {
  7293  		return invalidParams
  7294  	}
  7295  	return nil
  7296  }
  7297  
  7298  // SetClientTokenId sets the ClientTokenId field's value.
  7299  func (s *UpdateSchemaInput) SetClientTokenId(v string) *UpdateSchemaInput {
  7300  	s.ClientTokenId = &v
  7301  	return s
  7302  }
  7303  
  7304  // SetContent sets the Content field's value.
  7305  func (s *UpdateSchemaInput) SetContent(v string) *UpdateSchemaInput {
  7306  	s.Content = &v
  7307  	return s
  7308  }
  7309  
  7310  // SetDescription sets the Description field's value.
  7311  func (s *UpdateSchemaInput) SetDescription(v string) *UpdateSchemaInput {
  7312  	s.Description = &v
  7313  	return s
  7314  }
  7315  
  7316  // SetRegistryName sets the RegistryName field's value.
  7317  func (s *UpdateSchemaInput) SetRegistryName(v string) *UpdateSchemaInput {
  7318  	s.RegistryName = &v
  7319  	return s
  7320  }
  7321  
  7322  // SetSchemaName sets the SchemaName field's value.
  7323  func (s *UpdateSchemaInput) SetSchemaName(v string) *UpdateSchemaInput {
  7324  	s.SchemaName = &v
  7325  	return s
  7326  }
  7327  
  7328  // SetType sets the Type field's value.
  7329  func (s *UpdateSchemaInput) SetType(v string) *UpdateSchemaInput {
  7330  	s.Type = &v
  7331  	return s
  7332  }
  7333  
  7334  type UpdateSchemaOutput struct {
  7335  	_ struct{} `type:"structure"`
  7336  
  7337  	Description *string `type:"string"`
  7338  
  7339  	LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  7340  
  7341  	SchemaArn *string `type:"string"`
  7342  
  7343  	SchemaName *string `type:"string"`
  7344  
  7345  	SchemaVersion *string `type:"string"`
  7346  
  7347  	// Key-value pairs associated with a resource.
  7348  	Tags map[string]*string `locationName:"tags" type:"map"`
  7349  
  7350  	Type *string `type:"string"`
  7351  
  7352  	VersionCreatedDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  7353  }
  7354  
  7355  // String returns the string representation.
  7356  //
  7357  // API parameter values that are decorated as "sensitive" in the API will not
  7358  // be included in the string output. The member name will be present, but the
  7359  // value will be replaced with "sensitive".
  7360  func (s UpdateSchemaOutput) String() string {
  7361  	return awsutil.Prettify(s)
  7362  }
  7363  
  7364  // GoString returns the string representation.
  7365  //
  7366  // API parameter values that are decorated as "sensitive" in the API will not
  7367  // be included in the string output. The member name will be present, but the
  7368  // value will be replaced with "sensitive".
  7369  func (s UpdateSchemaOutput) GoString() string {
  7370  	return s.String()
  7371  }
  7372  
  7373  // SetDescription sets the Description field's value.
  7374  func (s *UpdateSchemaOutput) SetDescription(v string) *UpdateSchemaOutput {
  7375  	s.Description = &v
  7376  	return s
  7377  }
  7378  
  7379  // SetLastModified sets the LastModified field's value.
  7380  func (s *UpdateSchemaOutput) SetLastModified(v time.Time) *UpdateSchemaOutput {
  7381  	s.LastModified = &v
  7382  	return s
  7383  }
  7384  
  7385  // SetSchemaArn sets the SchemaArn field's value.
  7386  func (s *UpdateSchemaOutput) SetSchemaArn(v string) *UpdateSchemaOutput {
  7387  	s.SchemaArn = &v
  7388  	return s
  7389  }
  7390  
  7391  // SetSchemaName sets the SchemaName field's value.
  7392  func (s *UpdateSchemaOutput) SetSchemaName(v string) *UpdateSchemaOutput {
  7393  	s.SchemaName = &v
  7394  	return s
  7395  }
  7396  
  7397  // SetSchemaVersion sets the SchemaVersion field's value.
  7398  func (s *UpdateSchemaOutput) SetSchemaVersion(v string) *UpdateSchemaOutput {
  7399  	s.SchemaVersion = &v
  7400  	return s
  7401  }
  7402  
  7403  // SetTags sets the Tags field's value.
  7404  func (s *UpdateSchemaOutput) SetTags(v map[string]*string) *UpdateSchemaOutput {
  7405  	s.Tags = v
  7406  	return s
  7407  }
  7408  
  7409  // SetType sets the Type field's value.
  7410  func (s *UpdateSchemaOutput) SetType(v string) *UpdateSchemaOutput {
  7411  	s.Type = &v
  7412  	return s
  7413  }
  7414  
  7415  // SetVersionCreatedDate sets the VersionCreatedDate field's value.
  7416  func (s *UpdateSchemaOutput) SetVersionCreatedDate(v time.Time) *UpdateSchemaOutput {
  7417  	s.VersionCreatedDate = &v
  7418  	return s
  7419  }
  7420  
  7421  const (
  7422  	// CodeGenerationStatusCreateInProgress is a CodeGenerationStatus enum value
  7423  	CodeGenerationStatusCreateInProgress = "CREATE_IN_PROGRESS"
  7424  
  7425  	// CodeGenerationStatusCreateComplete is a CodeGenerationStatus enum value
  7426  	CodeGenerationStatusCreateComplete = "CREATE_COMPLETE"
  7427  
  7428  	// CodeGenerationStatusCreateFailed is a CodeGenerationStatus enum value
  7429  	CodeGenerationStatusCreateFailed = "CREATE_FAILED"
  7430  )
  7431  
  7432  // CodeGenerationStatus_Values returns all elements of the CodeGenerationStatus enum
  7433  func CodeGenerationStatus_Values() []string {
  7434  	return []string{
  7435  		CodeGenerationStatusCreateInProgress,
  7436  		CodeGenerationStatusCreateComplete,
  7437  		CodeGenerationStatusCreateFailed,
  7438  	}
  7439  }
  7440  
  7441  const (
  7442  	// DiscovererStateStarted is a DiscovererState enum value
  7443  	DiscovererStateStarted = "STARTED"
  7444  
  7445  	// DiscovererStateStopped is a DiscovererState enum value
  7446  	DiscovererStateStopped = "STOPPED"
  7447  )
  7448  
  7449  // DiscovererState_Values returns all elements of the DiscovererState enum
  7450  func DiscovererState_Values() []string {
  7451  	return []string{
  7452  		DiscovererStateStarted,
  7453  		DiscovererStateStopped,
  7454  	}
  7455  }
  7456  
  7457  const (
  7458  	// TypeOpenApi3 is a Type enum value
  7459  	TypeOpenApi3 = "OpenApi3"
  7460  )
  7461  
  7462  // Type_Values returns all elements of the Type enum
  7463  func Type_Values() []string {
  7464  	return []string{
  7465  		TypeOpenApi3,
  7466  	}
  7467  }