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