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 completes
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 completes
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 completes
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 completes
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 completes
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 completes
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 completes
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 completes
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 completes
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 completes
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 completes
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 completes
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 completes
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 completes
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 completes
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 completes
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 completes
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.
1516type BrokerInstance struct {
1517	_ struct{} `type:"structure"`
1518
1519	// The URL of the broker's ActiveMQ Web Console.
1520	ConsoleURL *string `locationName:"consoleURL" type:"string"`
1521
1522	// The broker's wire-level protocol endpoints.
1523	Endpoints []*string `locationName:"endpoints" type:"list"`
1524}
1525
1526// String returns the string representation
1527func (s BrokerInstance) String() string {
1528	return awsutil.Prettify(s)
1529}
1530
1531// GoString returns the string representation
1532func (s BrokerInstance) GoString() string {
1533	return s.String()
1534}
1535
1536// SetConsoleURL sets the ConsoleURL field's value.
1537func (s *BrokerInstance) SetConsoleURL(v string) *BrokerInstance {
1538	s.ConsoleURL = &v
1539	return s
1540}
1541
1542// SetEndpoints sets the Endpoints field's value.
1543func (s *BrokerInstance) SetEndpoints(v []*string) *BrokerInstance {
1544	s.Endpoints = v
1545	return s
1546}
1547
1548// The Amazon Resource Name (ARN) of the broker.
1549type BrokerSummary struct {
1550	_ struct{} `type:"structure"`
1551
1552	// The Amazon Resource Name (ARN) of the broker.
1553	BrokerArn *string `locationName:"brokerArn" type:"string"`
1554
1555	// The unique ID that Amazon MQ generates for the broker.
1556	BrokerId *string `locationName:"brokerId" type:"string"`
1557
1558	// The name of the broker. This value must be unique in your AWS account, 1-50
1559	// characters long, must contain only letters, numbers, dashes, and underscores,
1560	// and must not contain whitespaces, brackets, wildcard characters, or special
1561	// characters.
1562	BrokerName *string `locationName:"brokerName" type:"string"`
1563
1564	// The status of the broker. Possible values: CREATION_IN_PROGRESS, CREATION_FAILED,
1565	// DELETION_IN_PROGRESS, RUNNING, REBOOT_IN_PROGRESS
1566	BrokerState *string `locationName:"brokerState" type:"string" enum:"BrokerState"`
1567
1568	// Required. The deployment mode of the broker. Possible values: SINGLE_INSTANCE,
1569	// ACTIVE_STANDBY_MULTI_AZ SINGLE_INSTANCE creates a single-instance broker
1570	// in a single Availability Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby
1571	// broker for high availability.
1572	DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"`
1573
1574	// The broker's instance type. Possible values: mq.t2.micro, mq.m4.large
1575	HostInstanceType *string `locationName:"hostInstanceType" type:"string"`
1576}
1577
1578// String returns the string representation
1579func (s BrokerSummary) String() string {
1580	return awsutil.Prettify(s)
1581}
1582
1583// GoString returns the string representation
1584func (s BrokerSummary) GoString() string {
1585	return s.String()
1586}
1587
1588// SetBrokerArn sets the BrokerArn field's value.
1589func (s *BrokerSummary) SetBrokerArn(v string) *BrokerSummary {
1590	s.BrokerArn = &v
1591	return s
1592}
1593
1594// SetBrokerId sets the BrokerId field's value.
1595func (s *BrokerSummary) SetBrokerId(v string) *BrokerSummary {
1596	s.BrokerId = &v
1597	return s
1598}
1599
1600// SetBrokerName sets the BrokerName field's value.
1601func (s *BrokerSummary) SetBrokerName(v string) *BrokerSummary {
1602	s.BrokerName = &v
1603	return s
1604}
1605
1606// SetBrokerState sets the BrokerState field's value.
1607func (s *BrokerSummary) SetBrokerState(v string) *BrokerSummary {
1608	s.BrokerState = &v
1609	return s
1610}
1611
1612// SetDeploymentMode sets the DeploymentMode field's value.
1613func (s *BrokerSummary) SetDeploymentMode(v string) *BrokerSummary {
1614	s.DeploymentMode = &v
1615	return s
1616}
1617
1618// SetHostInstanceType sets the HostInstanceType field's value.
1619func (s *BrokerSummary) SetHostInstanceType(v string) *BrokerSummary {
1620	s.HostInstanceType = &v
1621	return s
1622}
1623
1624// Returns information about all configurations.
1625type Configuration struct {
1626	_ struct{} `type:"structure"`
1627
1628	// Required. The ARN of the configuration.
1629	Arn *string `locationName:"arn" type:"string"`
1630
1631	// Required. The description of the configuration.
1632	Description *string `locationName:"description" type:"string"`
1633
1634	// Required. The type of broker engine. Note: Currently, Amazon MQ supports
1635	// only ACTIVEMQ.
1636	EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
1637
1638	// Required. The version of the broker engine.
1639	EngineVersion *string `locationName:"engineVersion" type:"string"`
1640
1641	// Required. The unique ID that Amazon MQ generates for the configuration.
1642	Id *string `locationName:"id" type:"string"`
1643
1644	// Required. The latest revision of the configuration.
1645	LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
1646
1647	// Required. The name of the configuration. This value can contain only alphanumeric
1648	// characters, dashes, periods, underscores, and tildes (- . _ ~). This value
1649	// must be 1-150 characters long.
1650	Name *string `locationName:"name" type:"string"`
1651}
1652
1653// String returns the string representation
1654func (s Configuration) String() string {
1655	return awsutil.Prettify(s)
1656}
1657
1658// GoString returns the string representation
1659func (s Configuration) GoString() string {
1660	return s.String()
1661}
1662
1663// SetArn sets the Arn field's value.
1664func (s *Configuration) SetArn(v string) *Configuration {
1665	s.Arn = &v
1666	return s
1667}
1668
1669// SetDescription sets the Description field's value.
1670func (s *Configuration) SetDescription(v string) *Configuration {
1671	s.Description = &v
1672	return s
1673}
1674
1675// SetEngineType sets the EngineType field's value.
1676func (s *Configuration) SetEngineType(v string) *Configuration {
1677	s.EngineType = &v
1678	return s
1679}
1680
1681// SetEngineVersion sets the EngineVersion field's value.
1682func (s *Configuration) SetEngineVersion(v string) *Configuration {
1683	s.EngineVersion = &v
1684	return s
1685}
1686
1687// SetId sets the Id field's value.
1688func (s *Configuration) SetId(v string) *Configuration {
1689	s.Id = &v
1690	return s
1691}
1692
1693// SetLatestRevision sets the LatestRevision field's value.
1694func (s *Configuration) SetLatestRevision(v *ConfigurationRevision) *Configuration {
1695	s.LatestRevision = v
1696	return s
1697}
1698
1699// SetName sets the Name field's value.
1700func (s *Configuration) SetName(v string) *Configuration {
1701	s.Name = &v
1702	return s
1703}
1704
1705// A list of information about the configuration.
1706type ConfigurationId struct {
1707	_ struct{} `type:"structure"`
1708
1709	// Required. The unique ID that Amazon MQ generates for the configuration.
1710	Id *string `locationName:"id" type:"string"`
1711
1712	// The Universally Unique Identifier (UUID) of the request.
1713	Revision *int64 `locationName:"revision" type:"integer"`
1714}
1715
1716// String returns the string representation
1717func (s ConfigurationId) String() string {
1718	return awsutil.Prettify(s)
1719}
1720
1721// GoString returns the string representation
1722func (s ConfigurationId) GoString() string {
1723	return s.String()
1724}
1725
1726// SetId sets the Id field's value.
1727func (s *ConfigurationId) SetId(v string) *ConfigurationId {
1728	s.Id = &v
1729	return s
1730}
1731
1732// SetRevision sets the Revision field's value.
1733func (s *ConfigurationId) SetRevision(v int64) *ConfigurationId {
1734	s.Revision = &v
1735	return s
1736}
1737
1738// Returns information about the specified configuration revision.
1739type ConfigurationRevision struct {
1740	_ struct{} `type:"structure"`
1741
1742	// The description of the configuration revision.
1743	Description *string `locationName:"description" type:"string"`
1744
1745	// Required. The revision of the configuration.
1746	Revision *int64 `locationName:"revision" type:"integer"`
1747}
1748
1749// String returns the string representation
1750func (s ConfigurationRevision) String() string {
1751	return awsutil.Prettify(s)
1752}
1753
1754// GoString returns the string representation
1755func (s ConfigurationRevision) GoString() string {
1756	return s.String()
1757}
1758
1759// SetDescription sets the Description field's value.
1760func (s *ConfigurationRevision) SetDescription(v string) *ConfigurationRevision {
1761	s.Description = &v
1762	return s
1763}
1764
1765// SetRevision sets the Revision field's value.
1766func (s *ConfigurationRevision) SetRevision(v int64) *ConfigurationRevision {
1767	s.Revision = &v
1768	return s
1769}
1770
1771// Broker configuration information
1772type Configurations struct {
1773	_ struct{} `type:"structure"`
1774
1775	// The current configuration of the broker.
1776	Current *ConfigurationId `locationName:"current" type:"structure"`
1777
1778	// The history of configurations applied to the broker.
1779	History []*ConfigurationId `locationName:"history" type:"list"`
1780
1781	// The pending configuration of the broker.
1782	Pending *ConfigurationId `locationName:"pending" type:"structure"`
1783}
1784
1785// String returns the string representation
1786func (s Configurations) String() string {
1787	return awsutil.Prettify(s)
1788}
1789
1790// GoString returns the string representation
1791func (s Configurations) GoString() string {
1792	return s.String()
1793}
1794
1795// SetCurrent sets the Current field's value.
1796func (s *Configurations) SetCurrent(v *ConfigurationId) *Configurations {
1797	s.Current = v
1798	return s
1799}
1800
1801// SetHistory sets the History field's value.
1802func (s *Configurations) SetHistory(v []*ConfigurationId) *Configurations {
1803	s.History = v
1804	return s
1805}
1806
1807// SetPending sets the Pending field's value.
1808func (s *Configurations) SetPending(v *ConfigurationId) *Configurations {
1809	s.Pending = v
1810	return s
1811}
1812
1813type CreateBrokerRequest struct {
1814	_ struct{} `type:"structure"`
1815
1816	AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"`
1817
1818	BrokerName *string `locationName:"brokerName" type:"string"`
1819
1820	// A list of information about the configuration.
1821	Configuration *ConfigurationId `locationName:"configuration" type:"structure"`
1822
1823	CreatorRequestId *string `locationName:"creatorRequestId" type:"string" idempotencyToken:"true"`
1824
1825	// The deployment mode of the broker. Possible values: SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ
1826	// SINGLE_INSTANCE creates a single-instance broker in a single Availability
1827	// Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby broker for high availability.
1828	DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"`
1829
1830	// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
1831	EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
1832
1833	EngineVersion *string `locationName:"engineVersion" type:"string"`
1834
1835	HostInstanceType *string `locationName:"hostInstanceType" type:"string"`
1836
1837	// The scheduled time period relative to UTC during which Amazon MQ begins to
1838	// apply pending updates or patches to the broker.
1839	MaintenanceWindowStartTime *WeeklyStartTime `locationName:"maintenanceWindowStartTime" type:"structure"`
1840
1841	PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"`
1842
1843	SecurityGroups []*string `locationName:"securityGroups" type:"list"`
1844
1845	SubnetIds []*string `locationName:"subnetIds" type:"list"`
1846
1847	Users []*User `locationName:"users" type:"list"`
1848}
1849
1850// String returns the string representation
1851func (s CreateBrokerRequest) String() string {
1852	return awsutil.Prettify(s)
1853}
1854
1855// GoString returns the string representation
1856func (s CreateBrokerRequest) GoString() string {
1857	return s.String()
1858}
1859
1860// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
1861func (s *CreateBrokerRequest) SetAutoMinorVersionUpgrade(v bool) *CreateBrokerRequest {
1862	s.AutoMinorVersionUpgrade = &v
1863	return s
1864}
1865
1866// SetBrokerName sets the BrokerName field's value.
1867func (s *CreateBrokerRequest) SetBrokerName(v string) *CreateBrokerRequest {
1868	s.BrokerName = &v
1869	return s
1870}
1871
1872// SetConfiguration sets the Configuration field's value.
1873func (s *CreateBrokerRequest) SetConfiguration(v *ConfigurationId) *CreateBrokerRequest {
1874	s.Configuration = v
1875	return s
1876}
1877
1878// SetCreatorRequestId sets the CreatorRequestId field's value.
1879func (s *CreateBrokerRequest) SetCreatorRequestId(v string) *CreateBrokerRequest {
1880	s.CreatorRequestId = &v
1881	return s
1882}
1883
1884// SetDeploymentMode sets the DeploymentMode field's value.
1885func (s *CreateBrokerRequest) SetDeploymentMode(v string) *CreateBrokerRequest {
1886	s.DeploymentMode = &v
1887	return s
1888}
1889
1890// SetEngineType sets the EngineType field's value.
1891func (s *CreateBrokerRequest) SetEngineType(v string) *CreateBrokerRequest {
1892	s.EngineType = &v
1893	return s
1894}
1895
1896// SetEngineVersion sets the EngineVersion field's value.
1897func (s *CreateBrokerRequest) SetEngineVersion(v string) *CreateBrokerRequest {
1898	s.EngineVersion = &v
1899	return s
1900}
1901
1902// SetHostInstanceType sets the HostInstanceType field's value.
1903func (s *CreateBrokerRequest) SetHostInstanceType(v string) *CreateBrokerRequest {
1904	s.HostInstanceType = &v
1905	return s
1906}
1907
1908// SetMaintenanceWindowStartTime sets the MaintenanceWindowStartTime field's value.
1909func (s *CreateBrokerRequest) SetMaintenanceWindowStartTime(v *WeeklyStartTime) *CreateBrokerRequest {
1910	s.MaintenanceWindowStartTime = v
1911	return s
1912}
1913
1914// SetPubliclyAccessible sets the PubliclyAccessible field's value.
1915func (s *CreateBrokerRequest) SetPubliclyAccessible(v bool) *CreateBrokerRequest {
1916	s.PubliclyAccessible = &v
1917	return s
1918}
1919
1920// SetSecurityGroups sets the SecurityGroups field's value.
1921func (s *CreateBrokerRequest) SetSecurityGroups(v []*string) *CreateBrokerRequest {
1922	s.SecurityGroups = v
1923	return s
1924}
1925
1926// SetSubnetIds sets the SubnetIds field's value.
1927func (s *CreateBrokerRequest) SetSubnetIds(v []*string) *CreateBrokerRequest {
1928	s.SubnetIds = v
1929	return s
1930}
1931
1932// SetUsers sets the Users field's value.
1933func (s *CreateBrokerRequest) SetUsers(v []*User) *CreateBrokerRequest {
1934	s.Users = v
1935	return s
1936}
1937
1938type CreateBrokerResponse struct {
1939	_ struct{} `type:"structure"`
1940
1941	BrokerArn *string `locationName:"brokerArn" type:"string"`
1942
1943	BrokerId *string `locationName:"brokerId" type:"string"`
1944}
1945
1946// String returns the string representation
1947func (s CreateBrokerResponse) String() string {
1948	return awsutil.Prettify(s)
1949}
1950
1951// GoString returns the string representation
1952func (s CreateBrokerResponse) GoString() string {
1953	return s.String()
1954}
1955
1956// SetBrokerArn sets the BrokerArn field's value.
1957func (s *CreateBrokerResponse) SetBrokerArn(v string) *CreateBrokerResponse {
1958	s.BrokerArn = &v
1959	return s
1960}
1961
1962// SetBrokerId sets the BrokerId field's value.
1963func (s *CreateBrokerResponse) SetBrokerId(v string) *CreateBrokerResponse {
1964	s.BrokerId = &v
1965	return s
1966}
1967
1968type CreateConfigurationRequest struct {
1969	_ struct{} `type:"structure"`
1970
1971	// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
1972	EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
1973
1974	EngineVersion *string `locationName:"engineVersion" type:"string"`
1975
1976	Name *string `locationName:"name" type:"string"`
1977}
1978
1979// String returns the string representation
1980func (s CreateConfigurationRequest) String() string {
1981	return awsutil.Prettify(s)
1982}
1983
1984// GoString returns the string representation
1985func (s CreateConfigurationRequest) GoString() string {
1986	return s.String()
1987}
1988
1989// SetEngineType sets the EngineType field's value.
1990func (s *CreateConfigurationRequest) SetEngineType(v string) *CreateConfigurationRequest {
1991	s.EngineType = &v
1992	return s
1993}
1994
1995// SetEngineVersion sets the EngineVersion field's value.
1996func (s *CreateConfigurationRequest) SetEngineVersion(v string) *CreateConfigurationRequest {
1997	s.EngineVersion = &v
1998	return s
1999}
2000
2001// SetName sets the Name field's value.
2002func (s *CreateConfigurationRequest) SetName(v string) *CreateConfigurationRequest {
2003	s.Name = &v
2004	return s
2005}
2006
2007type CreateConfigurationResponse struct {
2008	_ struct{} `type:"structure"`
2009
2010	Arn *string `locationName:"arn" type:"string"`
2011
2012	Id *string `locationName:"id" type:"string"`
2013
2014	// Returns information about the specified configuration revision.
2015	LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
2016
2017	Name *string `locationName:"name" type:"string"`
2018}
2019
2020// String returns the string representation
2021func (s CreateConfigurationResponse) String() string {
2022	return awsutil.Prettify(s)
2023}
2024
2025// GoString returns the string representation
2026func (s CreateConfigurationResponse) GoString() string {
2027	return s.String()
2028}
2029
2030// SetArn sets the Arn field's value.
2031func (s *CreateConfigurationResponse) SetArn(v string) *CreateConfigurationResponse {
2032	s.Arn = &v
2033	return s
2034}
2035
2036// SetId sets the Id field's value.
2037func (s *CreateConfigurationResponse) SetId(v string) *CreateConfigurationResponse {
2038	s.Id = &v
2039	return s
2040}
2041
2042// SetLatestRevision sets the LatestRevision field's value.
2043func (s *CreateConfigurationResponse) SetLatestRevision(v *ConfigurationRevision) *CreateConfigurationResponse {
2044	s.LatestRevision = v
2045	return s
2046}
2047
2048// SetName sets the Name field's value.
2049func (s *CreateConfigurationResponse) SetName(v string) *CreateConfigurationResponse {
2050	s.Name = &v
2051	return s
2052}
2053
2054type CreateUserOutput struct {
2055	_ struct{} `type:"structure"`
2056}
2057
2058// String returns the string representation
2059func (s CreateUserOutput) String() string {
2060	return awsutil.Prettify(s)
2061}
2062
2063// GoString returns the string representation
2064func (s CreateUserOutput) GoString() string {
2065	return s.String()
2066}
2067
2068type CreateUserRequest struct {
2069	_ struct{} `type:"structure"`
2070
2071	// BrokerId is a required field
2072	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
2073
2074	ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
2075
2076	Groups []*string `locationName:"groups" type:"list"`
2077
2078	Password *string `locationName:"password" type:"string"`
2079
2080	// Username is a required field
2081	Username *string `location:"uri" locationName:"username" type:"string" required:"true"`
2082}
2083
2084// String returns the string representation
2085func (s CreateUserRequest) String() string {
2086	return awsutil.Prettify(s)
2087}
2088
2089// GoString returns the string representation
2090func (s CreateUserRequest) GoString() string {
2091	return s.String()
2092}
2093
2094// Validate inspects the fields of the type to determine if they are valid.
2095func (s *CreateUserRequest) Validate() error {
2096	invalidParams := request.ErrInvalidParams{Context: "CreateUserRequest"}
2097	if s.BrokerId == nil {
2098		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
2099	}
2100	if s.Username == nil {
2101		invalidParams.Add(request.NewErrParamRequired("Username"))
2102	}
2103
2104	if invalidParams.Len() > 0 {
2105		return invalidParams
2106	}
2107	return nil
2108}
2109
2110// SetBrokerId sets the BrokerId field's value.
2111func (s *CreateUserRequest) SetBrokerId(v string) *CreateUserRequest {
2112	s.BrokerId = &v
2113	return s
2114}
2115
2116// SetConsoleAccess sets the ConsoleAccess field's value.
2117func (s *CreateUserRequest) SetConsoleAccess(v bool) *CreateUserRequest {
2118	s.ConsoleAccess = &v
2119	return s
2120}
2121
2122// SetGroups sets the Groups field's value.
2123func (s *CreateUserRequest) SetGroups(v []*string) *CreateUserRequest {
2124	s.Groups = v
2125	return s
2126}
2127
2128// SetPassword sets the Password field's value.
2129func (s *CreateUserRequest) SetPassword(v string) *CreateUserRequest {
2130	s.Password = &v
2131	return s
2132}
2133
2134// SetUsername sets the Username field's value.
2135func (s *CreateUserRequest) SetUsername(v string) *CreateUserRequest {
2136	s.Username = &v
2137	return s
2138}
2139
2140type DeleteBrokerInput struct {
2141	_ struct{} `type:"structure"`
2142
2143	// BrokerId is a required field
2144	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
2145}
2146
2147// String returns the string representation
2148func (s DeleteBrokerInput) String() string {
2149	return awsutil.Prettify(s)
2150}
2151
2152// GoString returns the string representation
2153func (s DeleteBrokerInput) GoString() string {
2154	return s.String()
2155}
2156
2157// Validate inspects the fields of the type to determine if they are valid.
2158func (s *DeleteBrokerInput) Validate() error {
2159	invalidParams := request.ErrInvalidParams{Context: "DeleteBrokerInput"}
2160	if s.BrokerId == nil {
2161		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
2162	}
2163
2164	if invalidParams.Len() > 0 {
2165		return invalidParams
2166	}
2167	return nil
2168}
2169
2170// SetBrokerId sets the BrokerId field's value.
2171func (s *DeleteBrokerInput) SetBrokerId(v string) *DeleteBrokerInput {
2172	s.BrokerId = &v
2173	return s
2174}
2175
2176type DeleteBrokerResponse struct {
2177	_ struct{} `type:"structure"`
2178
2179	BrokerId *string `locationName:"brokerId" type:"string"`
2180}
2181
2182// String returns the string representation
2183func (s DeleteBrokerResponse) String() string {
2184	return awsutil.Prettify(s)
2185}
2186
2187// GoString returns the string representation
2188func (s DeleteBrokerResponse) GoString() string {
2189	return s.String()
2190}
2191
2192// SetBrokerId sets the BrokerId field's value.
2193func (s *DeleteBrokerResponse) SetBrokerId(v string) *DeleteBrokerResponse {
2194	s.BrokerId = &v
2195	return s
2196}
2197
2198type DeleteUserInput struct {
2199	_ struct{} `type:"structure"`
2200
2201	// BrokerId is a required field
2202	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
2203
2204	// Username is a required field
2205	Username *string `location:"uri" locationName:"username" type:"string" required:"true"`
2206}
2207
2208// String returns the string representation
2209func (s DeleteUserInput) String() string {
2210	return awsutil.Prettify(s)
2211}
2212
2213// GoString returns the string representation
2214func (s DeleteUserInput) GoString() string {
2215	return s.String()
2216}
2217
2218// Validate inspects the fields of the type to determine if they are valid.
2219func (s *DeleteUserInput) Validate() error {
2220	invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"}
2221	if s.BrokerId == nil {
2222		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
2223	}
2224	if s.Username == nil {
2225		invalidParams.Add(request.NewErrParamRequired("Username"))
2226	}
2227
2228	if invalidParams.Len() > 0 {
2229		return invalidParams
2230	}
2231	return nil
2232}
2233
2234// SetBrokerId sets the BrokerId field's value.
2235func (s *DeleteUserInput) SetBrokerId(v string) *DeleteUserInput {
2236	s.BrokerId = &v
2237	return s
2238}
2239
2240// SetUsername sets the Username field's value.
2241func (s *DeleteUserInput) SetUsername(v string) *DeleteUserInput {
2242	s.Username = &v
2243	return s
2244}
2245
2246type DeleteUserOutput struct {
2247	_ struct{} `type:"structure"`
2248}
2249
2250// String returns the string representation
2251func (s DeleteUserOutput) String() string {
2252	return awsutil.Prettify(s)
2253}
2254
2255// GoString returns the string representation
2256func (s DeleteUserOutput) GoString() string {
2257	return s.String()
2258}
2259
2260type DescribeBrokerInput struct {
2261	_ struct{} `type:"structure"`
2262
2263	// BrokerId is a required field
2264	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
2265}
2266
2267// String returns the string representation
2268func (s DescribeBrokerInput) String() string {
2269	return awsutil.Prettify(s)
2270}
2271
2272// GoString returns the string representation
2273func (s DescribeBrokerInput) GoString() string {
2274	return s.String()
2275}
2276
2277// Validate inspects the fields of the type to determine if they are valid.
2278func (s *DescribeBrokerInput) Validate() error {
2279	invalidParams := request.ErrInvalidParams{Context: "DescribeBrokerInput"}
2280	if s.BrokerId == nil {
2281		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
2282	}
2283
2284	if invalidParams.Len() > 0 {
2285		return invalidParams
2286	}
2287	return nil
2288}
2289
2290// SetBrokerId sets the BrokerId field's value.
2291func (s *DescribeBrokerInput) SetBrokerId(v string) *DescribeBrokerInput {
2292	s.BrokerId = &v
2293	return s
2294}
2295
2296type DescribeBrokerResponse struct {
2297	_ struct{} `type:"structure"`
2298
2299	AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"`
2300
2301	BrokerArn *string `locationName:"brokerArn" type:"string"`
2302
2303	BrokerId *string `locationName:"brokerId" type:"string"`
2304
2305	BrokerInstances []*BrokerInstance `locationName:"brokerInstances" type:"list"`
2306
2307	BrokerName *string `locationName:"brokerName" type:"string"`
2308
2309	// The status of the broker. Possible values: CREATION_IN_PROGRESS, CREATION_FAILED,
2310	// DELETION_IN_PROGRESS, RUNNING, REBOOT_IN_PROGRESS
2311	BrokerState *string `locationName:"brokerState" type:"string" enum:"BrokerState"`
2312
2313	// Broker configuration information
2314	Configurations *Configurations `locationName:"configurations" type:"structure"`
2315
2316	// The deployment mode of the broker. Possible values: SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ
2317	// SINGLE_INSTANCE creates a single-instance broker in a single Availability
2318	// Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby broker for high availability.
2319	DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"`
2320
2321	// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
2322	EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
2323
2324	EngineVersion *string `locationName:"engineVersion" type:"string"`
2325
2326	HostInstanceType *string `locationName:"hostInstanceType" type:"string"`
2327
2328	// The scheduled time period relative to UTC during which Amazon MQ begins to
2329	// apply pending updates or patches to the broker.
2330	MaintenanceWindowStartTime *WeeklyStartTime `locationName:"maintenanceWindowStartTime" type:"structure"`
2331
2332	PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"`
2333
2334	SecurityGroups []*string `locationName:"securityGroups" type:"list"`
2335
2336	SubnetIds []*string `locationName:"subnetIds" type:"list"`
2337
2338	Users []*UserSummary `locationName:"users" type:"list"`
2339}
2340
2341// String returns the string representation
2342func (s DescribeBrokerResponse) String() string {
2343	return awsutil.Prettify(s)
2344}
2345
2346// GoString returns the string representation
2347func (s DescribeBrokerResponse) GoString() string {
2348	return s.String()
2349}
2350
2351// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
2352func (s *DescribeBrokerResponse) SetAutoMinorVersionUpgrade(v bool) *DescribeBrokerResponse {
2353	s.AutoMinorVersionUpgrade = &v
2354	return s
2355}
2356
2357// SetBrokerArn sets the BrokerArn field's value.
2358func (s *DescribeBrokerResponse) SetBrokerArn(v string) *DescribeBrokerResponse {
2359	s.BrokerArn = &v
2360	return s
2361}
2362
2363// SetBrokerId sets the BrokerId field's value.
2364func (s *DescribeBrokerResponse) SetBrokerId(v string) *DescribeBrokerResponse {
2365	s.BrokerId = &v
2366	return s
2367}
2368
2369// SetBrokerInstances sets the BrokerInstances field's value.
2370func (s *DescribeBrokerResponse) SetBrokerInstances(v []*BrokerInstance) *DescribeBrokerResponse {
2371	s.BrokerInstances = v
2372	return s
2373}
2374
2375// SetBrokerName sets the BrokerName field's value.
2376func (s *DescribeBrokerResponse) SetBrokerName(v string) *DescribeBrokerResponse {
2377	s.BrokerName = &v
2378	return s
2379}
2380
2381// SetBrokerState sets the BrokerState field's value.
2382func (s *DescribeBrokerResponse) SetBrokerState(v string) *DescribeBrokerResponse {
2383	s.BrokerState = &v
2384	return s
2385}
2386
2387// SetConfigurations sets the Configurations field's value.
2388func (s *DescribeBrokerResponse) SetConfigurations(v *Configurations) *DescribeBrokerResponse {
2389	s.Configurations = v
2390	return s
2391}
2392
2393// SetDeploymentMode sets the DeploymentMode field's value.
2394func (s *DescribeBrokerResponse) SetDeploymentMode(v string) *DescribeBrokerResponse {
2395	s.DeploymentMode = &v
2396	return s
2397}
2398
2399// SetEngineType sets the EngineType field's value.
2400func (s *DescribeBrokerResponse) SetEngineType(v string) *DescribeBrokerResponse {
2401	s.EngineType = &v
2402	return s
2403}
2404
2405// SetEngineVersion sets the EngineVersion field's value.
2406func (s *DescribeBrokerResponse) SetEngineVersion(v string) *DescribeBrokerResponse {
2407	s.EngineVersion = &v
2408	return s
2409}
2410
2411// SetHostInstanceType sets the HostInstanceType field's value.
2412func (s *DescribeBrokerResponse) SetHostInstanceType(v string) *DescribeBrokerResponse {
2413	s.HostInstanceType = &v
2414	return s
2415}
2416
2417// SetMaintenanceWindowStartTime sets the MaintenanceWindowStartTime field's value.
2418func (s *DescribeBrokerResponse) SetMaintenanceWindowStartTime(v *WeeklyStartTime) *DescribeBrokerResponse {
2419	s.MaintenanceWindowStartTime = v
2420	return s
2421}
2422
2423// SetPubliclyAccessible sets the PubliclyAccessible field's value.
2424func (s *DescribeBrokerResponse) SetPubliclyAccessible(v bool) *DescribeBrokerResponse {
2425	s.PubliclyAccessible = &v
2426	return s
2427}
2428
2429// SetSecurityGroups sets the SecurityGroups field's value.
2430func (s *DescribeBrokerResponse) SetSecurityGroups(v []*string) *DescribeBrokerResponse {
2431	s.SecurityGroups = v
2432	return s
2433}
2434
2435// SetSubnetIds sets the SubnetIds field's value.
2436func (s *DescribeBrokerResponse) SetSubnetIds(v []*string) *DescribeBrokerResponse {
2437	s.SubnetIds = v
2438	return s
2439}
2440
2441// SetUsers sets the Users field's value.
2442func (s *DescribeBrokerResponse) SetUsers(v []*UserSummary) *DescribeBrokerResponse {
2443	s.Users = v
2444	return s
2445}
2446
2447type DescribeConfigurationInput struct {
2448	_ struct{} `type:"structure"`
2449
2450	// ConfigurationId is a required field
2451	ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"`
2452}
2453
2454// String returns the string representation
2455func (s DescribeConfigurationInput) String() string {
2456	return awsutil.Prettify(s)
2457}
2458
2459// GoString returns the string representation
2460func (s DescribeConfigurationInput) GoString() string {
2461	return s.String()
2462}
2463
2464// Validate inspects the fields of the type to determine if they are valid.
2465func (s *DescribeConfigurationInput) Validate() error {
2466	invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationInput"}
2467	if s.ConfigurationId == nil {
2468		invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
2469	}
2470
2471	if invalidParams.Len() > 0 {
2472		return invalidParams
2473	}
2474	return nil
2475}
2476
2477// SetConfigurationId sets the ConfigurationId field's value.
2478func (s *DescribeConfigurationInput) SetConfigurationId(v string) *DescribeConfigurationInput {
2479	s.ConfigurationId = &v
2480	return s
2481}
2482
2483type DescribeConfigurationOutput struct {
2484	_ struct{} `type:"structure"`
2485
2486	Arn *string `locationName:"arn" type:"string"`
2487
2488	Description *string `locationName:"description" type:"string"`
2489
2490	// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
2491	EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
2492
2493	EngineVersion *string `locationName:"engineVersion" type:"string"`
2494
2495	Id *string `locationName:"id" type:"string"`
2496
2497	// Returns information about the specified configuration revision.
2498	LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
2499
2500	Name *string `locationName:"name" type:"string"`
2501}
2502
2503// String returns the string representation
2504func (s DescribeConfigurationOutput) String() string {
2505	return awsutil.Prettify(s)
2506}
2507
2508// GoString returns the string representation
2509func (s DescribeConfigurationOutput) GoString() string {
2510	return s.String()
2511}
2512
2513// SetArn sets the Arn field's value.
2514func (s *DescribeConfigurationOutput) SetArn(v string) *DescribeConfigurationOutput {
2515	s.Arn = &v
2516	return s
2517}
2518
2519// SetDescription sets the Description field's value.
2520func (s *DescribeConfigurationOutput) SetDescription(v string) *DescribeConfigurationOutput {
2521	s.Description = &v
2522	return s
2523}
2524
2525// SetEngineType sets the EngineType field's value.
2526func (s *DescribeConfigurationOutput) SetEngineType(v string) *DescribeConfigurationOutput {
2527	s.EngineType = &v
2528	return s
2529}
2530
2531// SetEngineVersion sets the EngineVersion field's value.
2532func (s *DescribeConfigurationOutput) SetEngineVersion(v string) *DescribeConfigurationOutput {
2533	s.EngineVersion = &v
2534	return s
2535}
2536
2537// SetId sets the Id field's value.
2538func (s *DescribeConfigurationOutput) SetId(v string) *DescribeConfigurationOutput {
2539	s.Id = &v
2540	return s
2541}
2542
2543// SetLatestRevision sets the LatestRevision field's value.
2544func (s *DescribeConfigurationOutput) SetLatestRevision(v *ConfigurationRevision) *DescribeConfigurationOutput {
2545	s.LatestRevision = v
2546	return s
2547}
2548
2549// SetName sets the Name field's value.
2550func (s *DescribeConfigurationOutput) SetName(v string) *DescribeConfigurationOutput {
2551	s.Name = &v
2552	return s
2553}
2554
2555type DescribeConfigurationRevisionInput struct {
2556	_ struct{} `type:"structure"`
2557
2558	// ConfigurationId is a required field
2559	ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"`
2560
2561	// ConfigurationRevision is a required field
2562	ConfigurationRevision *string `location:"uri" locationName:"configuration-revision" type:"string" required:"true"`
2563}
2564
2565// String returns the string representation
2566func (s DescribeConfigurationRevisionInput) String() string {
2567	return awsutil.Prettify(s)
2568}
2569
2570// GoString returns the string representation
2571func (s DescribeConfigurationRevisionInput) GoString() string {
2572	return s.String()
2573}
2574
2575// Validate inspects the fields of the type to determine if they are valid.
2576func (s *DescribeConfigurationRevisionInput) Validate() error {
2577	invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationRevisionInput"}
2578	if s.ConfigurationId == nil {
2579		invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
2580	}
2581	if s.ConfigurationRevision == nil {
2582		invalidParams.Add(request.NewErrParamRequired("ConfigurationRevision"))
2583	}
2584
2585	if invalidParams.Len() > 0 {
2586		return invalidParams
2587	}
2588	return nil
2589}
2590
2591// SetConfigurationId sets the ConfigurationId field's value.
2592func (s *DescribeConfigurationRevisionInput) SetConfigurationId(v string) *DescribeConfigurationRevisionInput {
2593	s.ConfigurationId = &v
2594	return s
2595}
2596
2597// SetConfigurationRevision sets the ConfigurationRevision field's value.
2598func (s *DescribeConfigurationRevisionInput) SetConfigurationRevision(v string) *DescribeConfigurationRevisionInput {
2599	s.ConfigurationRevision = &v
2600	return s
2601}
2602
2603type DescribeConfigurationRevisionResponse struct {
2604	_ struct{} `type:"structure"`
2605
2606	ConfigurationId *string `locationName:"configurationId" type:"string"`
2607
2608	Data *string `locationName:"data" type:"string"`
2609
2610	Description *string `locationName:"description" type:"string"`
2611}
2612
2613// String returns the string representation
2614func (s DescribeConfigurationRevisionResponse) String() string {
2615	return awsutil.Prettify(s)
2616}
2617
2618// GoString returns the string representation
2619func (s DescribeConfigurationRevisionResponse) GoString() string {
2620	return s.String()
2621}
2622
2623// SetConfigurationId sets the ConfigurationId field's value.
2624func (s *DescribeConfigurationRevisionResponse) SetConfigurationId(v string) *DescribeConfigurationRevisionResponse {
2625	s.ConfigurationId = &v
2626	return s
2627}
2628
2629// SetData sets the Data field's value.
2630func (s *DescribeConfigurationRevisionResponse) SetData(v string) *DescribeConfigurationRevisionResponse {
2631	s.Data = &v
2632	return s
2633}
2634
2635// SetDescription sets the Description field's value.
2636func (s *DescribeConfigurationRevisionResponse) SetDescription(v string) *DescribeConfigurationRevisionResponse {
2637	s.Description = &v
2638	return s
2639}
2640
2641type DescribeUserInput struct {
2642	_ struct{} `type:"structure"`
2643
2644	// BrokerId is a required field
2645	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
2646
2647	// Username is a required field
2648	Username *string `location:"uri" locationName:"username" type:"string" required:"true"`
2649}
2650
2651// String returns the string representation
2652func (s DescribeUserInput) String() string {
2653	return awsutil.Prettify(s)
2654}
2655
2656// GoString returns the string representation
2657func (s DescribeUserInput) GoString() string {
2658	return s.String()
2659}
2660
2661// Validate inspects the fields of the type to determine if they are valid.
2662func (s *DescribeUserInput) Validate() error {
2663	invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"}
2664	if s.BrokerId == nil {
2665		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
2666	}
2667	if s.Username == nil {
2668		invalidParams.Add(request.NewErrParamRequired("Username"))
2669	}
2670
2671	if invalidParams.Len() > 0 {
2672		return invalidParams
2673	}
2674	return nil
2675}
2676
2677// SetBrokerId sets the BrokerId field's value.
2678func (s *DescribeUserInput) SetBrokerId(v string) *DescribeUserInput {
2679	s.BrokerId = &v
2680	return s
2681}
2682
2683// SetUsername sets the Username field's value.
2684func (s *DescribeUserInput) SetUsername(v string) *DescribeUserInput {
2685	s.Username = &v
2686	return s
2687}
2688
2689type DescribeUserResponse struct {
2690	_ struct{} `type:"structure"`
2691
2692	BrokerId *string `locationName:"brokerId" type:"string"`
2693
2694	ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
2695
2696	Groups []*string `locationName:"groups" type:"list"`
2697
2698	// Returns information about the status of the changes pending for the ActiveMQ
2699	// user.
2700	Pending *UserPendingChanges `locationName:"pending" type:"structure"`
2701
2702	Username *string `locationName:"username" type:"string"`
2703}
2704
2705// String returns the string representation
2706func (s DescribeUserResponse) String() string {
2707	return awsutil.Prettify(s)
2708}
2709
2710// GoString returns the string representation
2711func (s DescribeUserResponse) GoString() string {
2712	return s.String()
2713}
2714
2715// SetBrokerId sets the BrokerId field's value.
2716func (s *DescribeUserResponse) SetBrokerId(v string) *DescribeUserResponse {
2717	s.BrokerId = &v
2718	return s
2719}
2720
2721// SetConsoleAccess sets the ConsoleAccess field's value.
2722func (s *DescribeUserResponse) SetConsoleAccess(v bool) *DescribeUserResponse {
2723	s.ConsoleAccess = &v
2724	return s
2725}
2726
2727// SetGroups sets the Groups field's value.
2728func (s *DescribeUserResponse) SetGroups(v []*string) *DescribeUserResponse {
2729	s.Groups = v
2730	return s
2731}
2732
2733// SetPending sets the Pending field's value.
2734func (s *DescribeUserResponse) SetPending(v *UserPendingChanges) *DescribeUserResponse {
2735	s.Pending = v
2736	return s
2737}
2738
2739// SetUsername sets the Username field's value.
2740func (s *DescribeUserResponse) SetUsername(v string) *DescribeUserResponse {
2741	s.Username = &v
2742	return s
2743}
2744
2745type ListBrokersInput struct {
2746	_ struct{} `type:"structure"`
2747
2748	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
2749
2750	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
2751}
2752
2753// String returns the string representation
2754func (s ListBrokersInput) String() string {
2755	return awsutil.Prettify(s)
2756}
2757
2758// GoString returns the string representation
2759func (s ListBrokersInput) GoString() string {
2760	return s.String()
2761}
2762
2763// Validate inspects the fields of the type to determine if they are valid.
2764func (s *ListBrokersInput) Validate() error {
2765	invalidParams := request.ErrInvalidParams{Context: "ListBrokersInput"}
2766	if s.MaxResults != nil && *s.MaxResults < 1 {
2767		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
2768	}
2769
2770	if invalidParams.Len() > 0 {
2771		return invalidParams
2772	}
2773	return nil
2774}
2775
2776// SetMaxResults sets the MaxResults field's value.
2777func (s *ListBrokersInput) SetMaxResults(v int64) *ListBrokersInput {
2778	s.MaxResults = &v
2779	return s
2780}
2781
2782// SetNextToken sets the NextToken field's value.
2783func (s *ListBrokersInput) SetNextToken(v string) *ListBrokersInput {
2784	s.NextToken = &v
2785	return s
2786}
2787
2788type ListBrokersResponse struct {
2789	_ struct{} `type:"structure"`
2790
2791	BrokerSummaries []*BrokerSummary `locationName:"brokerSummaries" type:"list"`
2792
2793	NextToken *string `locationName:"nextToken" type:"string"`
2794}
2795
2796// String returns the string representation
2797func (s ListBrokersResponse) String() string {
2798	return awsutil.Prettify(s)
2799}
2800
2801// GoString returns the string representation
2802func (s ListBrokersResponse) GoString() string {
2803	return s.String()
2804}
2805
2806// SetBrokerSummaries sets the BrokerSummaries field's value.
2807func (s *ListBrokersResponse) SetBrokerSummaries(v []*BrokerSummary) *ListBrokersResponse {
2808	s.BrokerSummaries = v
2809	return s
2810}
2811
2812// SetNextToken sets the NextToken field's value.
2813func (s *ListBrokersResponse) SetNextToken(v string) *ListBrokersResponse {
2814	s.NextToken = &v
2815	return s
2816}
2817
2818type ListConfigurationRevisionsInput struct {
2819	_ struct{} `type:"structure"`
2820
2821	// ConfigurationId is a required field
2822	ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"`
2823
2824	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
2825
2826	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
2827}
2828
2829// String returns the string representation
2830func (s ListConfigurationRevisionsInput) String() string {
2831	return awsutil.Prettify(s)
2832}
2833
2834// GoString returns the string representation
2835func (s ListConfigurationRevisionsInput) GoString() string {
2836	return s.String()
2837}
2838
2839// Validate inspects the fields of the type to determine if they are valid.
2840func (s *ListConfigurationRevisionsInput) Validate() error {
2841	invalidParams := request.ErrInvalidParams{Context: "ListConfigurationRevisionsInput"}
2842	if s.ConfigurationId == nil {
2843		invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
2844	}
2845	if s.MaxResults != nil && *s.MaxResults < 1 {
2846		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
2847	}
2848
2849	if invalidParams.Len() > 0 {
2850		return invalidParams
2851	}
2852	return nil
2853}
2854
2855// SetConfigurationId sets the ConfigurationId field's value.
2856func (s *ListConfigurationRevisionsInput) SetConfigurationId(v string) *ListConfigurationRevisionsInput {
2857	s.ConfigurationId = &v
2858	return s
2859}
2860
2861// SetMaxResults sets the MaxResults field's value.
2862func (s *ListConfigurationRevisionsInput) SetMaxResults(v int64) *ListConfigurationRevisionsInput {
2863	s.MaxResults = &v
2864	return s
2865}
2866
2867// SetNextToken sets the NextToken field's value.
2868func (s *ListConfigurationRevisionsInput) SetNextToken(v string) *ListConfigurationRevisionsInput {
2869	s.NextToken = &v
2870	return s
2871}
2872
2873type ListConfigurationRevisionsResponse struct {
2874	_ struct{} `type:"structure"`
2875
2876	ConfigurationId *string `locationName:"configurationId" type:"string"`
2877
2878	MaxResults *int64 `locationName:"maxResults" type:"integer"`
2879
2880	NextToken *string `locationName:"nextToken" type:"string"`
2881
2882	Revisions []*ConfigurationRevision `locationName:"revisions" type:"list"`
2883}
2884
2885// String returns the string representation
2886func (s ListConfigurationRevisionsResponse) String() string {
2887	return awsutil.Prettify(s)
2888}
2889
2890// GoString returns the string representation
2891func (s ListConfigurationRevisionsResponse) GoString() string {
2892	return s.String()
2893}
2894
2895// SetConfigurationId sets the ConfigurationId field's value.
2896func (s *ListConfigurationRevisionsResponse) SetConfigurationId(v string) *ListConfigurationRevisionsResponse {
2897	s.ConfigurationId = &v
2898	return s
2899}
2900
2901// SetMaxResults sets the MaxResults field's value.
2902func (s *ListConfigurationRevisionsResponse) SetMaxResults(v int64) *ListConfigurationRevisionsResponse {
2903	s.MaxResults = &v
2904	return s
2905}
2906
2907// SetNextToken sets the NextToken field's value.
2908func (s *ListConfigurationRevisionsResponse) SetNextToken(v string) *ListConfigurationRevisionsResponse {
2909	s.NextToken = &v
2910	return s
2911}
2912
2913// SetRevisions sets the Revisions field's value.
2914func (s *ListConfigurationRevisionsResponse) SetRevisions(v []*ConfigurationRevision) *ListConfigurationRevisionsResponse {
2915	s.Revisions = v
2916	return s
2917}
2918
2919type ListConfigurationsInput struct {
2920	_ struct{} `type:"structure"`
2921
2922	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
2923
2924	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
2925}
2926
2927// String returns the string representation
2928func (s ListConfigurationsInput) String() string {
2929	return awsutil.Prettify(s)
2930}
2931
2932// GoString returns the string representation
2933func (s ListConfigurationsInput) GoString() string {
2934	return s.String()
2935}
2936
2937// Validate inspects the fields of the type to determine if they are valid.
2938func (s *ListConfigurationsInput) Validate() error {
2939	invalidParams := request.ErrInvalidParams{Context: "ListConfigurationsInput"}
2940	if s.MaxResults != nil && *s.MaxResults < 1 {
2941		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
2942	}
2943
2944	if invalidParams.Len() > 0 {
2945		return invalidParams
2946	}
2947	return nil
2948}
2949
2950// SetMaxResults sets the MaxResults field's value.
2951func (s *ListConfigurationsInput) SetMaxResults(v int64) *ListConfigurationsInput {
2952	s.MaxResults = &v
2953	return s
2954}
2955
2956// SetNextToken sets the NextToken field's value.
2957func (s *ListConfigurationsInput) SetNextToken(v string) *ListConfigurationsInput {
2958	s.NextToken = &v
2959	return s
2960}
2961
2962type ListConfigurationsResponse struct {
2963	_ struct{} `type:"structure"`
2964
2965	Configurations []*Configuration `locationName:"configurations" type:"list"`
2966
2967	MaxResults *int64 `locationName:"maxResults" type:"integer"`
2968
2969	NextToken *string `locationName:"nextToken" type:"string"`
2970}
2971
2972// String returns the string representation
2973func (s ListConfigurationsResponse) String() string {
2974	return awsutil.Prettify(s)
2975}
2976
2977// GoString returns the string representation
2978func (s ListConfigurationsResponse) GoString() string {
2979	return s.String()
2980}
2981
2982// SetConfigurations sets the Configurations field's value.
2983func (s *ListConfigurationsResponse) SetConfigurations(v []*Configuration) *ListConfigurationsResponse {
2984	s.Configurations = v
2985	return s
2986}
2987
2988// SetMaxResults sets the MaxResults field's value.
2989func (s *ListConfigurationsResponse) SetMaxResults(v int64) *ListConfigurationsResponse {
2990	s.MaxResults = &v
2991	return s
2992}
2993
2994// SetNextToken sets the NextToken field's value.
2995func (s *ListConfigurationsResponse) SetNextToken(v string) *ListConfigurationsResponse {
2996	s.NextToken = &v
2997	return s
2998}
2999
3000type ListUsersInput struct {
3001	_ struct{} `type:"structure"`
3002
3003	// BrokerId is a required field
3004	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
3005
3006	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
3007
3008	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
3009}
3010
3011// String returns the string representation
3012func (s ListUsersInput) String() string {
3013	return awsutil.Prettify(s)
3014}
3015
3016// GoString returns the string representation
3017func (s ListUsersInput) GoString() string {
3018	return s.String()
3019}
3020
3021// Validate inspects the fields of the type to determine if they are valid.
3022func (s *ListUsersInput) Validate() error {
3023	invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"}
3024	if s.BrokerId == nil {
3025		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
3026	}
3027	if s.MaxResults != nil && *s.MaxResults < 1 {
3028		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
3029	}
3030
3031	if invalidParams.Len() > 0 {
3032		return invalidParams
3033	}
3034	return nil
3035}
3036
3037// SetBrokerId sets the BrokerId field's value.
3038func (s *ListUsersInput) SetBrokerId(v string) *ListUsersInput {
3039	s.BrokerId = &v
3040	return s
3041}
3042
3043// SetMaxResults sets the MaxResults field's value.
3044func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput {
3045	s.MaxResults = &v
3046	return s
3047}
3048
3049// SetNextToken sets the NextToken field's value.
3050func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput {
3051	s.NextToken = &v
3052	return s
3053}
3054
3055type ListUsersResponse struct {
3056	_ struct{} `type:"structure"`
3057
3058	BrokerId *string `locationName:"brokerId" type:"string"`
3059
3060	MaxResults *int64 `locationName:"maxResults" type:"integer"`
3061
3062	NextToken *string `locationName:"nextToken" type:"string"`
3063
3064	Users []*UserSummary `locationName:"users" type:"list"`
3065}
3066
3067// String returns the string representation
3068func (s ListUsersResponse) String() string {
3069	return awsutil.Prettify(s)
3070}
3071
3072// GoString returns the string representation
3073func (s ListUsersResponse) GoString() string {
3074	return s.String()
3075}
3076
3077// SetBrokerId sets the BrokerId field's value.
3078func (s *ListUsersResponse) SetBrokerId(v string) *ListUsersResponse {
3079	s.BrokerId = &v
3080	return s
3081}
3082
3083// SetMaxResults sets the MaxResults field's value.
3084func (s *ListUsersResponse) SetMaxResults(v int64) *ListUsersResponse {
3085	s.MaxResults = &v
3086	return s
3087}
3088
3089// SetNextToken sets the NextToken field's value.
3090func (s *ListUsersResponse) SetNextToken(v string) *ListUsersResponse {
3091	s.NextToken = &v
3092	return s
3093}
3094
3095// SetUsers sets the Users field's value.
3096func (s *ListUsersResponse) SetUsers(v []*UserSummary) *ListUsersResponse {
3097	s.Users = v
3098	return s
3099}
3100
3101type RebootBrokerInput struct {
3102	_ struct{} `type:"structure"`
3103
3104	// BrokerId is a required field
3105	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
3106}
3107
3108// String returns the string representation
3109func (s RebootBrokerInput) String() string {
3110	return awsutil.Prettify(s)
3111}
3112
3113// GoString returns the string representation
3114func (s RebootBrokerInput) GoString() string {
3115	return s.String()
3116}
3117
3118// Validate inspects the fields of the type to determine if they are valid.
3119func (s *RebootBrokerInput) Validate() error {
3120	invalidParams := request.ErrInvalidParams{Context: "RebootBrokerInput"}
3121	if s.BrokerId == nil {
3122		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
3123	}
3124
3125	if invalidParams.Len() > 0 {
3126		return invalidParams
3127	}
3128	return nil
3129}
3130
3131// SetBrokerId sets the BrokerId field's value.
3132func (s *RebootBrokerInput) SetBrokerId(v string) *RebootBrokerInput {
3133	s.BrokerId = &v
3134	return s
3135}
3136
3137type RebootBrokerOutput struct {
3138	_ struct{} `type:"structure"`
3139}
3140
3141// String returns the string representation
3142func (s RebootBrokerOutput) String() string {
3143	return awsutil.Prettify(s)
3144}
3145
3146// GoString returns the string representation
3147func (s RebootBrokerOutput) GoString() string {
3148	return s.String()
3149}
3150
3151// Returns information about the XML element or attribute that was sanitized
3152// in the configuration.
3153type SanitizationWarning struct {
3154	_ struct{} `type:"structure"`
3155
3156	// The name of the XML attribute that has been sanitized.
3157	AttributeName *string `locationName:"attributeName" type:"string"`
3158
3159	// The name of the XML element that has been sanitized.
3160	ElementName *string `locationName:"elementName" type:"string"`
3161
3162	// Required. The reason for which the XML elements or attributes were sanitized.
3163	// Possible values: DISALLOWED_ELEMENT_REMOVED, DISALLOWED_ATTRIBUTE_REMOVED,
3164	// INVALID_ATTRIBUTE_VALUE_REMOVED DISALLOWED_ELEMENT_REMOVED shows that the
3165	// provided element isn't allowed and has been removed. DISALLOWED_ATTRIBUTE_REMOVED
3166	// shows that the provided attribute isn't allowed and has been removed. INVALID_ATTRIBUTE_VALUE_REMOVED
3167	// shows that the provided value for the attribute isn't allowed and has been
3168	// removed.
3169	Reason *string `locationName:"reason" type:"string" enum:"SanitizationWarningReason"`
3170}
3171
3172// String returns the string representation
3173func (s SanitizationWarning) String() string {
3174	return awsutil.Prettify(s)
3175}
3176
3177// GoString returns the string representation
3178func (s SanitizationWarning) GoString() string {
3179	return s.String()
3180}
3181
3182// SetAttributeName sets the AttributeName field's value.
3183func (s *SanitizationWarning) SetAttributeName(v string) *SanitizationWarning {
3184	s.AttributeName = &v
3185	return s
3186}
3187
3188// SetElementName sets the ElementName field's value.
3189func (s *SanitizationWarning) SetElementName(v string) *SanitizationWarning {
3190	s.ElementName = &v
3191	return s
3192}
3193
3194// SetReason sets the Reason field's value.
3195func (s *SanitizationWarning) SetReason(v string) *SanitizationWarning {
3196	s.Reason = &v
3197	return s
3198}
3199
3200type UpdateBrokerRequest struct {
3201	_ struct{} `type:"structure"`
3202
3203	// BrokerId is a required field
3204	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
3205
3206	// A list of information about the configuration.
3207	Configuration *ConfigurationId `locationName:"configuration" type:"structure"`
3208}
3209
3210// String returns the string representation
3211func (s UpdateBrokerRequest) String() string {
3212	return awsutil.Prettify(s)
3213}
3214
3215// GoString returns the string representation
3216func (s UpdateBrokerRequest) GoString() string {
3217	return s.String()
3218}
3219
3220// Validate inspects the fields of the type to determine if they are valid.
3221func (s *UpdateBrokerRequest) Validate() error {
3222	invalidParams := request.ErrInvalidParams{Context: "UpdateBrokerRequest"}
3223	if s.BrokerId == nil {
3224		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
3225	}
3226
3227	if invalidParams.Len() > 0 {
3228		return invalidParams
3229	}
3230	return nil
3231}
3232
3233// SetBrokerId sets the BrokerId field's value.
3234func (s *UpdateBrokerRequest) SetBrokerId(v string) *UpdateBrokerRequest {
3235	s.BrokerId = &v
3236	return s
3237}
3238
3239// SetConfiguration sets the Configuration field's value.
3240func (s *UpdateBrokerRequest) SetConfiguration(v *ConfigurationId) *UpdateBrokerRequest {
3241	s.Configuration = v
3242	return s
3243}
3244
3245type UpdateBrokerResponse struct {
3246	_ struct{} `type:"structure"`
3247
3248	BrokerId *string `locationName:"brokerId" type:"string"`
3249
3250	// A list of information about the configuration.
3251	Configuration *ConfigurationId `locationName:"configuration" type:"structure"`
3252}
3253
3254// String returns the string representation
3255func (s UpdateBrokerResponse) String() string {
3256	return awsutil.Prettify(s)
3257}
3258
3259// GoString returns the string representation
3260func (s UpdateBrokerResponse) GoString() string {
3261	return s.String()
3262}
3263
3264// SetBrokerId sets the BrokerId field's value.
3265func (s *UpdateBrokerResponse) SetBrokerId(v string) *UpdateBrokerResponse {
3266	s.BrokerId = &v
3267	return s
3268}
3269
3270// SetConfiguration sets the Configuration field's value.
3271func (s *UpdateBrokerResponse) SetConfiguration(v *ConfigurationId) *UpdateBrokerResponse {
3272	s.Configuration = v
3273	return s
3274}
3275
3276type UpdateConfigurationRequest struct {
3277	_ struct{} `type:"structure"`
3278
3279	// ConfigurationId is a required field
3280	ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"`
3281
3282	Data *string `locationName:"data" type:"string"`
3283
3284	Description *string `locationName:"description" type:"string"`
3285}
3286
3287// String returns the string representation
3288func (s UpdateConfigurationRequest) String() string {
3289	return awsutil.Prettify(s)
3290}
3291
3292// GoString returns the string representation
3293func (s UpdateConfigurationRequest) GoString() string {
3294	return s.String()
3295}
3296
3297// Validate inspects the fields of the type to determine if they are valid.
3298func (s *UpdateConfigurationRequest) Validate() error {
3299	invalidParams := request.ErrInvalidParams{Context: "UpdateConfigurationRequest"}
3300	if s.ConfigurationId == nil {
3301		invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
3302	}
3303
3304	if invalidParams.Len() > 0 {
3305		return invalidParams
3306	}
3307	return nil
3308}
3309
3310// SetConfigurationId sets the ConfigurationId field's value.
3311func (s *UpdateConfigurationRequest) SetConfigurationId(v string) *UpdateConfigurationRequest {
3312	s.ConfigurationId = &v
3313	return s
3314}
3315
3316// SetData sets the Data field's value.
3317func (s *UpdateConfigurationRequest) SetData(v string) *UpdateConfigurationRequest {
3318	s.Data = &v
3319	return s
3320}
3321
3322// SetDescription sets the Description field's value.
3323func (s *UpdateConfigurationRequest) SetDescription(v string) *UpdateConfigurationRequest {
3324	s.Description = &v
3325	return s
3326}
3327
3328type UpdateConfigurationResponse struct {
3329	_ struct{} `type:"structure"`
3330
3331	Arn *string `locationName:"arn" type:"string"`
3332
3333	Id *string `locationName:"id" type:"string"`
3334
3335	// Returns information about the specified configuration revision.
3336	LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
3337
3338	Name *string `locationName:"name" type:"string"`
3339
3340	Warnings []*SanitizationWarning `locationName:"warnings" type:"list"`
3341}
3342
3343// String returns the string representation
3344func (s UpdateConfigurationResponse) String() string {
3345	return awsutil.Prettify(s)
3346}
3347
3348// GoString returns the string representation
3349func (s UpdateConfigurationResponse) GoString() string {
3350	return s.String()
3351}
3352
3353// SetArn sets the Arn field's value.
3354func (s *UpdateConfigurationResponse) SetArn(v string) *UpdateConfigurationResponse {
3355	s.Arn = &v
3356	return s
3357}
3358
3359// SetId sets the Id field's value.
3360func (s *UpdateConfigurationResponse) SetId(v string) *UpdateConfigurationResponse {
3361	s.Id = &v
3362	return s
3363}
3364
3365// SetLatestRevision sets the LatestRevision field's value.
3366func (s *UpdateConfigurationResponse) SetLatestRevision(v *ConfigurationRevision) *UpdateConfigurationResponse {
3367	s.LatestRevision = v
3368	return s
3369}
3370
3371// SetName sets the Name field's value.
3372func (s *UpdateConfigurationResponse) SetName(v string) *UpdateConfigurationResponse {
3373	s.Name = &v
3374	return s
3375}
3376
3377// SetWarnings sets the Warnings field's value.
3378func (s *UpdateConfigurationResponse) SetWarnings(v []*SanitizationWarning) *UpdateConfigurationResponse {
3379	s.Warnings = v
3380	return s
3381}
3382
3383type UpdateUserOutput struct {
3384	_ struct{} `type:"structure"`
3385}
3386
3387// String returns the string representation
3388func (s UpdateUserOutput) String() string {
3389	return awsutil.Prettify(s)
3390}
3391
3392// GoString returns the string representation
3393func (s UpdateUserOutput) GoString() string {
3394	return s.String()
3395}
3396
3397type UpdateUserRequest struct {
3398	_ struct{} `type:"structure"`
3399
3400	// BrokerId is a required field
3401	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
3402
3403	ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
3404
3405	Groups []*string `locationName:"groups" type:"list"`
3406
3407	Password *string `locationName:"password" type:"string"`
3408
3409	// Username is a required field
3410	Username *string `location:"uri" locationName:"username" type:"string" required:"true"`
3411}
3412
3413// String returns the string representation
3414func (s UpdateUserRequest) String() string {
3415	return awsutil.Prettify(s)
3416}
3417
3418// GoString returns the string representation
3419func (s UpdateUserRequest) GoString() string {
3420	return s.String()
3421}
3422
3423// Validate inspects the fields of the type to determine if they are valid.
3424func (s *UpdateUserRequest) Validate() error {
3425	invalidParams := request.ErrInvalidParams{Context: "UpdateUserRequest"}
3426	if s.BrokerId == nil {
3427		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
3428	}
3429	if s.Username == nil {
3430		invalidParams.Add(request.NewErrParamRequired("Username"))
3431	}
3432
3433	if invalidParams.Len() > 0 {
3434		return invalidParams
3435	}
3436	return nil
3437}
3438
3439// SetBrokerId sets the BrokerId field's value.
3440func (s *UpdateUserRequest) SetBrokerId(v string) *UpdateUserRequest {
3441	s.BrokerId = &v
3442	return s
3443}
3444
3445// SetConsoleAccess sets the ConsoleAccess field's value.
3446func (s *UpdateUserRequest) SetConsoleAccess(v bool) *UpdateUserRequest {
3447	s.ConsoleAccess = &v
3448	return s
3449}
3450
3451// SetGroups sets the Groups field's value.
3452func (s *UpdateUserRequest) SetGroups(v []*string) *UpdateUserRequest {
3453	s.Groups = v
3454	return s
3455}
3456
3457// SetPassword sets the Password field's value.
3458func (s *UpdateUserRequest) SetPassword(v string) *UpdateUserRequest {
3459	s.Password = &v
3460	return s
3461}
3462
3463// SetUsername sets the Username field's value.
3464func (s *UpdateUserRequest) SetUsername(v string) *UpdateUserRequest {
3465	s.Username = &v
3466	return s
3467}
3468
3469// An ActiveMQ user associated with the broker.
3470type User struct {
3471	_ struct{} `type:"structure"`
3472
3473	// Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
3474	ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
3475
3476	// The list of groups (20 maximum) to which the ActiveMQ user belongs. This
3477	// value can contain only alphanumeric characters, dashes, periods, underscores,
3478	// and tildes (- . _ ~). This value must be 2-100 characters long.
3479	Groups []*string `locationName:"groups" type:"list"`
3480
3481	// Required. The password of the ActiveMQ user. This value must be at least
3482	// 12 characters long, must contain at least 4 unique characters, and must not
3483	// contain commas.
3484	Password *string `locationName:"password" type:"string"`
3485
3486	// Required. The username of the ActiveMQ user. This value can contain only
3487	// alphanumeric characters, dashes, periods, underscores, and tildes (- . _
3488	// ~). This value must be 2-100 characters long.
3489	Username *string `locationName:"username" type:"string"`
3490}
3491
3492// String returns the string representation
3493func (s User) String() string {
3494	return awsutil.Prettify(s)
3495}
3496
3497// GoString returns the string representation
3498func (s User) GoString() string {
3499	return s.String()
3500}
3501
3502// SetConsoleAccess sets the ConsoleAccess field's value.
3503func (s *User) SetConsoleAccess(v bool) *User {
3504	s.ConsoleAccess = &v
3505	return s
3506}
3507
3508// SetGroups sets the Groups field's value.
3509func (s *User) SetGroups(v []*string) *User {
3510	s.Groups = v
3511	return s
3512}
3513
3514// SetPassword sets the Password field's value.
3515func (s *User) SetPassword(v string) *User {
3516	s.Password = &v
3517	return s
3518}
3519
3520// SetUsername sets the Username field's value.
3521func (s *User) SetUsername(v string) *User {
3522	s.Username = &v
3523	return s
3524}
3525
3526// Returns information about the status of the changes pending for the ActiveMQ
3527// user.
3528type UserPendingChanges struct {
3529	_ struct{} `type:"structure"`
3530
3531	// Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
3532	ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
3533
3534	// The list of groups (20 maximum) to which the ActiveMQ user belongs. This
3535	// value can contain only alphanumeric characters, dashes, periods, underscores,
3536	// and tildes (- . _ ~). This value must be 2-100 characters long.
3537	Groups []*string `locationName:"groups" type:"list"`
3538
3539	// Required. The type of change pending for the ActiveMQ user. Possible values:
3540	// CREATE, UPDATE, DELETE
3541	PendingChange *string `locationName:"pendingChange" type:"string" enum:"ChangeType"`
3542}
3543
3544// String returns the string representation
3545func (s UserPendingChanges) String() string {
3546	return awsutil.Prettify(s)
3547}
3548
3549// GoString returns the string representation
3550func (s UserPendingChanges) GoString() string {
3551	return s.String()
3552}
3553
3554// SetConsoleAccess sets the ConsoleAccess field's value.
3555func (s *UserPendingChanges) SetConsoleAccess(v bool) *UserPendingChanges {
3556	s.ConsoleAccess = &v
3557	return s
3558}
3559
3560// SetGroups sets the Groups field's value.
3561func (s *UserPendingChanges) SetGroups(v []*string) *UserPendingChanges {
3562	s.Groups = v
3563	return s
3564}
3565
3566// SetPendingChange sets the PendingChange field's value.
3567func (s *UserPendingChanges) SetPendingChange(v string) *UserPendingChanges {
3568	s.PendingChange = &v
3569	return s
3570}
3571
3572// Returns a list of all ActiveMQ users.
3573type UserSummary struct {
3574	_ struct{} `type:"structure"`
3575
3576	// The type of change pending for the ActiveMQ user. Possible values: CREATE,
3577	// UPDATE, DELETE
3578	PendingChange *string `locationName:"pendingChange" type:"string" enum:"ChangeType"`
3579
3580	// Required. The username of the ActiveMQ user. This value can contain only
3581	// alphanumeric characters, dashes, periods, underscores, and tildes (- . _
3582	// ~). This value must be 2-100 characters long.
3583	Username *string `locationName:"username" type:"string"`
3584}
3585
3586// String returns the string representation
3587func (s UserSummary) String() string {
3588	return awsutil.Prettify(s)
3589}
3590
3591// GoString returns the string representation
3592func (s UserSummary) GoString() string {
3593	return s.String()
3594}
3595
3596// SetPendingChange sets the PendingChange field's value.
3597func (s *UserSummary) SetPendingChange(v string) *UserSummary {
3598	s.PendingChange = &v
3599	return s
3600}
3601
3602// SetUsername sets the Username field's value.
3603func (s *UserSummary) SetUsername(v string) *UserSummary {
3604	s.Username = &v
3605	return s
3606}
3607
3608// The scheduled time period relative to UTC during which Amazon MQ begins to
3609// apply pending updates or patches to the broker.
3610type WeeklyStartTime struct {
3611	_ struct{} `type:"structure"`
3612
3613	// Required. The day of the week. Possible values: MONDAY, TUESDAY, WEDNESDAY,
3614	// THURSDAY, FRIDAY, SATURDAY, SUNDAY
3615	DayOfWeek *string `locationName:"dayOfWeek" type:"string" enum:"DayOfWeek"`
3616
3617	// Required. The time, in 24-hour format.
3618	TimeOfDay *string `locationName:"timeOfDay" type:"string"`
3619
3620	// The time zone, UTC by default, in either the Country/City format, or the
3621	// UTC offset format.
3622	TimeZone *string `locationName:"timeZone" type:"string"`
3623}
3624
3625// String returns the string representation
3626func (s WeeklyStartTime) String() string {
3627	return awsutil.Prettify(s)
3628}
3629
3630// GoString returns the string representation
3631func (s WeeklyStartTime) GoString() string {
3632	return s.String()
3633}
3634
3635// SetDayOfWeek sets the DayOfWeek field's value.
3636func (s *WeeklyStartTime) SetDayOfWeek(v string) *WeeklyStartTime {
3637	s.DayOfWeek = &v
3638	return s
3639}
3640
3641// SetTimeOfDay sets the TimeOfDay field's value.
3642func (s *WeeklyStartTime) SetTimeOfDay(v string) *WeeklyStartTime {
3643	s.TimeOfDay = &v
3644	return s
3645}
3646
3647// SetTimeZone sets the TimeZone field's value.
3648func (s *WeeklyStartTime) SetTimeZone(v string) *WeeklyStartTime {
3649	s.TimeZone = &v
3650	return s
3651}
3652
3653// The status of the broker. Possible values: CREATION_IN_PROGRESS, CREATION_FAILED,
3654// DELETION_IN_PROGRESS, RUNNING, REBOOT_IN_PROGRESS
3655const (
3656	// BrokerStateCreationInProgress is a BrokerState enum value
3657	BrokerStateCreationInProgress = "CREATION_IN_PROGRESS"
3658
3659	// BrokerStateCreationFailed is a BrokerState enum value
3660	BrokerStateCreationFailed = "CREATION_FAILED"
3661
3662	// BrokerStateDeletionInProgress is a BrokerState enum value
3663	BrokerStateDeletionInProgress = "DELETION_IN_PROGRESS"
3664
3665	// BrokerStateRunning is a BrokerState enum value
3666	BrokerStateRunning = "RUNNING"
3667
3668	// BrokerStateRebootInProgress is a BrokerState enum value
3669	BrokerStateRebootInProgress = "REBOOT_IN_PROGRESS"
3670)
3671
3672// The type of change pending for the ActiveMQ user. Possible values: CREATE,
3673// UPDATE, DELETE
3674const (
3675	// ChangeTypeCreate is a ChangeType enum value
3676	ChangeTypeCreate = "CREATE"
3677
3678	// ChangeTypeUpdate is a ChangeType enum value
3679	ChangeTypeUpdate = "UPDATE"
3680
3681	// ChangeTypeDelete is a ChangeType enum value
3682	ChangeTypeDelete = "DELETE"
3683)
3684
3685const (
3686	// DayOfWeekMonday is a DayOfWeek enum value
3687	DayOfWeekMonday = "MONDAY"
3688
3689	// DayOfWeekTuesday is a DayOfWeek enum value
3690	DayOfWeekTuesday = "TUESDAY"
3691
3692	// DayOfWeekWednesday is a DayOfWeek enum value
3693	DayOfWeekWednesday = "WEDNESDAY"
3694
3695	// DayOfWeekThursday is a DayOfWeek enum value
3696	DayOfWeekThursday = "THURSDAY"
3697
3698	// DayOfWeekFriday is a DayOfWeek enum value
3699	DayOfWeekFriday = "FRIDAY"
3700
3701	// DayOfWeekSaturday is a DayOfWeek enum value
3702	DayOfWeekSaturday = "SATURDAY"
3703
3704	// DayOfWeekSunday is a DayOfWeek enum value
3705	DayOfWeekSunday = "SUNDAY"
3706)
3707
3708// The deployment mode of the broker. Possible values: SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ
3709// SINGLE_INSTANCE creates a single-instance broker in a single Availability
3710// Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby broker for high availability.
3711const (
3712	// DeploymentModeSingleInstance is a DeploymentMode enum value
3713	DeploymentModeSingleInstance = "SINGLE_INSTANCE"
3714
3715	// DeploymentModeActiveStandbyMultiAz is a DeploymentMode enum value
3716	DeploymentModeActiveStandbyMultiAz = "ACTIVE_STANDBY_MULTI_AZ"
3717)
3718
3719// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
3720const (
3721	// EngineTypeActivemq is a EngineType enum value
3722	EngineTypeActivemq = "ACTIVEMQ"
3723)
3724
3725// The reason for which the XML elements or attributes were sanitized. Possible
3726// values: DISALLOWED_ELEMENT_REMOVED, DISALLOWED_ATTRIBUTE_REMOVED, INVALID_ATTRIBUTE_VALUE_REMOVED
3727// DISALLOWED_ELEMENT_REMOVED shows that the provided element isn't allowed
3728// and has been removed. DISALLOWED_ATTRIBUTE_REMOVED shows that the provided
3729// attribute isn't allowed and has been removed. INVALID_ATTRIBUTE_VALUE_REMOVED
3730// shows that the provided value for the attribute isn't allowed and has been
3731// removed.
3732const (
3733	// SanitizationWarningReasonDisallowedElementRemoved is a SanitizationWarningReason enum value
3734	SanitizationWarningReasonDisallowedElementRemoved = "DISALLOWED_ELEMENT_REMOVED"
3735
3736	// SanitizationWarningReasonDisallowedAttributeRemoved is a SanitizationWarningReason enum value
3737	SanitizationWarningReasonDisallowedAttributeRemoved = "DISALLOWED_ATTRIBUTE_REMOVED"
3738
3739	// SanitizationWarningReasonInvalidAttributeValueRemoved is a SanitizationWarningReason enum value
3740	SanitizationWarningReasonInvalidAttributeValueRemoved = "INVALID_ATTRIBUTE_VALUE_REMOVED"
3741)
3742