1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package mq 4 5import ( 6 "github.com/aws/aws-sdk-go/aws" 7 "github.com/aws/aws-sdk-go/aws/awsutil" 8 "github.com/aws/aws-sdk-go/aws/request" 9) 10 11const opCreateBroker = "CreateBroker" 12 13// CreateBrokerRequest generates a "aws/request.Request" representing the 14// client's request for the CreateBroker operation. The "output" return 15// value will be populated with the request's response once the request complets 16// successfuly. 17// 18// Use "Send" method on the returned Request to send the API call to the service. 19// the "output" return value is not valid until after Send returns without error. 20// 21// See CreateBroker for more information on using the CreateBroker 22// API call, and error handling. 23// 24// This method is useful when you want to inject custom logic or configuration 25// into the SDK's request lifecycle. Such as custom headers, or retry logic. 26// 27// 28// // Example sending a request using the CreateBrokerRequest method. 29// req, resp := client.CreateBrokerRequest(params) 30// 31// err := req.Send() 32// if err == nil { // resp is now filled 33// fmt.Println(resp) 34// } 35// 36// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBroker 37func (c *MQ) CreateBrokerRequest(input *CreateBrokerRequest) (req *request.Request, output *CreateBrokerResponse) { 38 op := &request.Operation{ 39 Name: opCreateBroker, 40 HTTPMethod: "POST", 41 HTTPPath: "/v1/brokers", 42 } 43 44 if input == nil { 45 input = &CreateBrokerRequest{} 46 } 47 48 output = &CreateBrokerResponse{} 49 req = c.newRequest(op, input, output) 50 return 51} 52 53// CreateBroker API operation for AmazonMQ. 54// 55// Creates a broker. Note: This API is asynchronous. 56// 57// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 58// with awserr.Error's Code and Message methods to get detailed information about 59// the error. 60// 61// See the AWS API reference guide for AmazonMQ's 62// API operation CreateBroker for usage and error information. 63// 64// Returned Error Codes: 65// * ErrCodeBadRequestException "BadRequestException" 66// Returns information about an error. 67// 68// * ErrCodeInternalServerErrorException "InternalServerErrorException" 69// Returns information about an error. 70// 71// * ErrCodeUnauthorizedException "UnauthorizedException" 72// Returns information about an error. 73// 74// * ErrCodeConflictException "ConflictException" 75// Returns information about an error. 76// 77// * ErrCodeForbiddenException "ForbiddenException" 78// Returns information about an error. 79// 80// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBroker 81func (c *MQ) CreateBroker(input *CreateBrokerRequest) (*CreateBrokerResponse, error) { 82 req, out := c.CreateBrokerRequest(input) 83 return out, req.Send() 84} 85 86// CreateBrokerWithContext is the same as CreateBroker with the addition of 87// the ability to pass a context and additional request options. 88// 89// See CreateBroker for details on how to use this API operation. 90// 91// The context must be non-nil and will be used for request cancellation. If 92// the context is nil a panic will occur. In the future the SDK may create 93// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 94// for more information on using Contexts. 95func (c *MQ) CreateBrokerWithContext(ctx aws.Context, input *CreateBrokerRequest, opts ...request.Option) (*CreateBrokerResponse, error) { 96 req, out := c.CreateBrokerRequest(input) 97 req.SetContext(ctx) 98 req.ApplyOptions(opts...) 99 return out, req.Send() 100} 101 102const opCreateConfiguration = "CreateConfiguration" 103 104// CreateConfigurationRequest generates a "aws/request.Request" representing the 105// client's request for the CreateConfiguration operation. The "output" return 106// value will be populated with the request's response once the request complets 107// successfuly. 108// 109// Use "Send" method on the returned Request to send the API call to the service. 110// the "output" return value is not valid until after Send returns without error. 111// 112// See CreateConfiguration for more information on using the CreateConfiguration 113// API call, and error handling. 114// 115// This method is useful when you want to inject custom logic or configuration 116// into the SDK's request lifecycle. Such as custom headers, or retry logic. 117// 118// 119// // Example sending a request using the CreateConfigurationRequest method. 120// req, resp := client.CreateConfigurationRequest(params) 121// 122// err := req.Send() 123// if err == nil { // resp is now filled 124// fmt.Println(resp) 125// } 126// 127// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfiguration 128func (c *MQ) CreateConfigurationRequest(input *CreateConfigurationRequest) (req *request.Request, output *CreateConfigurationResponse) { 129 op := &request.Operation{ 130 Name: opCreateConfiguration, 131 HTTPMethod: "POST", 132 HTTPPath: "/v1/configurations", 133 } 134 135 if input == nil { 136 input = &CreateConfigurationRequest{} 137 } 138 139 output = &CreateConfigurationResponse{} 140 req = c.newRequest(op, input, output) 141 return 142} 143 144// CreateConfiguration API operation for AmazonMQ. 145// 146// Creates a new configuration for the specified configuration name. Amazon 147// MQ uses the default configuration (the engine type and version). Note: If 148// the configuration name already exists, Amazon MQ doesn't create a configuration. 149// 150// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 151// with awserr.Error's Code and Message methods to get detailed information about 152// the error. 153// 154// See the AWS API reference guide for AmazonMQ's 155// API operation CreateConfiguration for usage and error information. 156// 157// Returned Error Codes: 158// * ErrCodeBadRequestException "BadRequestException" 159// Returns information about an error. 160// 161// * ErrCodeInternalServerErrorException "InternalServerErrorException" 162// Returns information about an error. 163// 164// * ErrCodeConflictException "ConflictException" 165// Returns information about an error. 166// 167// * ErrCodeForbiddenException "ForbiddenException" 168// Returns information about an error. 169// 170// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfiguration 171func (c *MQ) CreateConfiguration(input *CreateConfigurationRequest) (*CreateConfigurationResponse, error) { 172 req, out := c.CreateConfigurationRequest(input) 173 return out, req.Send() 174} 175 176// CreateConfigurationWithContext is the same as CreateConfiguration with the addition of 177// the ability to pass a context and additional request options. 178// 179// See CreateConfiguration for details on how to use this API operation. 180// 181// The context must be non-nil and will be used for request cancellation. If 182// the context is nil a panic will occur. In the future the SDK may create 183// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 184// for more information on using Contexts. 185func (c *MQ) CreateConfigurationWithContext(ctx aws.Context, input *CreateConfigurationRequest, opts ...request.Option) (*CreateConfigurationResponse, error) { 186 req, out := c.CreateConfigurationRequest(input) 187 req.SetContext(ctx) 188 req.ApplyOptions(opts...) 189 return out, req.Send() 190} 191 192const opCreateUser = "CreateUser" 193 194// CreateUserRequest generates a "aws/request.Request" representing the 195// client's request for the CreateUser operation. The "output" return 196// value will be populated with the request's response once the request complets 197// successfuly. 198// 199// Use "Send" method on the returned Request to send the API call to the service. 200// the "output" return value is not valid until after Send returns without error. 201// 202// See CreateUser for more information on using the CreateUser 203// API call, and error handling. 204// 205// This method is useful when you want to inject custom logic or configuration 206// into the SDK's request lifecycle. Such as custom headers, or retry logic. 207// 208// 209// // Example sending a request using the CreateUserRequest method. 210// req, resp := client.CreateUserRequest(params) 211// 212// err := req.Send() 213// if err == nil { // resp is now filled 214// fmt.Println(resp) 215// } 216// 217// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUser 218func (c *MQ) CreateUserRequest(input *CreateUserRequest) (req *request.Request, output *CreateUserOutput) { 219 op := &request.Operation{ 220 Name: opCreateUser, 221 HTTPMethod: "POST", 222 HTTPPath: "/v1/brokers/{broker-id}/users/{username}", 223 } 224 225 if input == nil { 226 input = &CreateUserRequest{} 227 } 228 229 output = &CreateUserOutput{} 230 req = c.newRequest(op, input, output) 231 return 232} 233 234// CreateUser API operation for AmazonMQ. 235// 236// Creates an ActiveMQ user. 237// 238// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 239// with awserr.Error's Code and Message methods to get detailed information about 240// the error. 241// 242// See the AWS API reference guide for AmazonMQ's 243// API operation CreateUser for usage and error information. 244// 245// Returned Error Codes: 246// * ErrCodeNotFoundException "NotFoundException" 247// Returns information about an error. 248// 249// * ErrCodeBadRequestException "BadRequestException" 250// Returns information about an error. 251// 252// * ErrCodeInternalServerErrorException "InternalServerErrorException" 253// Returns information about an error. 254// 255// * ErrCodeConflictException "ConflictException" 256// Returns information about an error. 257// 258// * ErrCodeForbiddenException "ForbiddenException" 259// Returns information about an error. 260// 261// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUser 262func (c *MQ) CreateUser(input *CreateUserRequest) (*CreateUserOutput, error) { 263 req, out := c.CreateUserRequest(input) 264 return out, req.Send() 265} 266 267// CreateUserWithContext is the same as CreateUser with the addition of 268// the ability to pass a context and additional request options. 269// 270// See CreateUser for details on how to use this API operation. 271// 272// The context must be non-nil and will be used for request cancellation. If 273// the context is nil a panic will occur. In the future the SDK may create 274// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 275// for more information on using Contexts. 276func (c *MQ) CreateUserWithContext(ctx aws.Context, input *CreateUserRequest, opts ...request.Option) (*CreateUserOutput, error) { 277 req, out := c.CreateUserRequest(input) 278 req.SetContext(ctx) 279 req.ApplyOptions(opts...) 280 return out, req.Send() 281} 282 283const opDeleteBroker = "DeleteBroker" 284 285// DeleteBrokerRequest generates a "aws/request.Request" representing the 286// client's request for the DeleteBroker operation. The "output" return 287// value will be populated with the request's response once the request complets 288// successfuly. 289// 290// Use "Send" method on the returned Request to send the API call to the service. 291// the "output" return value is not valid until after Send returns without error. 292// 293// See DeleteBroker for more information on using the DeleteBroker 294// API call, and error handling. 295// 296// This method is useful when you want to inject custom logic or configuration 297// into the SDK's request lifecycle. Such as custom headers, or retry logic. 298// 299// 300// // Example sending a request using the DeleteBrokerRequest method. 301// req, resp := client.DeleteBrokerRequest(params) 302// 303// err := req.Send() 304// if err == nil { // resp is now filled 305// fmt.Println(resp) 306// } 307// 308// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBroker 309func (c *MQ) DeleteBrokerRequest(input *DeleteBrokerInput) (req *request.Request, output *DeleteBrokerResponse) { 310 op := &request.Operation{ 311 Name: opDeleteBroker, 312 HTTPMethod: "DELETE", 313 HTTPPath: "/v1/brokers/{broker-id}", 314 } 315 316 if input == nil { 317 input = &DeleteBrokerInput{} 318 } 319 320 output = &DeleteBrokerResponse{} 321 req = c.newRequest(op, input, output) 322 return 323} 324 325// DeleteBroker API operation for AmazonMQ. 326// 327// Deletes a broker. Note: This API is asynchronous. 328// 329// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 330// with awserr.Error's Code and Message methods to get detailed information about 331// the error. 332// 333// See the AWS API reference guide for AmazonMQ's 334// API operation DeleteBroker for usage and error information. 335// 336// Returned Error Codes: 337// * ErrCodeNotFoundException "NotFoundException" 338// Returns information about an error. 339// 340// * ErrCodeBadRequestException "BadRequestException" 341// Returns information about an error. 342// 343// * ErrCodeInternalServerErrorException "InternalServerErrorException" 344// Returns information about an error. 345// 346// * ErrCodeForbiddenException "ForbiddenException" 347// Returns information about an error. 348// 349// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBroker 350func (c *MQ) DeleteBroker(input *DeleteBrokerInput) (*DeleteBrokerResponse, error) { 351 req, out := c.DeleteBrokerRequest(input) 352 return out, req.Send() 353} 354 355// DeleteBrokerWithContext is the same as DeleteBroker with the addition of 356// the ability to pass a context and additional request options. 357// 358// See DeleteBroker for details on how to use this API operation. 359// 360// The context must be non-nil and will be used for request cancellation. If 361// the context is nil a panic will occur. In the future the SDK may create 362// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 363// for more information on using Contexts. 364func (c *MQ) DeleteBrokerWithContext(ctx aws.Context, input *DeleteBrokerInput, opts ...request.Option) (*DeleteBrokerResponse, error) { 365 req, out := c.DeleteBrokerRequest(input) 366 req.SetContext(ctx) 367 req.ApplyOptions(opts...) 368 return out, req.Send() 369} 370 371const opDeleteUser = "DeleteUser" 372 373// DeleteUserRequest generates a "aws/request.Request" representing the 374// client's request for the DeleteUser operation. The "output" return 375// value will be populated with the request's response once the request complets 376// successfuly. 377// 378// Use "Send" method on the returned Request to send the API call to the service. 379// the "output" return value is not valid until after Send returns without error. 380// 381// See DeleteUser for more information on using the DeleteUser 382// API call, and error handling. 383// 384// This method is useful when you want to inject custom logic or configuration 385// into the SDK's request lifecycle. Such as custom headers, or retry logic. 386// 387// 388// // Example sending a request using the DeleteUserRequest method. 389// req, resp := client.DeleteUserRequest(params) 390// 391// err := req.Send() 392// if err == nil { // resp is now filled 393// fmt.Println(resp) 394// } 395// 396// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUser 397func (c *MQ) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { 398 op := &request.Operation{ 399 Name: opDeleteUser, 400 HTTPMethod: "DELETE", 401 HTTPPath: "/v1/brokers/{broker-id}/users/{username}", 402 } 403 404 if input == nil { 405 input = &DeleteUserInput{} 406 } 407 408 output = &DeleteUserOutput{} 409 req = c.newRequest(op, input, output) 410 return 411} 412 413// DeleteUser API operation for AmazonMQ. 414// 415// Deletes an ActiveMQ user. 416// 417// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 418// with awserr.Error's Code and Message methods to get detailed information about 419// the error. 420// 421// See the AWS API reference guide for AmazonMQ's 422// API operation DeleteUser for usage and error information. 423// 424// Returned Error Codes: 425// * ErrCodeNotFoundException "NotFoundException" 426// Returns information about an error. 427// 428// * ErrCodeBadRequestException "BadRequestException" 429// Returns information about an error. 430// 431// * ErrCodeInternalServerErrorException "InternalServerErrorException" 432// Returns information about an error. 433// 434// * ErrCodeForbiddenException "ForbiddenException" 435// Returns information about an error. 436// 437// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUser 438func (c *MQ) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { 439 req, out := c.DeleteUserRequest(input) 440 return out, req.Send() 441} 442 443// DeleteUserWithContext is the same as DeleteUser with the addition of 444// the ability to pass a context and additional request options. 445// 446// See DeleteUser for details on how to use this API operation. 447// 448// The context must be non-nil and will be used for request cancellation. If 449// the context is nil a panic will occur. In the future the SDK may create 450// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 451// for more information on using Contexts. 452func (c *MQ) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) { 453 req, out := c.DeleteUserRequest(input) 454 req.SetContext(ctx) 455 req.ApplyOptions(opts...) 456 return out, req.Send() 457} 458 459const opDescribeBroker = "DescribeBroker" 460 461// DescribeBrokerRequest generates a "aws/request.Request" representing the 462// client's request for the DescribeBroker operation. The "output" return 463// value will be populated with the request's response once the request complets 464// successfuly. 465// 466// Use "Send" method on the returned Request to send the API call to the service. 467// the "output" return value is not valid until after Send returns without error. 468// 469// See DescribeBroker for more information on using the DescribeBroker 470// API call, and error handling. 471// 472// This method is useful when you want to inject custom logic or configuration 473// into the SDK's request lifecycle. Such as custom headers, or retry logic. 474// 475// 476// // Example sending a request using the DescribeBrokerRequest method. 477// req, resp := client.DescribeBrokerRequest(params) 478// 479// err := req.Send() 480// if err == nil { // resp is now filled 481// fmt.Println(resp) 482// } 483// 484// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBroker 485func (c *MQ) DescribeBrokerRequest(input *DescribeBrokerInput) (req *request.Request, output *DescribeBrokerResponse) { 486 op := &request.Operation{ 487 Name: opDescribeBroker, 488 HTTPMethod: "GET", 489 HTTPPath: "/v1/brokers/{broker-id}", 490 } 491 492 if input == nil { 493 input = &DescribeBrokerInput{} 494 } 495 496 output = &DescribeBrokerResponse{} 497 req = c.newRequest(op, input, output) 498 return 499} 500 501// DescribeBroker API operation for AmazonMQ. 502// 503// Returns information about the specified broker. 504// 505// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 506// with awserr.Error's Code and Message methods to get detailed information about 507// the error. 508// 509// See the AWS API reference guide for AmazonMQ's 510// API operation DescribeBroker for usage and error information. 511// 512// Returned Error Codes: 513// * ErrCodeNotFoundException "NotFoundException" 514// Returns information about an error. 515// 516// * ErrCodeBadRequestException "BadRequestException" 517// Returns information about an error. 518// 519// * ErrCodeInternalServerErrorException "InternalServerErrorException" 520// Returns information about an error. 521// 522// * ErrCodeForbiddenException "ForbiddenException" 523// Returns information about an error. 524// 525// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBroker 526func (c *MQ) DescribeBroker(input *DescribeBrokerInput) (*DescribeBrokerResponse, error) { 527 req, out := c.DescribeBrokerRequest(input) 528 return out, req.Send() 529} 530 531// DescribeBrokerWithContext is the same as DescribeBroker with the addition of 532// the ability to pass a context and additional request options. 533// 534// See DescribeBroker for details on how to use this API operation. 535// 536// The context must be non-nil and will be used for request cancellation. If 537// the context is nil a panic will occur. In the future the SDK may create 538// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 539// for more information on using Contexts. 540func (c *MQ) DescribeBrokerWithContext(ctx aws.Context, input *DescribeBrokerInput, opts ...request.Option) (*DescribeBrokerResponse, error) { 541 req, out := c.DescribeBrokerRequest(input) 542 req.SetContext(ctx) 543 req.ApplyOptions(opts...) 544 return out, req.Send() 545} 546 547const opDescribeConfiguration = "DescribeConfiguration" 548 549// DescribeConfigurationRequest generates a "aws/request.Request" representing the 550// client's request for the DescribeConfiguration operation. The "output" return 551// value will be populated with the request's response once the request complets 552// successfuly. 553// 554// Use "Send" method on the returned Request to send the API call to the service. 555// the "output" return value is not valid until after Send returns without error. 556// 557// See DescribeConfiguration for more information on using the DescribeConfiguration 558// API call, and error handling. 559// 560// This method is useful when you want to inject custom logic or configuration 561// into the SDK's request lifecycle. Such as custom headers, or retry logic. 562// 563// 564// // Example sending a request using the DescribeConfigurationRequest method. 565// req, resp := client.DescribeConfigurationRequest(params) 566// 567// err := req.Send() 568// if err == nil { // resp is now filled 569// fmt.Println(resp) 570// } 571// 572// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfiguration 573func (c *MQ) DescribeConfigurationRequest(input *DescribeConfigurationInput) (req *request.Request, output *DescribeConfigurationOutput) { 574 op := &request.Operation{ 575 Name: opDescribeConfiguration, 576 HTTPMethod: "GET", 577 HTTPPath: "/v1/configurations/{configuration-id}", 578 } 579 580 if input == nil { 581 input = &DescribeConfigurationInput{} 582 } 583 584 output = &DescribeConfigurationOutput{} 585 req = c.newRequest(op, input, output) 586 return 587} 588 589// DescribeConfiguration API operation for AmazonMQ. 590// 591// Returns information about the specified configuration. 592// 593// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 594// with awserr.Error's Code and Message methods to get detailed information about 595// the error. 596// 597// See the AWS API reference guide for AmazonMQ's 598// API operation DescribeConfiguration for usage and error information. 599// 600// Returned Error Codes: 601// * ErrCodeNotFoundException "NotFoundException" 602// Returns information about an error. 603// 604// * ErrCodeBadRequestException "BadRequestException" 605// Returns information about an error. 606// 607// * ErrCodeInternalServerErrorException "InternalServerErrorException" 608// Returns information about an error. 609// 610// * ErrCodeForbiddenException "ForbiddenException" 611// Returns information about an error. 612// 613// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfiguration 614func (c *MQ) DescribeConfiguration(input *DescribeConfigurationInput) (*DescribeConfigurationOutput, error) { 615 req, out := c.DescribeConfigurationRequest(input) 616 return out, req.Send() 617} 618 619// DescribeConfigurationWithContext is the same as DescribeConfiguration with the addition of 620// the ability to pass a context and additional request options. 621// 622// See DescribeConfiguration for details on how to use this API operation. 623// 624// The context must be non-nil and will be used for request cancellation. If 625// the context is nil a panic will occur. In the future the SDK may create 626// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 627// for more information on using Contexts. 628func (c *MQ) DescribeConfigurationWithContext(ctx aws.Context, input *DescribeConfigurationInput, opts ...request.Option) (*DescribeConfigurationOutput, error) { 629 req, out := c.DescribeConfigurationRequest(input) 630 req.SetContext(ctx) 631 req.ApplyOptions(opts...) 632 return out, req.Send() 633} 634 635const opDescribeConfigurationRevision = "DescribeConfigurationRevision" 636 637// DescribeConfigurationRevisionRequest generates a "aws/request.Request" representing the 638// client's request for the DescribeConfigurationRevision operation. The "output" return 639// value will be populated with the request's response once the request complets 640// successfuly. 641// 642// Use "Send" method on the returned Request to send the API call to the service. 643// the "output" return value is not valid until after Send returns without error. 644// 645// See DescribeConfigurationRevision for more information on using the DescribeConfigurationRevision 646// API call, and error handling. 647// 648// This method is useful when you want to inject custom logic or configuration 649// into the SDK's request lifecycle. Such as custom headers, or retry logic. 650// 651// 652// // Example sending a request using the DescribeConfigurationRevisionRequest method. 653// req, resp := client.DescribeConfigurationRevisionRequest(params) 654// 655// err := req.Send() 656// if err == nil { // resp is now filled 657// fmt.Println(resp) 658// } 659// 660// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevision 661func (c *MQ) DescribeConfigurationRevisionRequest(input *DescribeConfigurationRevisionInput) (req *request.Request, output *DescribeConfigurationRevisionResponse) { 662 op := &request.Operation{ 663 Name: opDescribeConfigurationRevision, 664 HTTPMethod: "GET", 665 HTTPPath: "/v1/configurations/{configuration-id}/revisions/{configuration-revision}", 666 } 667 668 if input == nil { 669 input = &DescribeConfigurationRevisionInput{} 670 } 671 672 output = &DescribeConfigurationRevisionResponse{} 673 req = c.newRequest(op, input, output) 674 return 675} 676 677// DescribeConfigurationRevision API operation for AmazonMQ. 678// 679// Returns the specified configuration revision for the specified configuration. 680// 681// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 682// with awserr.Error's Code and Message methods to get detailed information about 683// the error. 684// 685// See the AWS API reference guide for AmazonMQ's 686// API operation DescribeConfigurationRevision for usage and error information. 687// 688// Returned Error Codes: 689// * ErrCodeNotFoundException "NotFoundException" 690// Returns information about an error. 691// 692// * ErrCodeBadRequestException "BadRequestException" 693// Returns information about an error. 694// 695// * ErrCodeInternalServerErrorException "InternalServerErrorException" 696// Returns information about an error. 697// 698// * ErrCodeForbiddenException "ForbiddenException" 699// Returns information about an error. 700// 701// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevision 702func (c *MQ) DescribeConfigurationRevision(input *DescribeConfigurationRevisionInput) (*DescribeConfigurationRevisionResponse, error) { 703 req, out := c.DescribeConfigurationRevisionRequest(input) 704 return out, req.Send() 705} 706 707// DescribeConfigurationRevisionWithContext is the same as DescribeConfigurationRevision with the addition of 708// the ability to pass a context and additional request options. 709// 710// See DescribeConfigurationRevision for details on how to use this API operation. 711// 712// The context must be non-nil and will be used for request cancellation. If 713// the context is nil a panic will occur. In the future the SDK may create 714// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 715// for more information on using Contexts. 716func (c *MQ) DescribeConfigurationRevisionWithContext(ctx aws.Context, input *DescribeConfigurationRevisionInput, opts ...request.Option) (*DescribeConfigurationRevisionResponse, error) { 717 req, out := c.DescribeConfigurationRevisionRequest(input) 718 req.SetContext(ctx) 719 req.ApplyOptions(opts...) 720 return out, req.Send() 721} 722 723const opDescribeUser = "DescribeUser" 724 725// DescribeUserRequest generates a "aws/request.Request" representing the 726// client's request for the DescribeUser operation. The "output" return 727// value will be populated with the request's response once the request complets 728// successfuly. 729// 730// Use "Send" method on the returned Request to send the API call to the service. 731// the "output" return value is not valid until after Send returns without error. 732// 733// See DescribeUser for more information on using the DescribeUser 734// API call, and error handling. 735// 736// This method is useful when you want to inject custom logic or configuration 737// into the SDK's request lifecycle. Such as custom headers, or retry logic. 738// 739// 740// // Example sending a request using the DescribeUserRequest method. 741// req, resp := client.DescribeUserRequest(params) 742// 743// err := req.Send() 744// if err == nil { // resp is now filled 745// fmt.Println(resp) 746// } 747// 748// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUser 749func (c *MQ) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserResponse) { 750 op := &request.Operation{ 751 Name: opDescribeUser, 752 HTTPMethod: "GET", 753 HTTPPath: "/v1/brokers/{broker-id}/users/{username}", 754 } 755 756 if input == nil { 757 input = &DescribeUserInput{} 758 } 759 760 output = &DescribeUserResponse{} 761 req = c.newRequest(op, input, output) 762 return 763} 764 765// DescribeUser API operation for AmazonMQ. 766// 767// Returns information about an ActiveMQ user. 768// 769// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 770// with awserr.Error's Code and Message methods to get detailed information about 771// the error. 772// 773// See the AWS API reference guide for AmazonMQ's 774// API operation DescribeUser for usage and error information. 775// 776// Returned Error Codes: 777// * ErrCodeNotFoundException "NotFoundException" 778// Returns information about an error. 779// 780// * ErrCodeBadRequestException "BadRequestException" 781// Returns information about an error. 782// 783// * ErrCodeInternalServerErrorException "InternalServerErrorException" 784// Returns information about an error. 785// 786// * ErrCodeForbiddenException "ForbiddenException" 787// Returns information about an error. 788// 789// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUser 790func (c *MQ) DescribeUser(input *DescribeUserInput) (*DescribeUserResponse, error) { 791 req, out := c.DescribeUserRequest(input) 792 return out, req.Send() 793} 794 795// DescribeUserWithContext is the same as DescribeUser with the addition of 796// the ability to pass a context and additional request options. 797// 798// See DescribeUser for details on how to use this API operation. 799// 800// The context must be non-nil and will be used for request cancellation. If 801// the context is nil a panic will occur. In the future the SDK may create 802// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 803// for more information on using Contexts. 804func (c *MQ) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserResponse, error) { 805 req, out := c.DescribeUserRequest(input) 806 req.SetContext(ctx) 807 req.ApplyOptions(opts...) 808 return out, req.Send() 809} 810 811const opListBrokers = "ListBrokers" 812 813// ListBrokersRequest generates a "aws/request.Request" representing the 814// client's request for the ListBrokers operation. The "output" return 815// value will be populated with the request's response once the request complets 816// successfuly. 817// 818// Use "Send" method on the returned Request to send the API call to the service. 819// the "output" return value is not valid until after Send returns without error. 820// 821// See ListBrokers for more information on using the ListBrokers 822// API call, and error handling. 823// 824// This method is useful when you want to inject custom logic or configuration 825// into the SDK's request lifecycle. Such as custom headers, or retry logic. 826// 827// 828// // Example sending a request using the ListBrokersRequest method. 829// req, resp := client.ListBrokersRequest(params) 830// 831// err := req.Send() 832// if err == nil { // resp is now filled 833// fmt.Println(resp) 834// } 835// 836// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokers 837func (c *MQ) ListBrokersRequest(input *ListBrokersInput) (req *request.Request, output *ListBrokersResponse) { 838 op := &request.Operation{ 839 Name: opListBrokers, 840 HTTPMethod: "GET", 841 HTTPPath: "/v1/brokers", 842 } 843 844 if input == nil { 845 input = &ListBrokersInput{} 846 } 847 848 output = &ListBrokersResponse{} 849 req = c.newRequest(op, input, output) 850 return 851} 852 853// ListBrokers API operation for AmazonMQ. 854// 855// Returns a list of all brokers. 856// 857// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 858// with awserr.Error's Code and Message methods to get detailed information about 859// the error. 860// 861// See the AWS API reference guide for AmazonMQ's 862// API operation ListBrokers for usage and error information. 863// 864// Returned Error Codes: 865// * ErrCodeBadRequestException "BadRequestException" 866// Returns information about an error. 867// 868// * ErrCodeInternalServerErrorException "InternalServerErrorException" 869// Returns information about an error. 870// 871// * ErrCodeForbiddenException "ForbiddenException" 872// Returns information about an error. 873// 874// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokers 875func (c *MQ) ListBrokers(input *ListBrokersInput) (*ListBrokersResponse, error) { 876 req, out := c.ListBrokersRequest(input) 877 return out, req.Send() 878} 879 880// ListBrokersWithContext is the same as ListBrokers with the addition of 881// the ability to pass a context and additional request options. 882// 883// See ListBrokers for details on how to use this API operation. 884// 885// The context must be non-nil and will be used for request cancellation. If 886// the context is nil a panic will occur. In the future the SDK may create 887// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 888// for more information on using Contexts. 889func (c *MQ) ListBrokersWithContext(ctx aws.Context, input *ListBrokersInput, opts ...request.Option) (*ListBrokersResponse, error) { 890 req, out := c.ListBrokersRequest(input) 891 req.SetContext(ctx) 892 req.ApplyOptions(opts...) 893 return out, req.Send() 894} 895 896const opListConfigurationRevisions = "ListConfigurationRevisions" 897 898// ListConfigurationRevisionsRequest generates a "aws/request.Request" representing the 899// client's request for the ListConfigurationRevisions operation. The "output" return 900// value will be populated with the request's response once the request complets 901// successfuly. 902// 903// Use "Send" method on the returned Request to send the API call to the service. 904// the "output" return value is not valid until after Send returns without error. 905// 906// See ListConfigurationRevisions for more information on using the ListConfigurationRevisions 907// API call, and error handling. 908// 909// This method is useful when you want to inject custom logic or configuration 910// into the SDK's request lifecycle. Such as custom headers, or retry logic. 911// 912// 913// // Example sending a request using the ListConfigurationRevisionsRequest method. 914// req, resp := client.ListConfigurationRevisionsRequest(params) 915// 916// err := req.Send() 917// if err == nil { // resp is now filled 918// fmt.Println(resp) 919// } 920// 921// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisions 922func (c *MQ) ListConfigurationRevisionsRequest(input *ListConfigurationRevisionsInput) (req *request.Request, output *ListConfigurationRevisionsResponse) { 923 op := &request.Operation{ 924 Name: opListConfigurationRevisions, 925 HTTPMethod: "GET", 926 HTTPPath: "/v1/configurations/{configuration-id}/revisions", 927 } 928 929 if input == nil { 930 input = &ListConfigurationRevisionsInput{} 931 } 932 933 output = &ListConfigurationRevisionsResponse{} 934 req = c.newRequest(op, input, output) 935 return 936} 937 938// ListConfigurationRevisions API operation for AmazonMQ. 939// 940// Returns a list of all revisions for the specified configuration. 941// 942// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 943// with awserr.Error's Code and Message methods to get detailed information about 944// the error. 945// 946// See the AWS API reference guide for AmazonMQ's 947// API operation ListConfigurationRevisions for usage and error information. 948// 949// Returned Error Codes: 950// * ErrCodeNotFoundException "NotFoundException" 951// Returns information about an error. 952// 953// * ErrCodeBadRequestException "BadRequestException" 954// Returns information about an error. 955// 956// * ErrCodeInternalServerErrorException "InternalServerErrorException" 957// Returns information about an error. 958// 959// * ErrCodeForbiddenException "ForbiddenException" 960// Returns information about an error. 961// 962// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisions 963func (c *MQ) ListConfigurationRevisions(input *ListConfigurationRevisionsInput) (*ListConfigurationRevisionsResponse, error) { 964 req, out := c.ListConfigurationRevisionsRequest(input) 965 return out, req.Send() 966} 967 968// ListConfigurationRevisionsWithContext is the same as ListConfigurationRevisions with the addition of 969// the ability to pass a context and additional request options. 970// 971// See ListConfigurationRevisions for details on how to use this API operation. 972// 973// The context must be non-nil and will be used for request cancellation. If 974// the context is nil a panic will occur. In the future the SDK may create 975// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 976// for more information on using Contexts. 977func (c *MQ) ListConfigurationRevisionsWithContext(ctx aws.Context, input *ListConfigurationRevisionsInput, opts ...request.Option) (*ListConfigurationRevisionsResponse, error) { 978 req, out := c.ListConfigurationRevisionsRequest(input) 979 req.SetContext(ctx) 980 req.ApplyOptions(opts...) 981 return out, req.Send() 982} 983 984const opListConfigurations = "ListConfigurations" 985 986// ListConfigurationsRequest generates a "aws/request.Request" representing the 987// client's request for the ListConfigurations operation. The "output" return 988// value will be populated with the request's response once the request complets 989// successfuly. 990// 991// Use "Send" method on the returned Request to send the API call to the service. 992// the "output" return value is not valid until after Send returns without error. 993// 994// See ListConfigurations for more information on using the ListConfigurations 995// API call, and error handling. 996// 997// This method is useful when you want to inject custom logic or configuration 998// into the SDK's request lifecycle. Such as custom headers, or retry logic. 999// 1000// 1001// // Example sending a request using the ListConfigurationsRequest method. 1002// req, resp := client.ListConfigurationsRequest(params) 1003// 1004// err := req.Send() 1005// if err == nil { // resp is now filled 1006// fmt.Println(resp) 1007// } 1008// 1009// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurations 1010func (c *MQ) ListConfigurationsRequest(input *ListConfigurationsInput) (req *request.Request, output *ListConfigurationsResponse) { 1011 op := &request.Operation{ 1012 Name: opListConfigurations, 1013 HTTPMethod: "GET", 1014 HTTPPath: "/v1/configurations", 1015 } 1016 1017 if input == nil { 1018 input = &ListConfigurationsInput{} 1019 } 1020 1021 output = &ListConfigurationsResponse{} 1022 req = c.newRequest(op, input, output) 1023 return 1024} 1025 1026// ListConfigurations API operation for AmazonMQ. 1027// 1028// Returns a list of all configurations. 1029// 1030// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1031// with awserr.Error's Code and Message methods to get detailed information about 1032// the error. 1033// 1034// See the AWS API reference guide for AmazonMQ's 1035// API operation ListConfigurations for usage and error information. 1036// 1037// Returned Error Codes: 1038// * ErrCodeBadRequestException "BadRequestException" 1039// Returns information about an error. 1040// 1041// * ErrCodeInternalServerErrorException "InternalServerErrorException" 1042// Returns information about an error. 1043// 1044// * ErrCodeForbiddenException "ForbiddenException" 1045// Returns information about an error. 1046// 1047// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurations 1048func (c *MQ) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsResponse, error) { 1049 req, out := c.ListConfigurationsRequest(input) 1050 return out, req.Send() 1051} 1052 1053// ListConfigurationsWithContext is the same as ListConfigurations with the addition of 1054// the ability to pass a context and additional request options. 1055// 1056// See ListConfigurations for details on how to use this API operation. 1057// 1058// The context must be non-nil and will be used for request cancellation. If 1059// the context is nil a panic will occur. In the future the SDK may create 1060// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1061// for more information on using Contexts. 1062func (c *MQ) ListConfigurationsWithContext(ctx aws.Context, input *ListConfigurationsInput, opts ...request.Option) (*ListConfigurationsResponse, error) { 1063 req, out := c.ListConfigurationsRequest(input) 1064 req.SetContext(ctx) 1065 req.ApplyOptions(opts...) 1066 return out, req.Send() 1067} 1068 1069const opListUsers = "ListUsers" 1070 1071// ListUsersRequest generates a "aws/request.Request" representing the 1072// client's request for the ListUsers operation. The "output" return 1073// value will be populated with the request's response once the request complets 1074// successfuly. 1075// 1076// Use "Send" method on the returned Request to send the API call to the service. 1077// the "output" return value is not valid until after Send returns without error. 1078// 1079// See ListUsers for more information on using the ListUsers 1080// API call, and error handling. 1081// 1082// This method is useful when you want to inject custom logic or configuration 1083// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1084// 1085// 1086// // Example sending a request using the ListUsersRequest method. 1087// req, resp := client.ListUsersRequest(params) 1088// 1089// err := req.Send() 1090// if err == nil { // resp is now filled 1091// fmt.Println(resp) 1092// } 1093// 1094// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsers 1095func (c *MQ) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersResponse) { 1096 op := &request.Operation{ 1097 Name: opListUsers, 1098 HTTPMethod: "GET", 1099 HTTPPath: "/v1/brokers/{broker-id}/users", 1100 } 1101 1102 if input == nil { 1103 input = &ListUsersInput{} 1104 } 1105 1106 output = &ListUsersResponse{} 1107 req = c.newRequest(op, input, output) 1108 return 1109} 1110 1111// ListUsers API operation for AmazonMQ. 1112// 1113// Returns a list of all ActiveMQ users. 1114// 1115// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1116// with awserr.Error's Code and Message methods to get detailed information about 1117// the error. 1118// 1119// See the AWS API reference guide for AmazonMQ's 1120// API operation ListUsers for usage and error information. 1121// 1122// Returned Error Codes: 1123// * ErrCodeNotFoundException "NotFoundException" 1124// Returns information about an error. 1125// 1126// * ErrCodeBadRequestException "BadRequestException" 1127// Returns information about an error. 1128// 1129// * ErrCodeInternalServerErrorException "InternalServerErrorException" 1130// Returns information about an error. 1131// 1132// * ErrCodeForbiddenException "ForbiddenException" 1133// Returns information about an error. 1134// 1135// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsers 1136func (c *MQ) ListUsers(input *ListUsersInput) (*ListUsersResponse, error) { 1137 req, out := c.ListUsersRequest(input) 1138 return out, req.Send() 1139} 1140 1141// ListUsersWithContext is the same as ListUsers with the addition of 1142// the ability to pass a context and additional request options. 1143// 1144// See ListUsers for details on how to use this API operation. 1145// 1146// The context must be non-nil and will be used for request cancellation. If 1147// the context is nil a panic will occur. In the future the SDK may create 1148// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1149// for more information on using Contexts. 1150func (c *MQ) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersResponse, error) { 1151 req, out := c.ListUsersRequest(input) 1152 req.SetContext(ctx) 1153 req.ApplyOptions(opts...) 1154 return out, req.Send() 1155} 1156 1157const opRebootBroker = "RebootBroker" 1158 1159// RebootBrokerRequest generates a "aws/request.Request" representing the 1160// client's request for the RebootBroker operation. The "output" return 1161// value will be populated with the request's response once the request complets 1162// successfuly. 1163// 1164// Use "Send" method on the returned Request to send the API call to the service. 1165// the "output" return value is not valid until after Send returns without error. 1166// 1167// See RebootBroker for more information on using the RebootBroker 1168// API call, and error handling. 1169// 1170// This method is useful when you want to inject custom logic or configuration 1171// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1172// 1173// 1174// // Example sending a request using the RebootBrokerRequest method. 1175// req, resp := client.RebootBrokerRequest(params) 1176// 1177// err := req.Send() 1178// if err == nil { // resp is now filled 1179// fmt.Println(resp) 1180// } 1181// 1182// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBroker 1183func (c *MQ) RebootBrokerRequest(input *RebootBrokerInput) (req *request.Request, output *RebootBrokerOutput) { 1184 op := &request.Operation{ 1185 Name: opRebootBroker, 1186 HTTPMethod: "POST", 1187 HTTPPath: "/v1/brokers/{broker-id}/reboot", 1188 } 1189 1190 if input == nil { 1191 input = &RebootBrokerInput{} 1192 } 1193 1194 output = &RebootBrokerOutput{} 1195 req = c.newRequest(op, input, output) 1196 return 1197} 1198 1199// RebootBroker API operation for AmazonMQ. 1200// 1201// Reboots a broker. Note: This API is asynchronous. 1202// 1203// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1204// with awserr.Error's Code and Message methods to get detailed information about 1205// the error. 1206// 1207// See the AWS API reference guide for AmazonMQ's 1208// API operation RebootBroker for usage and error information. 1209// 1210// Returned Error Codes: 1211// * ErrCodeNotFoundException "NotFoundException" 1212// Returns information about an error. 1213// 1214// * ErrCodeBadRequestException "BadRequestException" 1215// Returns information about an error. 1216// 1217// * ErrCodeInternalServerErrorException "InternalServerErrorException" 1218// Returns information about an error. 1219// 1220// * ErrCodeForbiddenException "ForbiddenException" 1221// Returns information about an error. 1222// 1223// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBroker 1224func (c *MQ) RebootBroker(input *RebootBrokerInput) (*RebootBrokerOutput, error) { 1225 req, out := c.RebootBrokerRequest(input) 1226 return out, req.Send() 1227} 1228 1229// RebootBrokerWithContext is the same as RebootBroker with the addition of 1230// the ability to pass a context and additional request options. 1231// 1232// See RebootBroker for details on how to use this API operation. 1233// 1234// The context must be non-nil and will be used for request cancellation. If 1235// the context is nil a panic will occur. In the future the SDK may create 1236// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1237// for more information on using Contexts. 1238func (c *MQ) RebootBrokerWithContext(ctx aws.Context, input *RebootBrokerInput, opts ...request.Option) (*RebootBrokerOutput, error) { 1239 req, out := c.RebootBrokerRequest(input) 1240 req.SetContext(ctx) 1241 req.ApplyOptions(opts...) 1242 return out, req.Send() 1243} 1244 1245const opUpdateBroker = "UpdateBroker" 1246 1247// UpdateBrokerRequest generates a "aws/request.Request" representing the 1248// client's request for the UpdateBroker operation. The "output" return 1249// value will be populated with the request's response once the request complets 1250// successfuly. 1251// 1252// Use "Send" method on the returned Request to send the API call to the service. 1253// the "output" return value is not valid until after Send returns without error. 1254// 1255// See UpdateBroker for more information on using the UpdateBroker 1256// API call, and error handling. 1257// 1258// This method is useful when you want to inject custom logic or configuration 1259// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1260// 1261// 1262// // Example sending a request using the UpdateBrokerRequest method. 1263// req, resp := client.UpdateBrokerRequest(params) 1264// 1265// err := req.Send() 1266// if err == nil { // resp is now filled 1267// fmt.Println(resp) 1268// } 1269// 1270// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBroker 1271func (c *MQ) UpdateBrokerRequest(input *UpdateBrokerRequest) (req *request.Request, output *UpdateBrokerResponse) { 1272 op := &request.Operation{ 1273 Name: opUpdateBroker, 1274 HTTPMethod: "PUT", 1275 HTTPPath: "/v1/brokers/{broker-id}", 1276 } 1277 1278 if input == nil { 1279 input = &UpdateBrokerRequest{} 1280 } 1281 1282 output = &UpdateBrokerResponse{} 1283 req = c.newRequest(op, input, output) 1284 return 1285} 1286 1287// UpdateBroker API operation for AmazonMQ. 1288// 1289// Adds a pending configuration change to a broker. 1290// 1291// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1292// with awserr.Error's Code and Message methods to get detailed information about 1293// the error. 1294// 1295// See the AWS API reference guide for AmazonMQ's 1296// API operation UpdateBroker for usage and error information. 1297// 1298// Returned Error Codes: 1299// * ErrCodeNotFoundException "NotFoundException" 1300// Returns information about an error. 1301// 1302// * ErrCodeBadRequestException "BadRequestException" 1303// Returns information about an error. 1304// 1305// * ErrCodeInternalServerErrorException "InternalServerErrorException" 1306// Returns information about an error. 1307// 1308// * ErrCodeForbiddenException "ForbiddenException" 1309// Returns information about an error. 1310// 1311// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBroker 1312func (c *MQ) UpdateBroker(input *UpdateBrokerRequest) (*UpdateBrokerResponse, error) { 1313 req, out := c.UpdateBrokerRequest(input) 1314 return out, req.Send() 1315} 1316 1317// UpdateBrokerWithContext is the same as UpdateBroker with the addition of 1318// the ability to pass a context and additional request options. 1319// 1320// See UpdateBroker for details on how to use this API operation. 1321// 1322// The context must be non-nil and will be used for request cancellation. If 1323// the context is nil a panic will occur. In the future the SDK may create 1324// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1325// for more information on using Contexts. 1326func (c *MQ) UpdateBrokerWithContext(ctx aws.Context, input *UpdateBrokerRequest, opts ...request.Option) (*UpdateBrokerResponse, error) { 1327 req, out := c.UpdateBrokerRequest(input) 1328 req.SetContext(ctx) 1329 req.ApplyOptions(opts...) 1330 return out, req.Send() 1331} 1332 1333const opUpdateConfiguration = "UpdateConfiguration" 1334 1335// UpdateConfigurationRequest generates a "aws/request.Request" representing the 1336// client's request for the UpdateConfiguration operation. The "output" return 1337// value will be populated with the request's response once the request complets 1338// successfuly. 1339// 1340// Use "Send" method on the returned Request to send the API call to the service. 1341// the "output" return value is not valid until after Send returns without error. 1342// 1343// See UpdateConfiguration for more information on using the UpdateConfiguration 1344// API call, and error handling. 1345// 1346// This method is useful when you want to inject custom logic or configuration 1347// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1348// 1349// 1350// // Example sending a request using the UpdateConfigurationRequest method. 1351// req, resp := client.UpdateConfigurationRequest(params) 1352// 1353// err := req.Send() 1354// if err == nil { // resp is now filled 1355// fmt.Println(resp) 1356// } 1357// 1358// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfiguration 1359func (c *MQ) UpdateConfigurationRequest(input *UpdateConfigurationRequest) (req *request.Request, output *UpdateConfigurationResponse) { 1360 op := &request.Operation{ 1361 Name: opUpdateConfiguration, 1362 HTTPMethod: "PUT", 1363 HTTPPath: "/v1/configurations/{configuration-id}", 1364 } 1365 1366 if input == nil { 1367 input = &UpdateConfigurationRequest{} 1368 } 1369 1370 output = &UpdateConfigurationResponse{} 1371 req = c.newRequest(op, input, output) 1372 return 1373} 1374 1375// UpdateConfiguration API operation for AmazonMQ. 1376// 1377// Updates the specified configuration. 1378// 1379// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1380// with awserr.Error's Code and Message methods to get detailed information about 1381// the error. 1382// 1383// See the AWS API reference guide for AmazonMQ's 1384// API operation UpdateConfiguration for usage and error information. 1385// 1386// Returned Error Codes: 1387// * ErrCodeNotFoundException "NotFoundException" 1388// Returns information about an error. 1389// 1390// * ErrCodeBadRequestException "BadRequestException" 1391// Returns information about an error. 1392// 1393// * ErrCodeInternalServerErrorException "InternalServerErrorException" 1394// Returns information about an error. 1395// 1396// * ErrCodeConflictException "ConflictException" 1397// Returns information about an error. 1398// 1399// * ErrCodeForbiddenException "ForbiddenException" 1400// Returns information about an error. 1401// 1402// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfiguration 1403func (c *MQ) UpdateConfiguration(input *UpdateConfigurationRequest) (*UpdateConfigurationResponse, error) { 1404 req, out := c.UpdateConfigurationRequest(input) 1405 return out, req.Send() 1406} 1407 1408// UpdateConfigurationWithContext is the same as UpdateConfiguration with the addition of 1409// the ability to pass a context and additional request options. 1410// 1411// See UpdateConfiguration for details on how to use this API operation. 1412// 1413// The context must be non-nil and will be used for request cancellation. If 1414// the context is nil a panic will occur. In the future the SDK may create 1415// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1416// for more information on using Contexts. 1417func (c *MQ) UpdateConfigurationWithContext(ctx aws.Context, input *UpdateConfigurationRequest, opts ...request.Option) (*UpdateConfigurationResponse, error) { 1418 req, out := c.UpdateConfigurationRequest(input) 1419 req.SetContext(ctx) 1420 req.ApplyOptions(opts...) 1421 return out, req.Send() 1422} 1423 1424const opUpdateUser = "UpdateUser" 1425 1426// UpdateUserRequest generates a "aws/request.Request" representing the 1427// client's request for the UpdateUser operation. The "output" return 1428// value will be populated with the request's response once the request complets 1429// successfuly. 1430// 1431// Use "Send" method on the returned Request to send the API call to the service. 1432// the "output" return value is not valid until after Send returns without error. 1433// 1434// See UpdateUser for more information on using the UpdateUser 1435// API call, and error handling. 1436// 1437// This method is useful when you want to inject custom logic or configuration 1438// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1439// 1440// 1441// // Example sending a request using the UpdateUserRequest method. 1442// req, resp := client.UpdateUserRequest(params) 1443// 1444// err := req.Send() 1445// if err == nil { // resp is now filled 1446// fmt.Println(resp) 1447// } 1448// 1449// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUser 1450func (c *MQ) UpdateUserRequest(input *UpdateUserRequest) (req *request.Request, output *UpdateUserOutput) { 1451 op := &request.Operation{ 1452 Name: opUpdateUser, 1453 HTTPMethod: "PUT", 1454 HTTPPath: "/v1/brokers/{broker-id}/users/{username}", 1455 } 1456 1457 if input == nil { 1458 input = &UpdateUserRequest{} 1459 } 1460 1461 output = &UpdateUserOutput{} 1462 req = c.newRequest(op, input, output) 1463 return 1464} 1465 1466// UpdateUser API operation for AmazonMQ. 1467// 1468// Updates the information for an ActiveMQ user. 1469// 1470// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1471// with awserr.Error's Code and Message methods to get detailed information about 1472// the error. 1473// 1474// See the AWS API reference guide for AmazonMQ's 1475// API operation UpdateUser for usage and error information. 1476// 1477// Returned Error Codes: 1478// * ErrCodeNotFoundException "NotFoundException" 1479// Returns information about an error. 1480// 1481// * ErrCodeBadRequestException "BadRequestException" 1482// Returns information about an error. 1483// 1484// * ErrCodeInternalServerErrorException "InternalServerErrorException" 1485// Returns information about an error. 1486// 1487// * ErrCodeConflictException "ConflictException" 1488// Returns information about an error. 1489// 1490// * ErrCodeForbiddenException "ForbiddenException" 1491// Returns information about an error. 1492// 1493// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUser 1494func (c *MQ) UpdateUser(input *UpdateUserRequest) (*UpdateUserOutput, error) { 1495 req, out := c.UpdateUserRequest(input) 1496 return out, req.Send() 1497} 1498 1499// UpdateUserWithContext is the same as UpdateUser with the addition of 1500// the ability to pass a context and additional request options. 1501// 1502// See UpdateUser for details on how to use this API operation. 1503// 1504// The context must be non-nil and will be used for request cancellation. If 1505// the context is nil a panic will occur. In the future the SDK may create 1506// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1507// for more information on using Contexts. 1508func (c *MQ) UpdateUserWithContext(ctx aws.Context, input *UpdateUserRequest, opts ...request.Option) (*UpdateUserOutput, error) { 1509 req, out := c.UpdateUserRequest(input) 1510 req.SetContext(ctx) 1511 req.ApplyOptions(opts...) 1512 return out, req.Send() 1513} 1514 1515// Returns information about all brokers. 1516// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/BrokerInstance 1517type BrokerInstance struct { 1518 _ struct{} `type:"structure"` 1519 1520 // The URL of the broker's ActiveMQ Web Console. 1521 ConsoleURL *string `locationName:"consoleURL" type:"string"` 1522 1523 // The broker's wire-level protocol endpoints. 1524 Endpoints []*string `locationName:"endpoints" type:"list"` 1525} 1526 1527// String returns the string representation 1528func (s BrokerInstance) String() string { 1529 return awsutil.Prettify(s) 1530} 1531 1532// GoString returns the string representation 1533func (s BrokerInstance) GoString() string { 1534 return s.String() 1535} 1536 1537// SetConsoleURL sets the ConsoleURL field's value. 1538func (s *BrokerInstance) SetConsoleURL(v string) *BrokerInstance { 1539 s.ConsoleURL = &v 1540 return s 1541} 1542 1543// SetEndpoints sets the Endpoints field's value. 1544func (s *BrokerInstance) SetEndpoints(v []*string) *BrokerInstance { 1545 s.Endpoints = v 1546 return s 1547} 1548 1549// The Amazon Resource Name (ARN) of the broker. 1550// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/BrokerSummary 1551type BrokerSummary struct { 1552 _ struct{} `type:"structure"` 1553 1554 // The Amazon Resource Name (ARN) of the broker. 1555 BrokerArn *string `locationName:"brokerArn" type:"string"` 1556 1557 // The unique ID that Amazon MQ generates for the broker. 1558 BrokerId *string `locationName:"brokerId" type:"string"` 1559 1560 // The name of the broker. This value must be unique in your AWS account, 1-50 1561 // characters long, must contain only letters, numbers, dashes, and underscores, 1562 // and must not contain whitespaces, brackets, wildcard characters, or special 1563 // characters. 1564 BrokerName *string `locationName:"brokerName" type:"string"` 1565 1566 // The status of the broker. Possible values: CREATION_IN_PROGRESS, CREATION_FAILED, 1567 // DELETION_IN_PROGRESS, RUNNING, REBOOT_IN_PROGRESS 1568 BrokerState *string `locationName:"brokerState" type:"string" enum:"BrokerState"` 1569 1570 // Required. The deployment mode of the broker. Possible values: SINGLE_INSTANCE, 1571 // ACTIVE_STANDBY_MULTI_AZ SINGLE_INSTANCE creates a single-instance broker 1572 // in a single Availability Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby 1573 // broker for high availability. 1574 DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"` 1575 1576 // The broker's instance type. Possible values: mq.t2.micro, mq.m4.large 1577 HostInstanceType *string `locationName:"hostInstanceType" type:"string"` 1578} 1579 1580// String returns the string representation 1581func (s BrokerSummary) String() string { 1582 return awsutil.Prettify(s) 1583} 1584 1585// GoString returns the string representation 1586func (s BrokerSummary) GoString() string { 1587 return s.String() 1588} 1589 1590// SetBrokerArn sets the BrokerArn field's value. 1591func (s *BrokerSummary) SetBrokerArn(v string) *BrokerSummary { 1592 s.BrokerArn = &v 1593 return s 1594} 1595 1596// SetBrokerId sets the BrokerId field's value. 1597func (s *BrokerSummary) SetBrokerId(v string) *BrokerSummary { 1598 s.BrokerId = &v 1599 return s 1600} 1601 1602// SetBrokerName sets the BrokerName field's value. 1603func (s *BrokerSummary) SetBrokerName(v string) *BrokerSummary { 1604 s.BrokerName = &v 1605 return s 1606} 1607 1608// SetBrokerState sets the BrokerState field's value. 1609func (s *BrokerSummary) SetBrokerState(v string) *BrokerSummary { 1610 s.BrokerState = &v 1611 return s 1612} 1613 1614// SetDeploymentMode sets the DeploymentMode field's value. 1615func (s *BrokerSummary) SetDeploymentMode(v string) *BrokerSummary { 1616 s.DeploymentMode = &v 1617 return s 1618} 1619 1620// SetHostInstanceType sets the HostInstanceType field's value. 1621func (s *BrokerSummary) SetHostInstanceType(v string) *BrokerSummary { 1622 s.HostInstanceType = &v 1623 return s 1624} 1625 1626// Returns information about all configurations. 1627// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/Configuration 1628type Configuration struct { 1629 _ struct{} `type:"structure"` 1630 1631 // Required. The ARN of the configuration. 1632 Arn *string `locationName:"arn" type:"string"` 1633 1634 // Required. The description of the configuration. 1635 Description *string `locationName:"description" type:"string"` 1636 1637 // Required. The type of broker engine. Note: Currently, Amazon MQ supports 1638 // only ACTIVEMQ. 1639 EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"` 1640 1641 // Required. The version of the broker engine. 1642 EngineVersion *string `locationName:"engineVersion" type:"string"` 1643 1644 // Required. The unique ID that Amazon MQ generates for the configuration. 1645 Id *string `locationName:"id" type:"string"` 1646 1647 // Required. The latest revision of the configuration. 1648 LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"` 1649 1650 // Required. The name of the configuration. This value can contain only alphanumeric 1651 // characters, dashes, periods, underscores, and tildes (- . _ ~). This value 1652 // must be 1-150 characters long. 1653 Name *string `locationName:"name" type:"string"` 1654} 1655 1656// String returns the string representation 1657func (s Configuration) String() string { 1658 return awsutil.Prettify(s) 1659} 1660 1661// GoString returns the string representation 1662func (s Configuration) GoString() string { 1663 return s.String() 1664} 1665 1666// SetArn sets the Arn field's value. 1667func (s *Configuration) SetArn(v string) *Configuration { 1668 s.Arn = &v 1669 return s 1670} 1671 1672// SetDescription sets the Description field's value. 1673func (s *Configuration) SetDescription(v string) *Configuration { 1674 s.Description = &v 1675 return s 1676} 1677 1678// SetEngineType sets the EngineType field's value. 1679func (s *Configuration) SetEngineType(v string) *Configuration { 1680 s.EngineType = &v 1681 return s 1682} 1683 1684// SetEngineVersion sets the EngineVersion field's value. 1685func (s *Configuration) SetEngineVersion(v string) *Configuration { 1686 s.EngineVersion = &v 1687 return s 1688} 1689 1690// SetId sets the Id field's value. 1691func (s *Configuration) SetId(v string) *Configuration { 1692 s.Id = &v 1693 return s 1694} 1695 1696// SetLatestRevision sets the LatestRevision field's value. 1697func (s *Configuration) SetLatestRevision(v *ConfigurationRevision) *Configuration { 1698 s.LatestRevision = v 1699 return s 1700} 1701 1702// SetName sets the Name field's value. 1703func (s *Configuration) SetName(v string) *Configuration { 1704 s.Name = &v 1705 return s 1706} 1707 1708// A list of information about the configuration. 1709// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ConfigurationId 1710type ConfigurationId struct { 1711 _ struct{} `type:"structure"` 1712 1713 // Required. The unique ID that Amazon MQ generates for the configuration. 1714 Id *string `locationName:"id" type:"string"` 1715 1716 // The Universally Unique Identifier (UUID) of the request. 1717 Revision *int64 `locationName:"revision" type:"integer"` 1718} 1719 1720// String returns the string representation 1721func (s ConfigurationId) String() string { 1722 return awsutil.Prettify(s) 1723} 1724 1725// GoString returns the string representation 1726func (s ConfigurationId) GoString() string { 1727 return s.String() 1728} 1729 1730// SetId sets the Id field's value. 1731func (s *ConfigurationId) SetId(v string) *ConfigurationId { 1732 s.Id = &v 1733 return s 1734} 1735 1736// SetRevision sets the Revision field's value. 1737func (s *ConfigurationId) SetRevision(v int64) *ConfigurationId { 1738 s.Revision = &v 1739 return s 1740} 1741 1742// Returns information about the specified configuration revision. 1743// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ConfigurationRevision 1744type ConfigurationRevision struct { 1745 _ struct{} `type:"structure"` 1746 1747 // The description of the configuration revision. 1748 Description *string `locationName:"description" type:"string"` 1749 1750 // Required. The revision of the configuration. 1751 Revision *int64 `locationName:"revision" type:"integer"` 1752} 1753 1754// String returns the string representation 1755func (s ConfigurationRevision) String() string { 1756 return awsutil.Prettify(s) 1757} 1758 1759// GoString returns the string representation 1760func (s ConfigurationRevision) GoString() string { 1761 return s.String() 1762} 1763 1764// SetDescription sets the Description field's value. 1765func (s *ConfigurationRevision) SetDescription(v string) *ConfigurationRevision { 1766 s.Description = &v 1767 return s 1768} 1769 1770// SetRevision sets the Revision field's value. 1771func (s *ConfigurationRevision) SetRevision(v int64) *ConfigurationRevision { 1772 s.Revision = &v 1773 return s 1774} 1775 1776// Broker configuration information 1777// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/Configurations 1778type Configurations struct { 1779 _ struct{} `type:"structure"` 1780 1781 // The current configuration of the broker. 1782 Current *ConfigurationId `locationName:"current" type:"structure"` 1783 1784 // The history of configurations applied to the broker. 1785 History []*ConfigurationId `locationName:"history" type:"list"` 1786 1787 // The pending configuration of the broker. 1788 Pending *ConfigurationId `locationName:"pending" type:"structure"` 1789} 1790 1791// String returns the string representation 1792func (s Configurations) String() string { 1793 return awsutil.Prettify(s) 1794} 1795 1796// GoString returns the string representation 1797func (s Configurations) GoString() string { 1798 return s.String() 1799} 1800 1801// SetCurrent sets the Current field's value. 1802func (s *Configurations) SetCurrent(v *ConfigurationId) *Configurations { 1803 s.Current = v 1804 return s 1805} 1806 1807// SetHistory sets the History field's value. 1808func (s *Configurations) SetHistory(v []*ConfigurationId) *Configurations { 1809 s.History = v 1810 return s 1811} 1812 1813// SetPending sets the Pending field's value. 1814func (s *Configurations) SetPending(v *ConfigurationId) *Configurations { 1815 s.Pending = v 1816 return s 1817} 1818 1819// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBrokerRequest 1820type CreateBrokerRequest struct { 1821 _ struct{} `type:"structure"` 1822 1823 AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"` 1824 1825 BrokerName *string `locationName:"brokerName" type:"string"` 1826 1827 // A list of information about the configuration. 1828 Configuration *ConfigurationId `locationName:"configuration" type:"structure"` 1829 1830 CreatorRequestId *string `locationName:"creatorRequestId" type:"string" idempotencyToken:"true"` 1831 1832 // The deployment mode of the broker. Possible values: SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ 1833 // SINGLE_INSTANCE creates a single-instance broker in a single Availability 1834 // Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby broker for high availability. 1835 DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"` 1836 1837 // The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ. 1838 EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"` 1839 1840 EngineVersion *string `locationName:"engineVersion" type:"string"` 1841 1842 HostInstanceType *string `locationName:"hostInstanceType" type:"string"` 1843 1844 // The scheduled time period relative to UTC during which Amazon MQ begins to 1845 // apply pending updates or patches to the broker. 1846 MaintenanceWindowStartTime *WeeklyStartTime `locationName:"maintenanceWindowStartTime" type:"structure"` 1847 1848 PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` 1849 1850 SecurityGroups []*string `locationName:"securityGroups" type:"list"` 1851 1852 SubnetIds []*string `locationName:"subnetIds" type:"list"` 1853 1854 Users []*User `locationName:"users" type:"list"` 1855} 1856 1857// String returns the string representation 1858func (s CreateBrokerRequest) String() string { 1859 return awsutil.Prettify(s) 1860} 1861 1862// GoString returns the string representation 1863func (s CreateBrokerRequest) GoString() string { 1864 return s.String() 1865} 1866 1867// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. 1868func (s *CreateBrokerRequest) SetAutoMinorVersionUpgrade(v bool) *CreateBrokerRequest { 1869 s.AutoMinorVersionUpgrade = &v 1870 return s 1871} 1872 1873// SetBrokerName sets the BrokerName field's value. 1874func (s *CreateBrokerRequest) SetBrokerName(v string) *CreateBrokerRequest { 1875 s.BrokerName = &v 1876 return s 1877} 1878 1879// SetConfiguration sets the Configuration field's value. 1880func (s *CreateBrokerRequest) SetConfiguration(v *ConfigurationId) *CreateBrokerRequest { 1881 s.Configuration = v 1882 return s 1883} 1884 1885// SetCreatorRequestId sets the CreatorRequestId field's value. 1886func (s *CreateBrokerRequest) SetCreatorRequestId(v string) *CreateBrokerRequest { 1887 s.CreatorRequestId = &v 1888 return s 1889} 1890 1891// SetDeploymentMode sets the DeploymentMode field's value. 1892func (s *CreateBrokerRequest) SetDeploymentMode(v string) *CreateBrokerRequest { 1893 s.DeploymentMode = &v 1894 return s 1895} 1896 1897// SetEngineType sets the EngineType field's value. 1898func (s *CreateBrokerRequest) SetEngineType(v string) *CreateBrokerRequest { 1899 s.EngineType = &v 1900 return s 1901} 1902 1903// SetEngineVersion sets the EngineVersion field's value. 1904func (s *CreateBrokerRequest) SetEngineVersion(v string) *CreateBrokerRequest { 1905 s.EngineVersion = &v 1906 return s 1907} 1908 1909// SetHostInstanceType sets the HostInstanceType field's value. 1910func (s *CreateBrokerRequest) SetHostInstanceType(v string) *CreateBrokerRequest { 1911 s.HostInstanceType = &v 1912 return s 1913} 1914 1915// SetMaintenanceWindowStartTime sets the MaintenanceWindowStartTime field's value. 1916func (s *CreateBrokerRequest) SetMaintenanceWindowStartTime(v *WeeklyStartTime) *CreateBrokerRequest { 1917 s.MaintenanceWindowStartTime = v 1918 return s 1919} 1920 1921// SetPubliclyAccessible sets the PubliclyAccessible field's value. 1922func (s *CreateBrokerRequest) SetPubliclyAccessible(v bool) *CreateBrokerRequest { 1923 s.PubliclyAccessible = &v 1924 return s 1925} 1926 1927// SetSecurityGroups sets the SecurityGroups field's value. 1928func (s *CreateBrokerRequest) SetSecurityGroups(v []*string) *CreateBrokerRequest { 1929 s.SecurityGroups = v 1930 return s 1931} 1932 1933// SetSubnetIds sets the SubnetIds field's value. 1934func (s *CreateBrokerRequest) SetSubnetIds(v []*string) *CreateBrokerRequest { 1935 s.SubnetIds = v 1936 return s 1937} 1938 1939// SetUsers sets the Users field's value. 1940func (s *CreateBrokerRequest) SetUsers(v []*User) *CreateBrokerRequest { 1941 s.Users = v 1942 return s 1943} 1944 1945// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBrokerResponse 1946type CreateBrokerResponse struct { 1947 _ struct{} `type:"structure"` 1948 1949 BrokerArn *string `locationName:"brokerArn" type:"string"` 1950 1951 BrokerId *string `locationName:"brokerId" type:"string"` 1952} 1953 1954// String returns the string representation 1955func (s CreateBrokerResponse) String() string { 1956 return awsutil.Prettify(s) 1957} 1958 1959// GoString returns the string representation 1960func (s CreateBrokerResponse) GoString() string { 1961 return s.String() 1962} 1963 1964// SetBrokerArn sets the BrokerArn field's value. 1965func (s *CreateBrokerResponse) SetBrokerArn(v string) *CreateBrokerResponse { 1966 s.BrokerArn = &v 1967 return s 1968} 1969 1970// SetBrokerId sets the BrokerId field's value. 1971func (s *CreateBrokerResponse) SetBrokerId(v string) *CreateBrokerResponse { 1972 s.BrokerId = &v 1973 return s 1974} 1975 1976// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfigurationRequest 1977type CreateConfigurationRequest struct { 1978 _ struct{} `type:"structure"` 1979 1980 // The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ. 1981 EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"` 1982 1983 EngineVersion *string `locationName:"engineVersion" type:"string"` 1984 1985 Name *string `locationName:"name" type:"string"` 1986} 1987 1988// String returns the string representation 1989func (s CreateConfigurationRequest) String() string { 1990 return awsutil.Prettify(s) 1991} 1992 1993// GoString returns the string representation 1994func (s CreateConfigurationRequest) GoString() string { 1995 return s.String() 1996} 1997 1998// SetEngineType sets the EngineType field's value. 1999func (s *CreateConfigurationRequest) SetEngineType(v string) *CreateConfigurationRequest { 2000 s.EngineType = &v 2001 return s 2002} 2003 2004// SetEngineVersion sets the EngineVersion field's value. 2005func (s *CreateConfigurationRequest) SetEngineVersion(v string) *CreateConfigurationRequest { 2006 s.EngineVersion = &v 2007 return s 2008} 2009 2010// SetName sets the Name field's value. 2011func (s *CreateConfigurationRequest) SetName(v string) *CreateConfigurationRequest { 2012 s.Name = &v 2013 return s 2014} 2015 2016// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfigurationResponse 2017type CreateConfigurationResponse struct { 2018 _ struct{} `type:"structure"` 2019 2020 Arn *string `locationName:"arn" type:"string"` 2021 2022 Id *string `locationName:"id" type:"string"` 2023 2024 // Returns information about the specified configuration revision. 2025 LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"` 2026 2027 Name *string `locationName:"name" type:"string"` 2028} 2029 2030// String returns the string representation 2031func (s CreateConfigurationResponse) String() string { 2032 return awsutil.Prettify(s) 2033} 2034 2035// GoString returns the string representation 2036func (s CreateConfigurationResponse) GoString() string { 2037 return s.String() 2038} 2039 2040// SetArn sets the Arn field's value. 2041func (s *CreateConfigurationResponse) SetArn(v string) *CreateConfigurationResponse { 2042 s.Arn = &v 2043 return s 2044} 2045 2046// SetId sets the Id field's value. 2047func (s *CreateConfigurationResponse) SetId(v string) *CreateConfigurationResponse { 2048 s.Id = &v 2049 return s 2050} 2051 2052// SetLatestRevision sets the LatestRevision field's value. 2053func (s *CreateConfigurationResponse) SetLatestRevision(v *ConfigurationRevision) *CreateConfigurationResponse { 2054 s.LatestRevision = v 2055 return s 2056} 2057 2058// SetName sets the Name field's value. 2059func (s *CreateConfigurationResponse) SetName(v string) *CreateConfigurationResponse { 2060 s.Name = &v 2061 return s 2062} 2063 2064// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUserResponse 2065type CreateUserOutput struct { 2066 _ struct{} `type:"structure"` 2067} 2068 2069// String returns the string representation 2070func (s CreateUserOutput) String() string { 2071 return awsutil.Prettify(s) 2072} 2073 2074// GoString returns the string representation 2075func (s CreateUserOutput) GoString() string { 2076 return s.String() 2077} 2078 2079// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUserRequest 2080type CreateUserRequest struct { 2081 _ struct{} `type:"structure"` 2082 2083 // BrokerId is a required field 2084 BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` 2085 2086 ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"` 2087 2088 Groups []*string `locationName:"groups" type:"list"` 2089 2090 Password *string `locationName:"password" type:"string"` 2091 2092 // Username is a required field 2093 Username *string `location:"uri" locationName:"username" type:"string" required:"true"` 2094} 2095 2096// String returns the string representation 2097func (s CreateUserRequest) String() string { 2098 return awsutil.Prettify(s) 2099} 2100 2101// GoString returns the string representation 2102func (s CreateUserRequest) GoString() string { 2103 return s.String() 2104} 2105 2106// Validate inspects the fields of the type to determine if they are valid. 2107func (s *CreateUserRequest) Validate() error { 2108 invalidParams := request.ErrInvalidParams{Context: "CreateUserRequest"} 2109 if s.BrokerId == nil { 2110 invalidParams.Add(request.NewErrParamRequired("BrokerId")) 2111 } 2112 if s.Username == nil { 2113 invalidParams.Add(request.NewErrParamRequired("Username")) 2114 } 2115 2116 if invalidParams.Len() > 0 { 2117 return invalidParams 2118 } 2119 return nil 2120} 2121 2122// SetBrokerId sets the BrokerId field's value. 2123func (s *CreateUserRequest) SetBrokerId(v string) *CreateUserRequest { 2124 s.BrokerId = &v 2125 return s 2126} 2127 2128// SetConsoleAccess sets the ConsoleAccess field's value. 2129func (s *CreateUserRequest) SetConsoleAccess(v bool) *CreateUserRequest { 2130 s.ConsoleAccess = &v 2131 return s 2132} 2133 2134// SetGroups sets the Groups field's value. 2135func (s *CreateUserRequest) SetGroups(v []*string) *CreateUserRequest { 2136 s.Groups = v 2137 return s 2138} 2139 2140// SetPassword sets the Password field's value. 2141func (s *CreateUserRequest) SetPassword(v string) *CreateUserRequest { 2142 s.Password = &v 2143 return s 2144} 2145 2146// SetUsername sets the Username field's value. 2147func (s *CreateUserRequest) SetUsername(v string) *CreateUserRequest { 2148 s.Username = &v 2149 return s 2150} 2151 2152// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBrokerRequest 2153type DeleteBrokerInput struct { 2154 _ struct{} `type:"structure"` 2155 2156 // BrokerId is a required field 2157 BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` 2158} 2159 2160// String returns the string representation 2161func (s DeleteBrokerInput) String() string { 2162 return awsutil.Prettify(s) 2163} 2164 2165// GoString returns the string representation 2166func (s DeleteBrokerInput) GoString() string { 2167 return s.String() 2168} 2169 2170// Validate inspects the fields of the type to determine if they are valid. 2171func (s *DeleteBrokerInput) Validate() error { 2172 invalidParams := request.ErrInvalidParams{Context: "DeleteBrokerInput"} 2173 if s.BrokerId == nil { 2174 invalidParams.Add(request.NewErrParamRequired("BrokerId")) 2175 } 2176 2177 if invalidParams.Len() > 0 { 2178 return invalidParams 2179 } 2180 return nil 2181} 2182 2183// SetBrokerId sets the BrokerId field's value. 2184func (s *DeleteBrokerInput) SetBrokerId(v string) *DeleteBrokerInput { 2185 s.BrokerId = &v 2186 return s 2187} 2188 2189// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBrokerResponse 2190type DeleteBrokerResponse struct { 2191 _ struct{} `type:"structure"` 2192 2193 BrokerId *string `locationName:"brokerId" type:"string"` 2194} 2195 2196// String returns the string representation 2197func (s DeleteBrokerResponse) String() string { 2198 return awsutil.Prettify(s) 2199} 2200 2201// GoString returns the string representation 2202func (s DeleteBrokerResponse) GoString() string { 2203 return s.String() 2204} 2205 2206// SetBrokerId sets the BrokerId field's value. 2207func (s *DeleteBrokerResponse) SetBrokerId(v string) *DeleteBrokerResponse { 2208 s.BrokerId = &v 2209 return s 2210} 2211 2212// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUserRequest 2213type DeleteUserInput struct { 2214 _ struct{} `type:"structure"` 2215 2216 // BrokerId is a required field 2217 BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` 2218 2219 // Username is a required field 2220 Username *string `location:"uri" locationName:"username" type:"string" required:"true"` 2221} 2222 2223// String returns the string representation 2224func (s DeleteUserInput) String() string { 2225 return awsutil.Prettify(s) 2226} 2227 2228// GoString returns the string representation 2229func (s DeleteUserInput) GoString() string { 2230 return s.String() 2231} 2232 2233// Validate inspects the fields of the type to determine if they are valid. 2234func (s *DeleteUserInput) Validate() error { 2235 invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"} 2236 if s.BrokerId == nil { 2237 invalidParams.Add(request.NewErrParamRequired("BrokerId")) 2238 } 2239 if s.Username == nil { 2240 invalidParams.Add(request.NewErrParamRequired("Username")) 2241 } 2242 2243 if invalidParams.Len() > 0 { 2244 return invalidParams 2245 } 2246 return nil 2247} 2248 2249// SetBrokerId sets the BrokerId field's value. 2250func (s *DeleteUserInput) SetBrokerId(v string) *DeleteUserInput { 2251 s.BrokerId = &v 2252 return s 2253} 2254 2255// SetUsername sets the Username field's value. 2256func (s *DeleteUserInput) SetUsername(v string) *DeleteUserInput { 2257 s.Username = &v 2258 return s 2259} 2260 2261// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUserResponse 2262type DeleteUserOutput struct { 2263 _ struct{} `type:"structure"` 2264} 2265 2266// String returns the string representation 2267func (s DeleteUserOutput) String() string { 2268 return awsutil.Prettify(s) 2269} 2270 2271// GoString returns the string representation 2272func (s DeleteUserOutput) GoString() string { 2273 return s.String() 2274} 2275 2276// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerRequest 2277type DescribeBrokerInput struct { 2278 _ struct{} `type:"structure"` 2279 2280 // BrokerId is a required field 2281 BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` 2282} 2283 2284// String returns the string representation 2285func (s DescribeBrokerInput) String() string { 2286 return awsutil.Prettify(s) 2287} 2288 2289// GoString returns the string representation 2290func (s DescribeBrokerInput) GoString() string { 2291 return s.String() 2292} 2293 2294// Validate inspects the fields of the type to determine if they are valid. 2295func (s *DescribeBrokerInput) Validate() error { 2296 invalidParams := request.ErrInvalidParams{Context: "DescribeBrokerInput"} 2297 if s.BrokerId == nil { 2298 invalidParams.Add(request.NewErrParamRequired("BrokerId")) 2299 } 2300 2301 if invalidParams.Len() > 0 { 2302 return invalidParams 2303 } 2304 return nil 2305} 2306 2307// SetBrokerId sets the BrokerId field's value. 2308func (s *DescribeBrokerInput) SetBrokerId(v string) *DescribeBrokerInput { 2309 s.BrokerId = &v 2310 return s 2311} 2312 2313// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerResponse 2314type DescribeBrokerResponse struct { 2315 _ struct{} `type:"structure"` 2316 2317 AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"` 2318 2319 BrokerArn *string `locationName:"brokerArn" type:"string"` 2320 2321 BrokerId *string `locationName:"brokerId" type:"string"` 2322 2323 BrokerInstances []*BrokerInstance `locationName:"brokerInstances" type:"list"` 2324 2325 BrokerName *string `locationName:"brokerName" type:"string"` 2326 2327 // The status of the broker. Possible values: CREATION_IN_PROGRESS, CREATION_FAILED, 2328 // DELETION_IN_PROGRESS, RUNNING, REBOOT_IN_PROGRESS 2329 BrokerState *string `locationName:"brokerState" type:"string" enum:"BrokerState"` 2330 2331 // Broker configuration information 2332 Configurations *Configurations `locationName:"configurations" type:"structure"` 2333 2334 // The deployment mode of the broker. Possible values: SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ 2335 // SINGLE_INSTANCE creates a single-instance broker in a single Availability 2336 // Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby broker for high availability. 2337 DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"` 2338 2339 // The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ. 2340 EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"` 2341 2342 EngineVersion *string `locationName:"engineVersion" type:"string"` 2343 2344 HostInstanceType *string `locationName:"hostInstanceType" type:"string"` 2345 2346 // The scheduled time period relative to UTC during which Amazon MQ begins to 2347 // apply pending updates or patches to the broker. 2348 MaintenanceWindowStartTime *WeeklyStartTime `locationName:"maintenanceWindowStartTime" type:"structure"` 2349 2350 PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` 2351 2352 SecurityGroups []*string `locationName:"securityGroups" type:"list"` 2353 2354 SubnetIds []*string `locationName:"subnetIds" type:"list"` 2355 2356 Users []*UserSummary `locationName:"users" type:"list"` 2357} 2358 2359// String returns the string representation 2360func (s DescribeBrokerResponse) String() string { 2361 return awsutil.Prettify(s) 2362} 2363 2364// GoString returns the string representation 2365func (s DescribeBrokerResponse) GoString() string { 2366 return s.String() 2367} 2368 2369// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. 2370func (s *DescribeBrokerResponse) SetAutoMinorVersionUpgrade(v bool) *DescribeBrokerResponse { 2371 s.AutoMinorVersionUpgrade = &v 2372 return s 2373} 2374 2375// SetBrokerArn sets the BrokerArn field's value. 2376func (s *DescribeBrokerResponse) SetBrokerArn(v string) *DescribeBrokerResponse { 2377 s.BrokerArn = &v 2378 return s 2379} 2380 2381// SetBrokerId sets the BrokerId field's value. 2382func (s *DescribeBrokerResponse) SetBrokerId(v string) *DescribeBrokerResponse { 2383 s.BrokerId = &v 2384 return s 2385} 2386 2387// SetBrokerInstances sets the BrokerInstances field's value. 2388func (s *DescribeBrokerResponse) SetBrokerInstances(v []*BrokerInstance) *DescribeBrokerResponse { 2389 s.BrokerInstances = v 2390 return s 2391} 2392 2393// SetBrokerName sets the BrokerName field's value. 2394func (s *DescribeBrokerResponse) SetBrokerName(v string) *DescribeBrokerResponse { 2395 s.BrokerName = &v 2396 return s 2397} 2398 2399// SetBrokerState sets the BrokerState field's value. 2400func (s *DescribeBrokerResponse) SetBrokerState(v string) *DescribeBrokerResponse { 2401 s.BrokerState = &v 2402 return s 2403} 2404 2405// SetConfigurations sets the Configurations field's value. 2406func (s *DescribeBrokerResponse) SetConfigurations(v *Configurations) *DescribeBrokerResponse { 2407 s.Configurations = v 2408 return s 2409} 2410 2411// SetDeploymentMode sets the DeploymentMode field's value. 2412func (s *DescribeBrokerResponse) SetDeploymentMode(v string) *DescribeBrokerResponse { 2413 s.DeploymentMode = &v 2414 return s 2415} 2416 2417// SetEngineType sets the EngineType field's value. 2418func (s *DescribeBrokerResponse) SetEngineType(v string) *DescribeBrokerResponse { 2419 s.EngineType = &v 2420 return s 2421} 2422 2423// SetEngineVersion sets the EngineVersion field's value. 2424func (s *DescribeBrokerResponse) SetEngineVersion(v string) *DescribeBrokerResponse { 2425 s.EngineVersion = &v 2426 return s 2427} 2428 2429// SetHostInstanceType sets the HostInstanceType field's value. 2430func (s *DescribeBrokerResponse) SetHostInstanceType(v string) *DescribeBrokerResponse { 2431 s.HostInstanceType = &v 2432 return s 2433} 2434 2435// SetMaintenanceWindowStartTime sets the MaintenanceWindowStartTime field's value. 2436func (s *DescribeBrokerResponse) SetMaintenanceWindowStartTime(v *WeeklyStartTime) *DescribeBrokerResponse { 2437 s.MaintenanceWindowStartTime = v 2438 return s 2439} 2440 2441// SetPubliclyAccessible sets the PubliclyAccessible field's value. 2442func (s *DescribeBrokerResponse) SetPubliclyAccessible(v bool) *DescribeBrokerResponse { 2443 s.PubliclyAccessible = &v 2444 return s 2445} 2446 2447// SetSecurityGroups sets the SecurityGroups field's value. 2448func (s *DescribeBrokerResponse) SetSecurityGroups(v []*string) *DescribeBrokerResponse { 2449 s.SecurityGroups = v 2450 return s 2451} 2452 2453// SetSubnetIds sets the SubnetIds field's value. 2454func (s *DescribeBrokerResponse) SetSubnetIds(v []*string) *DescribeBrokerResponse { 2455 s.SubnetIds = v 2456 return s 2457} 2458 2459// SetUsers sets the Users field's value. 2460func (s *DescribeBrokerResponse) SetUsers(v []*UserSummary) *DescribeBrokerResponse { 2461 s.Users = v 2462 return s 2463} 2464 2465// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRequest 2466type DescribeConfigurationInput struct { 2467 _ struct{} `type:"structure"` 2468 2469 // ConfigurationId is a required field 2470 ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"` 2471} 2472 2473// String returns the string representation 2474func (s DescribeConfigurationInput) String() string { 2475 return awsutil.Prettify(s) 2476} 2477 2478// GoString returns the string representation 2479func (s DescribeConfigurationInput) GoString() string { 2480 return s.String() 2481} 2482 2483// Validate inspects the fields of the type to determine if they are valid. 2484func (s *DescribeConfigurationInput) Validate() error { 2485 invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationInput"} 2486 if s.ConfigurationId == nil { 2487 invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) 2488 } 2489 2490 if invalidParams.Len() > 0 { 2491 return invalidParams 2492 } 2493 return nil 2494} 2495 2496// SetConfigurationId sets the ConfigurationId field's value. 2497func (s *DescribeConfigurationInput) SetConfigurationId(v string) *DescribeConfigurationInput { 2498 s.ConfigurationId = &v 2499 return s 2500} 2501 2502// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationResponse 2503type DescribeConfigurationOutput struct { 2504 _ struct{} `type:"structure"` 2505 2506 Arn *string `locationName:"arn" type:"string"` 2507 2508 Description *string `locationName:"description" type:"string"` 2509 2510 // The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ. 2511 EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"` 2512 2513 EngineVersion *string `locationName:"engineVersion" type:"string"` 2514 2515 Id *string `locationName:"id" type:"string"` 2516 2517 // Returns information about the specified configuration revision. 2518 LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"` 2519 2520 Name *string `locationName:"name" type:"string"` 2521} 2522 2523// String returns the string representation 2524func (s DescribeConfigurationOutput) String() string { 2525 return awsutil.Prettify(s) 2526} 2527 2528// GoString returns the string representation 2529func (s DescribeConfigurationOutput) GoString() string { 2530 return s.String() 2531} 2532 2533// SetArn sets the Arn field's value. 2534func (s *DescribeConfigurationOutput) SetArn(v string) *DescribeConfigurationOutput { 2535 s.Arn = &v 2536 return s 2537} 2538 2539// SetDescription sets the Description field's value. 2540func (s *DescribeConfigurationOutput) SetDescription(v string) *DescribeConfigurationOutput { 2541 s.Description = &v 2542 return s 2543} 2544 2545// SetEngineType sets the EngineType field's value. 2546func (s *DescribeConfigurationOutput) SetEngineType(v string) *DescribeConfigurationOutput { 2547 s.EngineType = &v 2548 return s 2549} 2550 2551// SetEngineVersion sets the EngineVersion field's value. 2552func (s *DescribeConfigurationOutput) SetEngineVersion(v string) *DescribeConfigurationOutput { 2553 s.EngineVersion = &v 2554 return s 2555} 2556 2557// SetId sets the Id field's value. 2558func (s *DescribeConfigurationOutput) SetId(v string) *DescribeConfigurationOutput { 2559 s.Id = &v 2560 return s 2561} 2562 2563// SetLatestRevision sets the LatestRevision field's value. 2564func (s *DescribeConfigurationOutput) SetLatestRevision(v *ConfigurationRevision) *DescribeConfigurationOutput { 2565 s.LatestRevision = v 2566 return s 2567} 2568 2569// SetName sets the Name field's value. 2570func (s *DescribeConfigurationOutput) SetName(v string) *DescribeConfigurationOutput { 2571 s.Name = &v 2572 return s 2573} 2574 2575// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevisionRequest 2576type DescribeConfigurationRevisionInput struct { 2577 _ struct{} `type:"structure"` 2578 2579 // ConfigurationId is a required field 2580 ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"` 2581 2582 // ConfigurationRevision is a required field 2583 ConfigurationRevision *string `location:"uri" locationName:"configuration-revision" type:"string" required:"true"` 2584} 2585 2586// String returns the string representation 2587func (s DescribeConfigurationRevisionInput) String() string { 2588 return awsutil.Prettify(s) 2589} 2590 2591// GoString returns the string representation 2592func (s DescribeConfigurationRevisionInput) GoString() string { 2593 return s.String() 2594} 2595 2596// Validate inspects the fields of the type to determine if they are valid. 2597func (s *DescribeConfigurationRevisionInput) Validate() error { 2598 invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationRevisionInput"} 2599 if s.ConfigurationId == nil { 2600 invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) 2601 } 2602 if s.ConfigurationRevision == nil { 2603 invalidParams.Add(request.NewErrParamRequired("ConfigurationRevision")) 2604 } 2605 2606 if invalidParams.Len() > 0 { 2607 return invalidParams 2608 } 2609 return nil 2610} 2611 2612// SetConfigurationId sets the ConfigurationId field's value. 2613func (s *DescribeConfigurationRevisionInput) SetConfigurationId(v string) *DescribeConfigurationRevisionInput { 2614 s.ConfigurationId = &v 2615 return s 2616} 2617 2618// SetConfigurationRevision sets the ConfigurationRevision field's value. 2619func (s *DescribeConfigurationRevisionInput) SetConfigurationRevision(v string) *DescribeConfigurationRevisionInput { 2620 s.ConfigurationRevision = &v 2621 return s 2622} 2623 2624// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevisionResponse 2625type DescribeConfigurationRevisionResponse struct { 2626 _ struct{} `type:"structure"` 2627 2628 ConfigurationId *string `locationName:"configurationId" type:"string"` 2629 2630 Data *string `locationName:"data" type:"string"` 2631 2632 Description *string `locationName:"description" type:"string"` 2633} 2634 2635// String returns the string representation 2636func (s DescribeConfigurationRevisionResponse) String() string { 2637 return awsutil.Prettify(s) 2638} 2639 2640// GoString returns the string representation 2641func (s DescribeConfigurationRevisionResponse) GoString() string { 2642 return s.String() 2643} 2644 2645// SetConfigurationId sets the ConfigurationId field's value. 2646func (s *DescribeConfigurationRevisionResponse) SetConfigurationId(v string) *DescribeConfigurationRevisionResponse { 2647 s.ConfigurationId = &v 2648 return s 2649} 2650 2651// SetData sets the Data field's value. 2652func (s *DescribeConfigurationRevisionResponse) SetData(v string) *DescribeConfigurationRevisionResponse { 2653 s.Data = &v 2654 return s 2655} 2656 2657// SetDescription sets the Description field's value. 2658func (s *DescribeConfigurationRevisionResponse) SetDescription(v string) *DescribeConfigurationRevisionResponse { 2659 s.Description = &v 2660 return s 2661} 2662 2663// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUserRequest 2664type DescribeUserInput struct { 2665 _ struct{} `type:"structure"` 2666 2667 // BrokerId is a required field 2668 BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` 2669 2670 // Username is a required field 2671 Username *string `location:"uri" locationName:"username" type:"string" required:"true"` 2672} 2673 2674// String returns the string representation 2675func (s DescribeUserInput) String() string { 2676 return awsutil.Prettify(s) 2677} 2678 2679// GoString returns the string representation 2680func (s DescribeUserInput) GoString() string { 2681 return s.String() 2682} 2683 2684// Validate inspects the fields of the type to determine if they are valid. 2685func (s *DescribeUserInput) Validate() error { 2686 invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"} 2687 if s.BrokerId == nil { 2688 invalidParams.Add(request.NewErrParamRequired("BrokerId")) 2689 } 2690 if s.Username == nil { 2691 invalidParams.Add(request.NewErrParamRequired("Username")) 2692 } 2693 2694 if invalidParams.Len() > 0 { 2695 return invalidParams 2696 } 2697 return nil 2698} 2699 2700// SetBrokerId sets the BrokerId field's value. 2701func (s *DescribeUserInput) SetBrokerId(v string) *DescribeUserInput { 2702 s.BrokerId = &v 2703 return s 2704} 2705 2706// SetUsername sets the Username field's value. 2707func (s *DescribeUserInput) SetUsername(v string) *DescribeUserInput { 2708 s.Username = &v 2709 return s 2710} 2711 2712// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUserResponse 2713type DescribeUserResponse struct { 2714 _ struct{} `type:"structure"` 2715 2716 BrokerId *string `locationName:"brokerId" type:"string"` 2717 2718 ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"` 2719 2720 Groups []*string `locationName:"groups" type:"list"` 2721 2722 // Returns information about the status of the changes pending for the ActiveMQ 2723 // user. 2724 Pending *UserPendingChanges `locationName:"pending" type:"structure"` 2725 2726 Username *string `locationName:"username" type:"string"` 2727} 2728 2729// String returns the string representation 2730func (s DescribeUserResponse) String() string { 2731 return awsutil.Prettify(s) 2732} 2733 2734// GoString returns the string representation 2735func (s DescribeUserResponse) GoString() string { 2736 return s.String() 2737} 2738 2739// SetBrokerId sets the BrokerId field's value. 2740func (s *DescribeUserResponse) SetBrokerId(v string) *DescribeUserResponse { 2741 s.BrokerId = &v 2742 return s 2743} 2744 2745// SetConsoleAccess sets the ConsoleAccess field's value. 2746func (s *DescribeUserResponse) SetConsoleAccess(v bool) *DescribeUserResponse { 2747 s.ConsoleAccess = &v 2748 return s 2749} 2750 2751// SetGroups sets the Groups field's value. 2752func (s *DescribeUserResponse) SetGroups(v []*string) *DescribeUserResponse { 2753 s.Groups = v 2754 return s 2755} 2756 2757// SetPending sets the Pending field's value. 2758func (s *DescribeUserResponse) SetPending(v *UserPendingChanges) *DescribeUserResponse { 2759 s.Pending = v 2760 return s 2761} 2762 2763// SetUsername sets the Username field's value. 2764func (s *DescribeUserResponse) SetUsername(v string) *DescribeUserResponse { 2765 s.Username = &v 2766 return s 2767} 2768 2769// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokersRequest 2770type ListBrokersInput struct { 2771 _ struct{} `type:"structure"` 2772 2773 MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` 2774 2775 NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` 2776} 2777 2778// String returns the string representation 2779func (s ListBrokersInput) String() string { 2780 return awsutil.Prettify(s) 2781} 2782 2783// GoString returns the string representation 2784func (s ListBrokersInput) GoString() string { 2785 return s.String() 2786} 2787 2788// Validate inspects the fields of the type to determine if they are valid. 2789func (s *ListBrokersInput) Validate() error { 2790 invalidParams := request.ErrInvalidParams{Context: "ListBrokersInput"} 2791 if s.MaxResults != nil && *s.MaxResults < 1 { 2792 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 2793 } 2794 2795 if invalidParams.Len() > 0 { 2796 return invalidParams 2797 } 2798 return nil 2799} 2800 2801// SetMaxResults sets the MaxResults field's value. 2802func (s *ListBrokersInput) SetMaxResults(v int64) *ListBrokersInput { 2803 s.MaxResults = &v 2804 return s 2805} 2806 2807// SetNextToken sets the NextToken field's value. 2808func (s *ListBrokersInput) SetNextToken(v string) *ListBrokersInput { 2809 s.NextToken = &v 2810 return s 2811} 2812 2813// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokersResponse 2814type ListBrokersResponse struct { 2815 _ struct{} `type:"structure"` 2816 2817 BrokerSummaries []*BrokerSummary `locationName:"brokerSummaries" type:"list"` 2818 2819 NextToken *string `locationName:"nextToken" type:"string"` 2820} 2821 2822// String returns the string representation 2823func (s ListBrokersResponse) String() string { 2824 return awsutil.Prettify(s) 2825} 2826 2827// GoString returns the string representation 2828func (s ListBrokersResponse) GoString() string { 2829 return s.String() 2830} 2831 2832// SetBrokerSummaries sets the BrokerSummaries field's value. 2833func (s *ListBrokersResponse) SetBrokerSummaries(v []*BrokerSummary) *ListBrokersResponse { 2834 s.BrokerSummaries = v 2835 return s 2836} 2837 2838// SetNextToken sets the NextToken field's value. 2839func (s *ListBrokersResponse) SetNextToken(v string) *ListBrokersResponse { 2840 s.NextToken = &v 2841 return s 2842} 2843 2844// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisionsRequest 2845type ListConfigurationRevisionsInput struct { 2846 _ struct{} `type:"structure"` 2847 2848 // ConfigurationId is a required field 2849 ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"` 2850 2851 MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` 2852 2853 NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` 2854} 2855 2856// String returns the string representation 2857func (s ListConfigurationRevisionsInput) String() string { 2858 return awsutil.Prettify(s) 2859} 2860 2861// GoString returns the string representation 2862func (s ListConfigurationRevisionsInput) GoString() string { 2863 return s.String() 2864} 2865 2866// Validate inspects the fields of the type to determine if they are valid. 2867func (s *ListConfigurationRevisionsInput) Validate() error { 2868 invalidParams := request.ErrInvalidParams{Context: "ListConfigurationRevisionsInput"} 2869 if s.ConfigurationId == nil { 2870 invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) 2871 } 2872 if s.MaxResults != nil && *s.MaxResults < 1 { 2873 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 2874 } 2875 2876 if invalidParams.Len() > 0 { 2877 return invalidParams 2878 } 2879 return nil 2880} 2881 2882// SetConfigurationId sets the ConfigurationId field's value. 2883func (s *ListConfigurationRevisionsInput) SetConfigurationId(v string) *ListConfigurationRevisionsInput { 2884 s.ConfigurationId = &v 2885 return s 2886} 2887 2888// SetMaxResults sets the MaxResults field's value. 2889func (s *ListConfigurationRevisionsInput) SetMaxResults(v int64) *ListConfigurationRevisionsInput { 2890 s.MaxResults = &v 2891 return s 2892} 2893 2894// SetNextToken sets the NextToken field's value. 2895func (s *ListConfigurationRevisionsInput) SetNextToken(v string) *ListConfigurationRevisionsInput { 2896 s.NextToken = &v 2897 return s 2898} 2899 2900// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisionsResponse 2901type ListConfigurationRevisionsResponse struct { 2902 _ struct{} `type:"structure"` 2903 2904 ConfigurationId *string `locationName:"configurationId" type:"string"` 2905 2906 MaxResults *int64 `locationName:"maxResults" type:"integer"` 2907 2908 NextToken *string `locationName:"nextToken" type:"string"` 2909 2910 Revisions []*ConfigurationRevision `locationName:"revisions" type:"list"` 2911} 2912 2913// String returns the string representation 2914func (s ListConfigurationRevisionsResponse) String() string { 2915 return awsutil.Prettify(s) 2916} 2917 2918// GoString returns the string representation 2919func (s ListConfigurationRevisionsResponse) GoString() string { 2920 return s.String() 2921} 2922 2923// SetConfigurationId sets the ConfigurationId field's value. 2924func (s *ListConfigurationRevisionsResponse) SetConfigurationId(v string) *ListConfigurationRevisionsResponse { 2925 s.ConfigurationId = &v 2926 return s 2927} 2928 2929// SetMaxResults sets the MaxResults field's value. 2930func (s *ListConfigurationRevisionsResponse) SetMaxResults(v int64) *ListConfigurationRevisionsResponse { 2931 s.MaxResults = &v 2932 return s 2933} 2934 2935// SetNextToken sets the NextToken field's value. 2936func (s *ListConfigurationRevisionsResponse) SetNextToken(v string) *ListConfigurationRevisionsResponse { 2937 s.NextToken = &v 2938 return s 2939} 2940 2941// SetRevisions sets the Revisions field's value. 2942func (s *ListConfigurationRevisionsResponse) SetRevisions(v []*ConfigurationRevision) *ListConfigurationRevisionsResponse { 2943 s.Revisions = v 2944 return s 2945} 2946 2947// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationsRequest 2948type ListConfigurationsInput struct { 2949 _ struct{} `type:"structure"` 2950 2951 MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` 2952 2953 NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` 2954} 2955 2956// String returns the string representation 2957func (s ListConfigurationsInput) String() string { 2958 return awsutil.Prettify(s) 2959} 2960 2961// GoString returns the string representation 2962func (s ListConfigurationsInput) GoString() string { 2963 return s.String() 2964} 2965 2966// Validate inspects the fields of the type to determine if they are valid. 2967func (s *ListConfigurationsInput) Validate() error { 2968 invalidParams := request.ErrInvalidParams{Context: "ListConfigurationsInput"} 2969 if s.MaxResults != nil && *s.MaxResults < 1 { 2970 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 2971 } 2972 2973 if invalidParams.Len() > 0 { 2974 return invalidParams 2975 } 2976 return nil 2977} 2978 2979// SetMaxResults sets the MaxResults field's value. 2980func (s *ListConfigurationsInput) SetMaxResults(v int64) *ListConfigurationsInput { 2981 s.MaxResults = &v 2982 return s 2983} 2984 2985// SetNextToken sets the NextToken field's value. 2986func (s *ListConfigurationsInput) SetNextToken(v string) *ListConfigurationsInput { 2987 s.NextToken = &v 2988 return s 2989} 2990 2991// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationsResponse 2992type ListConfigurationsResponse struct { 2993 _ struct{} `type:"structure"` 2994 2995 Configurations []*Configuration `locationName:"configurations" type:"list"` 2996 2997 MaxResults *int64 `locationName:"maxResults" type:"integer"` 2998 2999 NextToken *string `locationName:"nextToken" type:"string"` 3000} 3001 3002// String returns the string representation 3003func (s ListConfigurationsResponse) String() string { 3004 return awsutil.Prettify(s) 3005} 3006 3007// GoString returns the string representation 3008func (s ListConfigurationsResponse) GoString() string { 3009 return s.String() 3010} 3011 3012// SetConfigurations sets the Configurations field's value. 3013func (s *ListConfigurationsResponse) SetConfigurations(v []*Configuration) *ListConfigurationsResponse { 3014 s.Configurations = v 3015 return s 3016} 3017 3018// SetMaxResults sets the MaxResults field's value. 3019func (s *ListConfigurationsResponse) SetMaxResults(v int64) *ListConfigurationsResponse { 3020 s.MaxResults = &v 3021 return s 3022} 3023 3024// SetNextToken sets the NextToken field's value. 3025func (s *ListConfigurationsResponse) SetNextToken(v string) *ListConfigurationsResponse { 3026 s.NextToken = &v 3027 return s 3028} 3029 3030// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsersRequest 3031type ListUsersInput struct { 3032 _ struct{} `type:"structure"` 3033 3034 // BrokerId is a required field 3035 BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` 3036 3037 MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` 3038 3039 NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` 3040} 3041 3042// String returns the string representation 3043func (s ListUsersInput) String() string { 3044 return awsutil.Prettify(s) 3045} 3046 3047// GoString returns the string representation 3048func (s ListUsersInput) GoString() string { 3049 return s.String() 3050} 3051 3052// Validate inspects the fields of the type to determine if they are valid. 3053func (s *ListUsersInput) Validate() error { 3054 invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} 3055 if s.BrokerId == nil { 3056 invalidParams.Add(request.NewErrParamRequired("BrokerId")) 3057 } 3058 if s.MaxResults != nil && *s.MaxResults < 1 { 3059 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3060 } 3061 3062 if invalidParams.Len() > 0 { 3063 return invalidParams 3064 } 3065 return nil 3066} 3067 3068// SetBrokerId sets the BrokerId field's value. 3069func (s *ListUsersInput) SetBrokerId(v string) *ListUsersInput { 3070 s.BrokerId = &v 3071 return s 3072} 3073 3074// SetMaxResults sets the MaxResults field's value. 3075func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput { 3076 s.MaxResults = &v 3077 return s 3078} 3079 3080// SetNextToken sets the NextToken field's value. 3081func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput { 3082 s.NextToken = &v 3083 return s 3084} 3085 3086// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsersResponse 3087type ListUsersResponse struct { 3088 _ struct{} `type:"structure"` 3089 3090 BrokerId *string `locationName:"brokerId" type:"string"` 3091 3092 MaxResults *int64 `locationName:"maxResults" type:"integer"` 3093 3094 NextToken *string `locationName:"nextToken" type:"string"` 3095 3096 Users []*UserSummary `locationName:"users" type:"list"` 3097} 3098 3099// String returns the string representation 3100func (s ListUsersResponse) String() string { 3101 return awsutil.Prettify(s) 3102} 3103 3104// GoString returns the string representation 3105func (s ListUsersResponse) GoString() string { 3106 return s.String() 3107} 3108 3109// SetBrokerId sets the BrokerId field's value. 3110func (s *ListUsersResponse) SetBrokerId(v string) *ListUsersResponse { 3111 s.BrokerId = &v 3112 return s 3113} 3114 3115// SetMaxResults sets the MaxResults field's value. 3116func (s *ListUsersResponse) SetMaxResults(v int64) *ListUsersResponse { 3117 s.MaxResults = &v 3118 return s 3119} 3120 3121// SetNextToken sets the NextToken field's value. 3122func (s *ListUsersResponse) SetNextToken(v string) *ListUsersResponse { 3123 s.NextToken = &v 3124 return s 3125} 3126 3127// SetUsers sets the Users field's value. 3128func (s *ListUsersResponse) SetUsers(v []*UserSummary) *ListUsersResponse { 3129 s.Users = v 3130 return s 3131} 3132 3133// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBrokerRequest 3134type RebootBrokerInput struct { 3135 _ struct{} `type:"structure"` 3136 3137 // BrokerId is a required field 3138 BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` 3139} 3140 3141// String returns the string representation 3142func (s RebootBrokerInput) String() string { 3143 return awsutil.Prettify(s) 3144} 3145 3146// GoString returns the string representation 3147func (s RebootBrokerInput) GoString() string { 3148 return s.String() 3149} 3150 3151// Validate inspects the fields of the type to determine if they are valid. 3152func (s *RebootBrokerInput) Validate() error { 3153 invalidParams := request.ErrInvalidParams{Context: "RebootBrokerInput"} 3154 if s.BrokerId == nil { 3155 invalidParams.Add(request.NewErrParamRequired("BrokerId")) 3156 } 3157 3158 if invalidParams.Len() > 0 { 3159 return invalidParams 3160 } 3161 return nil 3162} 3163 3164// SetBrokerId sets the BrokerId field's value. 3165func (s *RebootBrokerInput) SetBrokerId(v string) *RebootBrokerInput { 3166 s.BrokerId = &v 3167 return s 3168} 3169 3170// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBrokerResponse 3171type RebootBrokerOutput struct { 3172 _ struct{} `type:"structure"` 3173} 3174 3175// String returns the string representation 3176func (s RebootBrokerOutput) String() string { 3177 return awsutil.Prettify(s) 3178} 3179 3180// GoString returns the string representation 3181func (s RebootBrokerOutput) GoString() string { 3182 return s.String() 3183} 3184 3185// Returns information about the XML element or attribute that was sanitized 3186// in the configuration. 3187// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/SanitizationWarning 3188type SanitizationWarning struct { 3189 _ struct{} `type:"structure"` 3190 3191 // The name of the XML attribute that has been sanitized. 3192 AttributeName *string `locationName:"attributeName" type:"string"` 3193 3194 // The name of the XML element that has been sanitized. 3195 ElementName *string `locationName:"elementName" type:"string"` 3196 3197 // Required. The reason for which the XML elements or attributes were sanitized. 3198 // Possible values: DISALLOWED_ELEMENT_REMOVED, DISALLOWED_ATTRIBUTE_REMOVED, 3199 // INVALID_ATTRIBUTE_VALUE_REMOVED DISALLOWED_ELEMENT_REMOVED shows that the 3200 // provided element isn't allowed and has been removed. DISALLOWED_ATTRIBUTE_REMOVED 3201 // shows that the provided attribute isn't allowed and has been removed. INVALID_ATTRIBUTE_VALUE_REMOVED 3202 // shows that the provided value for the attribute isn't allowed and has been 3203 // removed. 3204 Reason *string `locationName:"reason" type:"string" enum:"SanitizationWarningReason"` 3205} 3206 3207// String returns the string representation 3208func (s SanitizationWarning) String() string { 3209 return awsutil.Prettify(s) 3210} 3211 3212// GoString returns the string representation 3213func (s SanitizationWarning) GoString() string { 3214 return s.String() 3215} 3216 3217// SetAttributeName sets the AttributeName field's value. 3218func (s *SanitizationWarning) SetAttributeName(v string) *SanitizationWarning { 3219 s.AttributeName = &v 3220 return s 3221} 3222 3223// SetElementName sets the ElementName field's value. 3224func (s *SanitizationWarning) SetElementName(v string) *SanitizationWarning { 3225 s.ElementName = &v 3226 return s 3227} 3228 3229// SetReason sets the Reason field's value. 3230func (s *SanitizationWarning) SetReason(v string) *SanitizationWarning { 3231 s.Reason = &v 3232 return s 3233} 3234 3235// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBrokerRequest 3236type UpdateBrokerRequest struct { 3237 _ struct{} `type:"structure"` 3238 3239 // BrokerId is a required field 3240 BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` 3241 3242 // A list of information about the configuration. 3243 Configuration *ConfigurationId `locationName:"configuration" type:"structure"` 3244} 3245 3246// String returns the string representation 3247func (s UpdateBrokerRequest) String() string { 3248 return awsutil.Prettify(s) 3249} 3250 3251// GoString returns the string representation 3252func (s UpdateBrokerRequest) GoString() string { 3253 return s.String() 3254} 3255 3256// Validate inspects the fields of the type to determine if they are valid. 3257func (s *UpdateBrokerRequest) Validate() error { 3258 invalidParams := request.ErrInvalidParams{Context: "UpdateBrokerRequest"} 3259 if s.BrokerId == nil { 3260 invalidParams.Add(request.NewErrParamRequired("BrokerId")) 3261 } 3262 3263 if invalidParams.Len() > 0 { 3264 return invalidParams 3265 } 3266 return nil 3267} 3268 3269// SetBrokerId sets the BrokerId field's value. 3270func (s *UpdateBrokerRequest) SetBrokerId(v string) *UpdateBrokerRequest { 3271 s.BrokerId = &v 3272 return s 3273} 3274 3275// SetConfiguration sets the Configuration field's value. 3276func (s *UpdateBrokerRequest) SetConfiguration(v *ConfigurationId) *UpdateBrokerRequest { 3277 s.Configuration = v 3278 return s 3279} 3280 3281// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBrokerResponse 3282type UpdateBrokerResponse struct { 3283 _ struct{} `type:"structure"` 3284 3285 BrokerId *string `locationName:"brokerId" type:"string"` 3286 3287 // A list of information about the configuration. 3288 Configuration *ConfigurationId `locationName:"configuration" type:"structure"` 3289} 3290 3291// String returns the string representation 3292func (s UpdateBrokerResponse) String() string { 3293 return awsutil.Prettify(s) 3294} 3295 3296// GoString returns the string representation 3297func (s UpdateBrokerResponse) GoString() string { 3298 return s.String() 3299} 3300 3301// SetBrokerId sets the BrokerId field's value. 3302func (s *UpdateBrokerResponse) SetBrokerId(v string) *UpdateBrokerResponse { 3303 s.BrokerId = &v 3304 return s 3305} 3306 3307// SetConfiguration sets the Configuration field's value. 3308func (s *UpdateBrokerResponse) SetConfiguration(v *ConfigurationId) *UpdateBrokerResponse { 3309 s.Configuration = v 3310 return s 3311} 3312 3313// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfigurationRequest 3314type UpdateConfigurationRequest struct { 3315 _ struct{} `type:"structure"` 3316 3317 // ConfigurationId is a required field 3318 ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"` 3319 3320 Data *string `locationName:"data" type:"string"` 3321 3322 Description *string `locationName:"description" type:"string"` 3323} 3324 3325// String returns the string representation 3326func (s UpdateConfigurationRequest) String() string { 3327 return awsutil.Prettify(s) 3328} 3329 3330// GoString returns the string representation 3331func (s UpdateConfigurationRequest) GoString() string { 3332 return s.String() 3333} 3334 3335// Validate inspects the fields of the type to determine if they are valid. 3336func (s *UpdateConfigurationRequest) Validate() error { 3337 invalidParams := request.ErrInvalidParams{Context: "UpdateConfigurationRequest"} 3338 if s.ConfigurationId == nil { 3339 invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) 3340 } 3341 3342 if invalidParams.Len() > 0 { 3343 return invalidParams 3344 } 3345 return nil 3346} 3347 3348// SetConfigurationId sets the ConfigurationId field's value. 3349func (s *UpdateConfigurationRequest) SetConfigurationId(v string) *UpdateConfigurationRequest { 3350 s.ConfigurationId = &v 3351 return s 3352} 3353 3354// SetData sets the Data field's value. 3355func (s *UpdateConfigurationRequest) SetData(v string) *UpdateConfigurationRequest { 3356 s.Data = &v 3357 return s 3358} 3359 3360// SetDescription sets the Description field's value. 3361func (s *UpdateConfigurationRequest) SetDescription(v string) *UpdateConfigurationRequest { 3362 s.Description = &v 3363 return s 3364} 3365 3366// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfigurationResponse 3367type UpdateConfigurationResponse struct { 3368 _ struct{} `type:"structure"` 3369 3370 Arn *string `locationName:"arn" type:"string"` 3371 3372 Id *string `locationName:"id" type:"string"` 3373 3374 // Returns information about the specified configuration revision. 3375 LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"` 3376 3377 Name *string `locationName:"name" type:"string"` 3378 3379 Warnings []*SanitizationWarning `locationName:"warnings" type:"list"` 3380} 3381 3382// String returns the string representation 3383func (s UpdateConfigurationResponse) String() string { 3384 return awsutil.Prettify(s) 3385} 3386 3387// GoString returns the string representation 3388func (s UpdateConfigurationResponse) GoString() string { 3389 return s.String() 3390} 3391 3392// SetArn sets the Arn field's value. 3393func (s *UpdateConfigurationResponse) SetArn(v string) *UpdateConfigurationResponse { 3394 s.Arn = &v 3395 return s 3396} 3397 3398// SetId sets the Id field's value. 3399func (s *UpdateConfigurationResponse) SetId(v string) *UpdateConfigurationResponse { 3400 s.Id = &v 3401 return s 3402} 3403 3404// SetLatestRevision sets the LatestRevision field's value. 3405func (s *UpdateConfigurationResponse) SetLatestRevision(v *ConfigurationRevision) *UpdateConfigurationResponse { 3406 s.LatestRevision = v 3407 return s 3408} 3409 3410// SetName sets the Name field's value. 3411func (s *UpdateConfigurationResponse) SetName(v string) *UpdateConfigurationResponse { 3412 s.Name = &v 3413 return s 3414} 3415 3416// SetWarnings sets the Warnings field's value. 3417func (s *UpdateConfigurationResponse) SetWarnings(v []*SanitizationWarning) *UpdateConfigurationResponse { 3418 s.Warnings = v 3419 return s 3420} 3421 3422// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUserResponse 3423type UpdateUserOutput struct { 3424 _ struct{} `type:"structure"` 3425} 3426 3427// String returns the string representation 3428func (s UpdateUserOutput) String() string { 3429 return awsutil.Prettify(s) 3430} 3431 3432// GoString returns the string representation 3433func (s UpdateUserOutput) GoString() string { 3434 return s.String() 3435} 3436 3437// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUserRequest 3438type UpdateUserRequest struct { 3439 _ struct{} `type:"structure"` 3440 3441 // BrokerId is a required field 3442 BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` 3443 3444 ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"` 3445 3446 Groups []*string `locationName:"groups" type:"list"` 3447 3448 Password *string `locationName:"password" type:"string"` 3449 3450 // Username is a required field 3451 Username *string `location:"uri" locationName:"username" type:"string" required:"true"` 3452} 3453 3454// String returns the string representation 3455func (s UpdateUserRequest) String() string { 3456 return awsutil.Prettify(s) 3457} 3458 3459// GoString returns the string representation 3460func (s UpdateUserRequest) GoString() string { 3461 return s.String() 3462} 3463 3464// Validate inspects the fields of the type to determine if they are valid. 3465func (s *UpdateUserRequest) Validate() error { 3466 invalidParams := request.ErrInvalidParams{Context: "UpdateUserRequest"} 3467 if s.BrokerId == nil { 3468 invalidParams.Add(request.NewErrParamRequired("BrokerId")) 3469 } 3470 if s.Username == nil { 3471 invalidParams.Add(request.NewErrParamRequired("Username")) 3472 } 3473 3474 if invalidParams.Len() > 0 { 3475 return invalidParams 3476 } 3477 return nil 3478} 3479 3480// SetBrokerId sets the BrokerId field's value. 3481func (s *UpdateUserRequest) SetBrokerId(v string) *UpdateUserRequest { 3482 s.BrokerId = &v 3483 return s 3484} 3485 3486// SetConsoleAccess sets the ConsoleAccess field's value. 3487func (s *UpdateUserRequest) SetConsoleAccess(v bool) *UpdateUserRequest { 3488 s.ConsoleAccess = &v 3489 return s 3490} 3491 3492// SetGroups sets the Groups field's value. 3493func (s *UpdateUserRequest) SetGroups(v []*string) *UpdateUserRequest { 3494 s.Groups = v 3495 return s 3496} 3497 3498// SetPassword sets the Password field's value. 3499func (s *UpdateUserRequest) SetPassword(v string) *UpdateUserRequest { 3500 s.Password = &v 3501 return s 3502} 3503 3504// SetUsername sets the Username field's value. 3505func (s *UpdateUserRequest) SetUsername(v string) *UpdateUserRequest { 3506 s.Username = &v 3507 return s 3508} 3509 3510// An ActiveMQ user associated with the broker. 3511// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/User 3512type User struct { 3513 _ struct{} `type:"structure"` 3514 3515 // Enables access to the the ActiveMQ Web Console for the ActiveMQ user. 3516 ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"` 3517 3518 // The list of groups (20 maximum) to which the ActiveMQ user belongs. This 3519 // value can contain only alphanumeric characters, dashes, periods, underscores, 3520 // and tildes (- . _ ~). This value must be 2-100 characters long. 3521 Groups []*string `locationName:"groups" type:"list"` 3522 3523 // Required. The password of the ActiveMQ user. This value must be at least 3524 // 12 characters long, must contain at least 4 unique characters, and must not 3525 // contain commas. 3526 Password *string `locationName:"password" type:"string"` 3527 3528 // Required. The username of the ActiveMQ user. This value can contain only 3529 // alphanumeric characters, dashes, periods, underscores, and tildes (- . _ 3530 // ~). This value must be 2-100 characters long. 3531 Username *string `locationName:"username" type:"string"` 3532} 3533 3534// String returns the string representation 3535func (s User) String() string { 3536 return awsutil.Prettify(s) 3537} 3538 3539// GoString returns the string representation 3540func (s User) GoString() string { 3541 return s.String() 3542} 3543 3544// SetConsoleAccess sets the ConsoleAccess field's value. 3545func (s *User) SetConsoleAccess(v bool) *User { 3546 s.ConsoleAccess = &v 3547 return s 3548} 3549 3550// SetGroups sets the Groups field's value. 3551func (s *User) SetGroups(v []*string) *User { 3552 s.Groups = v 3553 return s 3554} 3555 3556// SetPassword sets the Password field's value. 3557func (s *User) SetPassword(v string) *User { 3558 s.Password = &v 3559 return s 3560} 3561 3562// SetUsername sets the Username field's value. 3563func (s *User) SetUsername(v string) *User { 3564 s.Username = &v 3565 return s 3566} 3567 3568// Returns information about the status of the changes pending for the ActiveMQ 3569// user. 3570// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UserPendingChanges 3571type UserPendingChanges struct { 3572 _ struct{} `type:"structure"` 3573 3574 // Enables access to the the ActiveMQ Web Console for the ActiveMQ user. 3575 ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"` 3576 3577 // The list of groups (20 maximum) to which the ActiveMQ user belongs. This 3578 // value can contain only alphanumeric characters, dashes, periods, underscores, 3579 // and tildes (- . _ ~). This value must be 2-100 characters long. 3580 Groups []*string `locationName:"groups" type:"list"` 3581 3582 // Required. The type of change pending for the ActiveMQ user. Possible values: 3583 // CREATE, UPDATE, DELETE 3584 PendingChange *string `locationName:"pendingChange" type:"string" enum:"ChangeType"` 3585} 3586 3587// String returns the string representation 3588func (s UserPendingChanges) String() string { 3589 return awsutil.Prettify(s) 3590} 3591 3592// GoString returns the string representation 3593func (s UserPendingChanges) GoString() string { 3594 return s.String() 3595} 3596 3597// SetConsoleAccess sets the ConsoleAccess field's value. 3598func (s *UserPendingChanges) SetConsoleAccess(v bool) *UserPendingChanges { 3599 s.ConsoleAccess = &v 3600 return s 3601} 3602 3603// SetGroups sets the Groups field's value. 3604func (s *UserPendingChanges) SetGroups(v []*string) *UserPendingChanges { 3605 s.Groups = v 3606 return s 3607} 3608 3609// SetPendingChange sets the PendingChange field's value. 3610func (s *UserPendingChanges) SetPendingChange(v string) *UserPendingChanges { 3611 s.PendingChange = &v 3612 return s 3613} 3614 3615// Returns a list of all ActiveMQ users. 3616// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UserSummary 3617type UserSummary struct { 3618 _ struct{} `type:"structure"` 3619 3620 // The type of change pending for the ActiveMQ user. Possible values: CREATE, 3621 // UPDATE, DELETE 3622 PendingChange *string `locationName:"pendingChange" type:"string" enum:"ChangeType"` 3623 3624 // Required. The username of the ActiveMQ user. This value can contain only 3625 // alphanumeric characters, dashes, periods, underscores, and tildes (- . _ 3626 // ~). This value must be 2-100 characters long. 3627 Username *string `locationName:"username" type:"string"` 3628} 3629 3630// String returns the string representation 3631func (s UserSummary) String() string { 3632 return awsutil.Prettify(s) 3633} 3634 3635// GoString returns the string representation 3636func (s UserSummary) GoString() string { 3637 return s.String() 3638} 3639 3640// SetPendingChange sets the PendingChange field's value. 3641func (s *UserSummary) SetPendingChange(v string) *UserSummary { 3642 s.PendingChange = &v 3643 return s 3644} 3645 3646// SetUsername sets the Username field's value. 3647func (s *UserSummary) SetUsername(v string) *UserSummary { 3648 s.Username = &v 3649 return s 3650} 3651 3652// The scheduled time period relative to UTC during which Amazon MQ begins to 3653// apply pending updates or patches to the broker. 3654// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/WeeklyStartTime 3655type WeeklyStartTime struct { 3656 _ struct{} `type:"structure"` 3657 3658 // Required. The day of the week. Possible values: MONDAY, TUESDAY, WEDNESDAY, 3659 // THURSDAY, FRIDAY, SATURDAY, SUNDAY 3660 DayOfWeek *string `locationName:"dayOfWeek" type:"string" enum:"DayOfWeek"` 3661 3662 // Required. The time, in 24-hour format. 3663 TimeOfDay *string `locationName:"timeOfDay" type:"string"` 3664 3665 // The time zone, UTC by default, in either the Country/City format, or the 3666 // UTC offset format. 3667 TimeZone *string `locationName:"timeZone" type:"string"` 3668} 3669 3670// String returns the string representation 3671func (s WeeklyStartTime) String() string { 3672 return awsutil.Prettify(s) 3673} 3674 3675// GoString returns the string representation 3676func (s WeeklyStartTime) GoString() string { 3677 return s.String() 3678} 3679 3680// SetDayOfWeek sets the DayOfWeek field's value. 3681func (s *WeeklyStartTime) SetDayOfWeek(v string) *WeeklyStartTime { 3682 s.DayOfWeek = &v 3683 return s 3684} 3685 3686// SetTimeOfDay sets the TimeOfDay field's value. 3687func (s *WeeklyStartTime) SetTimeOfDay(v string) *WeeklyStartTime { 3688 s.TimeOfDay = &v 3689 return s 3690} 3691 3692// SetTimeZone sets the TimeZone field's value. 3693func (s *WeeklyStartTime) SetTimeZone(v string) *WeeklyStartTime { 3694 s.TimeZone = &v 3695 return s 3696} 3697 3698// The status of the broker. Possible values: CREATION_IN_PROGRESS, CREATION_FAILED, 3699// DELETION_IN_PROGRESS, RUNNING, REBOOT_IN_PROGRESS 3700const ( 3701 // BrokerStateCreationInProgress is a BrokerState enum value 3702 BrokerStateCreationInProgress = "CREATION_IN_PROGRESS" 3703 3704 // BrokerStateCreationFailed is a BrokerState enum value 3705 BrokerStateCreationFailed = "CREATION_FAILED" 3706 3707 // BrokerStateDeletionInProgress is a BrokerState enum value 3708 BrokerStateDeletionInProgress = "DELETION_IN_PROGRESS" 3709 3710 // BrokerStateRunning is a BrokerState enum value 3711 BrokerStateRunning = "RUNNING" 3712 3713 // BrokerStateRebootInProgress is a BrokerState enum value 3714 BrokerStateRebootInProgress = "REBOOT_IN_PROGRESS" 3715) 3716 3717// The type of change pending for the ActiveMQ user. Possible values: CREATE, 3718// UPDATE, DELETE 3719const ( 3720 // ChangeTypeCreate is a ChangeType enum value 3721 ChangeTypeCreate = "CREATE" 3722 3723 // ChangeTypeUpdate is a ChangeType enum value 3724 ChangeTypeUpdate = "UPDATE" 3725 3726 // ChangeTypeDelete is a ChangeType enum value 3727 ChangeTypeDelete = "DELETE" 3728) 3729 3730const ( 3731 // DayOfWeekMonday is a DayOfWeek enum value 3732 DayOfWeekMonday = "MONDAY" 3733 3734 // DayOfWeekTuesday is a DayOfWeek enum value 3735 DayOfWeekTuesday = "TUESDAY" 3736 3737 // DayOfWeekWednesday is a DayOfWeek enum value 3738 DayOfWeekWednesday = "WEDNESDAY" 3739 3740 // DayOfWeekThursday is a DayOfWeek enum value 3741 DayOfWeekThursday = "THURSDAY" 3742 3743 // DayOfWeekFriday is a DayOfWeek enum value 3744 DayOfWeekFriday = "FRIDAY" 3745 3746 // DayOfWeekSaturday is a DayOfWeek enum value 3747 DayOfWeekSaturday = "SATURDAY" 3748 3749 // DayOfWeekSunday is a DayOfWeek enum value 3750 DayOfWeekSunday = "SUNDAY" 3751) 3752 3753// The deployment mode of the broker. Possible values: SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ 3754// SINGLE_INSTANCE creates a single-instance broker in a single Availability 3755// Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby broker for high availability. 3756const ( 3757 // DeploymentModeSingleInstance is a DeploymentMode enum value 3758 DeploymentModeSingleInstance = "SINGLE_INSTANCE" 3759 3760 // DeploymentModeActiveStandbyMultiAz is a DeploymentMode enum value 3761 DeploymentModeActiveStandbyMultiAz = "ACTIVE_STANDBY_MULTI_AZ" 3762) 3763 3764// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ. 3765const ( 3766 // EngineTypeActivemq is a EngineType enum value 3767 EngineTypeActivemq = "ACTIVEMQ" 3768) 3769 3770// The reason for which the XML elements or attributes were sanitized. Possible 3771// values: DISALLOWED_ELEMENT_REMOVED, DISALLOWED_ATTRIBUTE_REMOVED, INVALID_ATTRIBUTE_VALUE_REMOVED 3772// DISALLOWED_ELEMENT_REMOVED shows that the provided element isn't allowed 3773// and has been removed. DISALLOWED_ATTRIBUTE_REMOVED shows that the provided 3774// attribute isn't allowed and has been removed. INVALID_ATTRIBUTE_VALUE_REMOVED 3775// shows that the provided value for the attribute isn't allowed and has been 3776// removed. 3777const ( 3778 // SanitizationWarningReasonDisallowedElementRemoved is a SanitizationWarningReason enum value 3779 SanitizationWarningReasonDisallowedElementRemoved = "DISALLOWED_ELEMENT_REMOVED" 3780 3781 // SanitizationWarningReasonDisallowedAttributeRemoved is a SanitizationWarningReason enum value 3782 SanitizationWarningReasonDisallowedAttributeRemoved = "DISALLOWED_ATTRIBUTE_REMOVED" 3783 3784 // SanitizationWarningReasonInvalidAttributeValueRemoved is a SanitizationWarningReason enum value 3785 SanitizationWarningReasonInvalidAttributeValueRemoved = "INVALID_ATTRIBUTE_VALUE_REMOVED" 3786) 3787