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