mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-14 00:42:44 +00:00
3786 lines
124 KiB
Go
3786 lines
124 KiB
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
|
|
|
package mq
|
|
|
|
import (
|
|
"github.com/aws/aws-sdk-go/aws"
|
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
|
"github.com/aws/aws-sdk-go/aws/request"
|
|
)
|
|
|
|
const opCreateBroker = "CreateBroker"
|
|
|
|
// CreateBrokerRequest generates a "aws/request.Request" representing the
|
|
// client's request for the CreateBroker operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See CreateBroker for more information on using the CreateBroker
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the CreateBrokerRequest method.
|
|
// req, resp := client.CreateBrokerRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBroker
|
|
func (c *MQ) CreateBrokerRequest(input *CreateBrokerRequest) (req *request.Request, output *CreateBrokerResponse) {
|
|
op := &request.Operation{
|
|
Name: opCreateBroker,
|
|
HTTPMethod: "POST",
|
|
HTTPPath: "/v1/brokers",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &CreateBrokerRequest{}
|
|
}
|
|
|
|
output = &CreateBrokerResponse{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// CreateBroker API operation for AmazonMQ.
|
|
//
|
|
// Creates a broker. Note: This API is asynchronous.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation CreateBroker for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeUnauthorizedException "UnauthorizedException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeConflictException "ConflictException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBroker
|
|
func (c *MQ) CreateBroker(input *CreateBrokerRequest) (*CreateBrokerResponse, error) {
|
|
req, out := c.CreateBrokerRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// CreateBrokerWithContext is the same as CreateBroker with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See CreateBroker for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) CreateBrokerWithContext(ctx aws.Context, input *CreateBrokerRequest, opts ...request.Option) (*CreateBrokerResponse, error) {
|
|
req, out := c.CreateBrokerRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opCreateConfiguration = "CreateConfiguration"
|
|
|
|
// CreateConfigurationRequest generates a "aws/request.Request" representing the
|
|
// client's request for the CreateConfiguration operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See CreateConfiguration for more information on using the CreateConfiguration
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the CreateConfigurationRequest method.
|
|
// req, resp := client.CreateConfigurationRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfiguration
|
|
func (c *MQ) CreateConfigurationRequest(input *CreateConfigurationRequest) (req *request.Request, output *CreateConfigurationResponse) {
|
|
op := &request.Operation{
|
|
Name: opCreateConfiguration,
|
|
HTTPMethod: "POST",
|
|
HTTPPath: "/v1/configurations",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &CreateConfigurationRequest{}
|
|
}
|
|
|
|
output = &CreateConfigurationResponse{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// CreateConfiguration API operation for AmazonMQ.
|
|
//
|
|
// Creates a new configuration for the specified configuration name. Amazon
|
|
// MQ uses the default configuration (the engine type and version). Note: If
|
|
// the configuration name already exists, Amazon MQ doesn't create a configuration.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation CreateConfiguration for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeConflictException "ConflictException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfiguration
|
|
func (c *MQ) CreateConfiguration(input *CreateConfigurationRequest) (*CreateConfigurationResponse, error) {
|
|
req, out := c.CreateConfigurationRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// CreateConfigurationWithContext is the same as CreateConfiguration with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See CreateConfiguration for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) CreateConfigurationWithContext(ctx aws.Context, input *CreateConfigurationRequest, opts ...request.Option) (*CreateConfigurationResponse, error) {
|
|
req, out := c.CreateConfigurationRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opCreateUser = "CreateUser"
|
|
|
|
// CreateUserRequest generates a "aws/request.Request" representing the
|
|
// client's request for the CreateUser operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See CreateUser for more information on using the CreateUser
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the CreateUserRequest method.
|
|
// req, resp := client.CreateUserRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUser
|
|
func (c *MQ) CreateUserRequest(input *CreateUserRequest) (req *request.Request, output *CreateUserOutput) {
|
|
op := &request.Operation{
|
|
Name: opCreateUser,
|
|
HTTPMethod: "POST",
|
|
HTTPPath: "/v1/brokers/{broker-id}/users/{username}",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &CreateUserRequest{}
|
|
}
|
|
|
|
output = &CreateUserOutput{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// CreateUser API operation for AmazonMQ.
|
|
//
|
|
// Creates an ActiveMQ user.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation CreateUser for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeConflictException "ConflictException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUser
|
|
func (c *MQ) CreateUser(input *CreateUserRequest) (*CreateUserOutput, error) {
|
|
req, out := c.CreateUserRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// CreateUserWithContext is the same as CreateUser with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See CreateUser for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) CreateUserWithContext(ctx aws.Context, input *CreateUserRequest, opts ...request.Option) (*CreateUserOutput, error) {
|
|
req, out := c.CreateUserRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opDeleteBroker = "DeleteBroker"
|
|
|
|
// DeleteBrokerRequest generates a "aws/request.Request" representing the
|
|
// client's request for the DeleteBroker operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See DeleteBroker for more information on using the DeleteBroker
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the DeleteBrokerRequest method.
|
|
// req, resp := client.DeleteBrokerRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBroker
|
|
func (c *MQ) DeleteBrokerRequest(input *DeleteBrokerInput) (req *request.Request, output *DeleteBrokerResponse) {
|
|
op := &request.Operation{
|
|
Name: opDeleteBroker,
|
|
HTTPMethod: "DELETE",
|
|
HTTPPath: "/v1/brokers/{broker-id}",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &DeleteBrokerInput{}
|
|
}
|
|
|
|
output = &DeleteBrokerResponse{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// DeleteBroker API operation for AmazonMQ.
|
|
//
|
|
// Deletes a broker. Note: This API is asynchronous.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation DeleteBroker for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBroker
|
|
func (c *MQ) DeleteBroker(input *DeleteBrokerInput) (*DeleteBrokerResponse, error) {
|
|
req, out := c.DeleteBrokerRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// DeleteBrokerWithContext is the same as DeleteBroker with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See DeleteBroker for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) DeleteBrokerWithContext(ctx aws.Context, input *DeleteBrokerInput, opts ...request.Option) (*DeleteBrokerResponse, error) {
|
|
req, out := c.DeleteBrokerRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opDeleteUser = "DeleteUser"
|
|
|
|
// DeleteUserRequest generates a "aws/request.Request" representing the
|
|
// client's request for the DeleteUser operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See DeleteUser for more information on using the DeleteUser
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the DeleteUserRequest method.
|
|
// req, resp := client.DeleteUserRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUser
|
|
func (c *MQ) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) {
|
|
op := &request.Operation{
|
|
Name: opDeleteUser,
|
|
HTTPMethod: "DELETE",
|
|
HTTPPath: "/v1/brokers/{broker-id}/users/{username}",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &DeleteUserInput{}
|
|
}
|
|
|
|
output = &DeleteUserOutput{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// DeleteUser API operation for AmazonMQ.
|
|
//
|
|
// Deletes an ActiveMQ user.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation DeleteUser for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUser
|
|
func (c *MQ) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) {
|
|
req, out := c.DeleteUserRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// DeleteUserWithContext is the same as DeleteUser with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See DeleteUser for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) {
|
|
req, out := c.DeleteUserRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opDescribeBroker = "DescribeBroker"
|
|
|
|
// DescribeBrokerRequest generates a "aws/request.Request" representing the
|
|
// client's request for the DescribeBroker operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See DescribeBroker for more information on using the DescribeBroker
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the DescribeBrokerRequest method.
|
|
// req, resp := client.DescribeBrokerRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBroker
|
|
func (c *MQ) DescribeBrokerRequest(input *DescribeBrokerInput) (req *request.Request, output *DescribeBrokerResponse) {
|
|
op := &request.Operation{
|
|
Name: opDescribeBroker,
|
|
HTTPMethod: "GET",
|
|
HTTPPath: "/v1/brokers/{broker-id}",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &DescribeBrokerInput{}
|
|
}
|
|
|
|
output = &DescribeBrokerResponse{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// DescribeBroker API operation for AmazonMQ.
|
|
//
|
|
// Returns information about the specified broker.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation DescribeBroker for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBroker
|
|
func (c *MQ) DescribeBroker(input *DescribeBrokerInput) (*DescribeBrokerResponse, error) {
|
|
req, out := c.DescribeBrokerRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// DescribeBrokerWithContext is the same as DescribeBroker with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See DescribeBroker for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) DescribeBrokerWithContext(ctx aws.Context, input *DescribeBrokerInput, opts ...request.Option) (*DescribeBrokerResponse, error) {
|
|
req, out := c.DescribeBrokerRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opDescribeConfiguration = "DescribeConfiguration"
|
|
|
|
// DescribeConfigurationRequest generates a "aws/request.Request" representing the
|
|
// client's request for the DescribeConfiguration operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See DescribeConfiguration for more information on using the DescribeConfiguration
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the DescribeConfigurationRequest method.
|
|
// req, resp := client.DescribeConfigurationRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfiguration
|
|
func (c *MQ) DescribeConfigurationRequest(input *DescribeConfigurationInput) (req *request.Request, output *DescribeConfigurationOutput) {
|
|
op := &request.Operation{
|
|
Name: opDescribeConfiguration,
|
|
HTTPMethod: "GET",
|
|
HTTPPath: "/v1/configurations/{configuration-id}",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &DescribeConfigurationInput{}
|
|
}
|
|
|
|
output = &DescribeConfigurationOutput{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// DescribeConfiguration API operation for AmazonMQ.
|
|
//
|
|
// Returns information about the specified configuration.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation DescribeConfiguration for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfiguration
|
|
func (c *MQ) DescribeConfiguration(input *DescribeConfigurationInput) (*DescribeConfigurationOutput, error) {
|
|
req, out := c.DescribeConfigurationRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// DescribeConfigurationWithContext is the same as DescribeConfiguration with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See DescribeConfiguration for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) DescribeConfigurationWithContext(ctx aws.Context, input *DescribeConfigurationInput, opts ...request.Option) (*DescribeConfigurationOutput, error) {
|
|
req, out := c.DescribeConfigurationRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opDescribeConfigurationRevision = "DescribeConfigurationRevision"
|
|
|
|
// DescribeConfigurationRevisionRequest generates a "aws/request.Request" representing the
|
|
// client's request for the DescribeConfigurationRevision operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See DescribeConfigurationRevision for more information on using the DescribeConfigurationRevision
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the DescribeConfigurationRevisionRequest method.
|
|
// req, resp := client.DescribeConfigurationRevisionRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevision
|
|
func (c *MQ) DescribeConfigurationRevisionRequest(input *DescribeConfigurationRevisionInput) (req *request.Request, output *DescribeConfigurationRevisionResponse) {
|
|
op := &request.Operation{
|
|
Name: opDescribeConfigurationRevision,
|
|
HTTPMethod: "GET",
|
|
HTTPPath: "/v1/configurations/{configuration-id}/revisions/{configuration-revision}",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &DescribeConfigurationRevisionInput{}
|
|
}
|
|
|
|
output = &DescribeConfigurationRevisionResponse{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// DescribeConfigurationRevision API operation for AmazonMQ.
|
|
//
|
|
// Returns the specified configuration revision for the specified configuration.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation DescribeConfigurationRevision for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevision
|
|
func (c *MQ) DescribeConfigurationRevision(input *DescribeConfigurationRevisionInput) (*DescribeConfigurationRevisionResponse, error) {
|
|
req, out := c.DescribeConfigurationRevisionRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// DescribeConfigurationRevisionWithContext is the same as DescribeConfigurationRevision with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See DescribeConfigurationRevision for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) DescribeConfigurationRevisionWithContext(ctx aws.Context, input *DescribeConfigurationRevisionInput, opts ...request.Option) (*DescribeConfigurationRevisionResponse, error) {
|
|
req, out := c.DescribeConfigurationRevisionRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opDescribeUser = "DescribeUser"
|
|
|
|
// DescribeUserRequest generates a "aws/request.Request" representing the
|
|
// client's request for the DescribeUser operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See DescribeUser for more information on using the DescribeUser
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the DescribeUserRequest method.
|
|
// req, resp := client.DescribeUserRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUser
|
|
func (c *MQ) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserResponse) {
|
|
op := &request.Operation{
|
|
Name: opDescribeUser,
|
|
HTTPMethod: "GET",
|
|
HTTPPath: "/v1/brokers/{broker-id}/users/{username}",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &DescribeUserInput{}
|
|
}
|
|
|
|
output = &DescribeUserResponse{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// DescribeUser API operation for AmazonMQ.
|
|
//
|
|
// Returns information about an ActiveMQ user.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation DescribeUser for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUser
|
|
func (c *MQ) DescribeUser(input *DescribeUserInput) (*DescribeUserResponse, error) {
|
|
req, out := c.DescribeUserRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// DescribeUserWithContext is the same as DescribeUser with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See DescribeUser for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserResponse, error) {
|
|
req, out := c.DescribeUserRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opListBrokers = "ListBrokers"
|
|
|
|
// ListBrokersRequest generates a "aws/request.Request" representing the
|
|
// client's request for the ListBrokers operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See ListBrokers for more information on using the ListBrokers
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the ListBrokersRequest method.
|
|
// req, resp := client.ListBrokersRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokers
|
|
func (c *MQ) ListBrokersRequest(input *ListBrokersInput) (req *request.Request, output *ListBrokersResponse) {
|
|
op := &request.Operation{
|
|
Name: opListBrokers,
|
|
HTTPMethod: "GET",
|
|
HTTPPath: "/v1/brokers",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &ListBrokersInput{}
|
|
}
|
|
|
|
output = &ListBrokersResponse{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// ListBrokers API operation for AmazonMQ.
|
|
//
|
|
// Returns a list of all brokers.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation ListBrokers for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokers
|
|
func (c *MQ) ListBrokers(input *ListBrokersInput) (*ListBrokersResponse, error) {
|
|
req, out := c.ListBrokersRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// ListBrokersWithContext is the same as ListBrokers with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See ListBrokers for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) ListBrokersWithContext(ctx aws.Context, input *ListBrokersInput, opts ...request.Option) (*ListBrokersResponse, error) {
|
|
req, out := c.ListBrokersRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opListConfigurationRevisions = "ListConfigurationRevisions"
|
|
|
|
// ListConfigurationRevisionsRequest generates a "aws/request.Request" representing the
|
|
// client's request for the ListConfigurationRevisions operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See ListConfigurationRevisions for more information on using the ListConfigurationRevisions
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the ListConfigurationRevisionsRequest method.
|
|
// req, resp := client.ListConfigurationRevisionsRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisions
|
|
func (c *MQ) ListConfigurationRevisionsRequest(input *ListConfigurationRevisionsInput) (req *request.Request, output *ListConfigurationRevisionsResponse) {
|
|
op := &request.Operation{
|
|
Name: opListConfigurationRevisions,
|
|
HTTPMethod: "GET",
|
|
HTTPPath: "/v1/configurations/{configuration-id}/revisions",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &ListConfigurationRevisionsInput{}
|
|
}
|
|
|
|
output = &ListConfigurationRevisionsResponse{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// ListConfigurationRevisions API operation for AmazonMQ.
|
|
//
|
|
// Returns a list of all revisions for the specified configuration.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation ListConfigurationRevisions for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisions
|
|
func (c *MQ) ListConfigurationRevisions(input *ListConfigurationRevisionsInput) (*ListConfigurationRevisionsResponse, error) {
|
|
req, out := c.ListConfigurationRevisionsRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// ListConfigurationRevisionsWithContext is the same as ListConfigurationRevisions with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See ListConfigurationRevisions for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) ListConfigurationRevisionsWithContext(ctx aws.Context, input *ListConfigurationRevisionsInput, opts ...request.Option) (*ListConfigurationRevisionsResponse, error) {
|
|
req, out := c.ListConfigurationRevisionsRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opListConfigurations = "ListConfigurations"
|
|
|
|
// ListConfigurationsRequest generates a "aws/request.Request" representing the
|
|
// client's request for the ListConfigurations operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See ListConfigurations for more information on using the ListConfigurations
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the ListConfigurationsRequest method.
|
|
// req, resp := client.ListConfigurationsRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurations
|
|
func (c *MQ) ListConfigurationsRequest(input *ListConfigurationsInput) (req *request.Request, output *ListConfigurationsResponse) {
|
|
op := &request.Operation{
|
|
Name: opListConfigurations,
|
|
HTTPMethod: "GET",
|
|
HTTPPath: "/v1/configurations",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &ListConfigurationsInput{}
|
|
}
|
|
|
|
output = &ListConfigurationsResponse{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// ListConfigurations API operation for AmazonMQ.
|
|
//
|
|
// Returns a list of all configurations.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation ListConfigurations for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurations
|
|
func (c *MQ) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsResponse, error) {
|
|
req, out := c.ListConfigurationsRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// ListConfigurationsWithContext is the same as ListConfigurations with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See ListConfigurations for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) ListConfigurationsWithContext(ctx aws.Context, input *ListConfigurationsInput, opts ...request.Option) (*ListConfigurationsResponse, error) {
|
|
req, out := c.ListConfigurationsRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opListUsers = "ListUsers"
|
|
|
|
// ListUsersRequest generates a "aws/request.Request" representing the
|
|
// client's request for the ListUsers operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See ListUsers for more information on using the ListUsers
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the ListUsersRequest method.
|
|
// req, resp := client.ListUsersRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsers
|
|
func (c *MQ) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersResponse) {
|
|
op := &request.Operation{
|
|
Name: opListUsers,
|
|
HTTPMethod: "GET",
|
|
HTTPPath: "/v1/brokers/{broker-id}/users",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &ListUsersInput{}
|
|
}
|
|
|
|
output = &ListUsersResponse{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// ListUsers API operation for AmazonMQ.
|
|
//
|
|
// Returns a list of all ActiveMQ users.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation ListUsers for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsers
|
|
func (c *MQ) ListUsers(input *ListUsersInput) (*ListUsersResponse, error) {
|
|
req, out := c.ListUsersRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// ListUsersWithContext is the same as ListUsers with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See ListUsers for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersResponse, error) {
|
|
req, out := c.ListUsersRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opRebootBroker = "RebootBroker"
|
|
|
|
// RebootBrokerRequest generates a "aws/request.Request" representing the
|
|
// client's request for the RebootBroker operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See RebootBroker for more information on using the RebootBroker
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the RebootBrokerRequest method.
|
|
// req, resp := client.RebootBrokerRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBroker
|
|
func (c *MQ) RebootBrokerRequest(input *RebootBrokerInput) (req *request.Request, output *RebootBrokerOutput) {
|
|
op := &request.Operation{
|
|
Name: opRebootBroker,
|
|
HTTPMethod: "POST",
|
|
HTTPPath: "/v1/brokers/{broker-id}/reboot",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &RebootBrokerInput{}
|
|
}
|
|
|
|
output = &RebootBrokerOutput{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// RebootBroker API operation for AmazonMQ.
|
|
//
|
|
// Reboots a broker. Note: This API is asynchronous.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation RebootBroker for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBroker
|
|
func (c *MQ) RebootBroker(input *RebootBrokerInput) (*RebootBrokerOutput, error) {
|
|
req, out := c.RebootBrokerRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// RebootBrokerWithContext is the same as RebootBroker with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See RebootBroker for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) RebootBrokerWithContext(ctx aws.Context, input *RebootBrokerInput, opts ...request.Option) (*RebootBrokerOutput, error) {
|
|
req, out := c.RebootBrokerRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opUpdateBroker = "UpdateBroker"
|
|
|
|
// UpdateBrokerRequest generates a "aws/request.Request" representing the
|
|
// client's request for the UpdateBroker operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See UpdateBroker for more information on using the UpdateBroker
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the UpdateBrokerRequest method.
|
|
// req, resp := client.UpdateBrokerRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBroker
|
|
func (c *MQ) UpdateBrokerRequest(input *UpdateBrokerRequest) (req *request.Request, output *UpdateBrokerResponse) {
|
|
op := &request.Operation{
|
|
Name: opUpdateBroker,
|
|
HTTPMethod: "PUT",
|
|
HTTPPath: "/v1/brokers/{broker-id}",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &UpdateBrokerRequest{}
|
|
}
|
|
|
|
output = &UpdateBrokerResponse{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// UpdateBroker API operation for AmazonMQ.
|
|
//
|
|
// Adds a pending configuration change to a broker.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation UpdateBroker for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBroker
|
|
func (c *MQ) UpdateBroker(input *UpdateBrokerRequest) (*UpdateBrokerResponse, error) {
|
|
req, out := c.UpdateBrokerRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// UpdateBrokerWithContext is the same as UpdateBroker with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See UpdateBroker for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) UpdateBrokerWithContext(ctx aws.Context, input *UpdateBrokerRequest, opts ...request.Option) (*UpdateBrokerResponse, error) {
|
|
req, out := c.UpdateBrokerRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opUpdateConfiguration = "UpdateConfiguration"
|
|
|
|
// UpdateConfigurationRequest generates a "aws/request.Request" representing the
|
|
// client's request for the UpdateConfiguration operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See UpdateConfiguration for more information on using the UpdateConfiguration
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the UpdateConfigurationRequest method.
|
|
// req, resp := client.UpdateConfigurationRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfiguration
|
|
func (c *MQ) UpdateConfigurationRequest(input *UpdateConfigurationRequest) (req *request.Request, output *UpdateConfigurationResponse) {
|
|
op := &request.Operation{
|
|
Name: opUpdateConfiguration,
|
|
HTTPMethod: "PUT",
|
|
HTTPPath: "/v1/configurations/{configuration-id}",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &UpdateConfigurationRequest{}
|
|
}
|
|
|
|
output = &UpdateConfigurationResponse{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// UpdateConfiguration API operation for AmazonMQ.
|
|
//
|
|
// Updates the specified configuration.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation UpdateConfiguration for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeConflictException "ConflictException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfiguration
|
|
func (c *MQ) UpdateConfiguration(input *UpdateConfigurationRequest) (*UpdateConfigurationResponse, error) {
|
|
req, out := c.UpdateConfigurationRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// UpdateConfigurationWithContext is the same as UpdateConfiguration with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See UpdateConfiguration for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) UpdateConfigurationWithContext(ctx aws.Context, input *UpdateConfigurationRequest, opts ...request.Option) (*UpdateConfigurationResponse, error) {
|
|
req, out := c.UpdateConfigurationRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
const opUpdateUser = "UpdateUser"
|
|
|
|
// UpdateUserRequest generates a "aws/request.Request" representing the
|
|
// client's request for the UpdateUser operation. The "output" return
|
|
// value will be populated with the request's response once the request complets
|
|
// successfuly.
|
|
//
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
//
|
|
// See UpdateUser for more information on using the UpdateUser
|
|
// API call, and error handling.
|
|
//
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
//
|
|
//
|
|
// // Example sending a request using the UpdateUserRequest method.
|
|
// req, resp := client.UpdateUserRequest(params)
|
|
//
|
|
// err := req.Send()
|
|
// if err == nil { // resp is now filled
|
|
// fmt.Println(resp)
|
|
// }
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUser
|
|
func (c *MQ) UpdateUserRequest(input *UpdateUserRequest) (req *request.Request, output *UpdateUserOutput) {
|
|
op := &request.Operation{
|
|
Name: opUpdateUser,
|
|
HTTPMethod: "PUT",
|
|
HTTPPath: "/v1/brokers/{broker-id}/users/{username}",
|
|
}
|
|
|
|
if input == nil {
|
|
input = &UpdateUserRequest{}
|
|
}
|
|
|
|
output = &UpdateUserOutput{}
|
|
req = c.newRequest(op, input, output)
|
|
return
|
|
}
|
|
|
|
// UpdateUser API operation for AmazonMQ.
|
|
//
|
|
// Updates the information for an ActiveMQ user.
|
|
//
|
|
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
|
// with awserr.Error's Code and Message methods to get detailed information about
|
|
// the error.
|
|
//
|
|
// See the AWS API reference guide for AmazonMQ's
|
|
// API operation UpdateUser for usage and error information.
|
|
//
|
|
// Returned Error Codes:
|
|
// * ErrCodeNotFoundException "NotFoundException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeBadRequestException "BadRequestException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeConflictException "ConflictException"
|
|
// Returns information about an error.
|
|
//
|
|
// * ErrCodeForbiddenException "ForbiddenException"
|
|
// Returns information about an error.
|
|
//
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUser
|
|
func (c *MQ) UpdateUser(input *UpdateUserRequest) (*UpdateUserOutput, error) {
|
|
req, out := c.UpdateUserRequest(input)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// UpdateUserWithContext is the same as UpdateUser with the addition of
|
|
// the ability to pass a context and additional request options.
|
|
//
|
|
// See UpdateUser for details on how to use this API operation.
|
|
//
|
|
// The context must be non-nil and will be used for request cancellation. If
|
|
// the context is nil a panic will occur. In the future the SDK may create
|
|
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
|
// for more information on using Contexts.
|
|
func (c *MQ) UpdateUserWithContext(ctx aws.Context, input *UpdateUserRequest, opts ...request.Option) (*UpdateUserOutput, error) {
|
|
req, out := c.UpdateUserRequest(input)
|
|
req.SetContext(ctx)
|
|
req.ApplyOptions(opts...)
|
|
return out, req.Send()
|
|
}
|
|
|
|
// Returns information about all brokers.
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/BrokerInstance
|
|
type BrokerInstance struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// The URL of the broker's ActiveMQ Web Console.
|
|
ConsoleURL *string `locationName:"consoleURL" type:"string"`
|
|
|
|
// The broker's wire-level protocol endpoints.
|
|
Endpoints []*string `locationName:"endpoints" type:"list"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s BrokerInstance) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s BrokerInstance) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetConsoleURL sets the ConsoleURL field's value.
|
|
func (s *BrokerInstance) SetConsoleURL(v string) *BrokerInstance {
|
|
s.ConsoleURL = &v
|
|
return s
|
|
}
|
|
|
|
// SetEndpoints sets the Endpoints field's value.
|
|
func (s *BrokerInstance) SetEndpoints(v []*string) *BrokerInstance {
|
|
s.Endpoints = v
|
|
return s
|
|
}
|
|
|
|
// The Amazon Resource Name (ARN) of the broker.
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/BrokerSummary
|
|
type BrokerSummary struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// The Amazon Resource Name (ARN) of the broker.
|
|
BrokerArn *string `locationName:"brokerArn" type:"string"`
|
|
|
|
// The unique ID that Amazon MQ generates for the broker.
|
|
BrokerId *string `locationName:"brokerId" type:"string"`
|
|
|
|
// The name of the broker. This value must be unique in your AWS account, 1-50
|
|
// characters long, must contain only letters, numbers, dashes, and underscores,
|
|
// and must not contain whitespaces, brackets, wildcard characters, or special
|
|
// characters.
|
|
BrokerName *string `locationName:"brokerName" type:"string"`
|
|
|
|
// The status of the broker. Possible values: CREATION_IN_PROGRESS, CREATION_FAILED,
|
|
// DELETION_IN_PROGRESS, RUNNING, REBOOT_IN_PROGRESS
|
|
BrokerState *string `locationName:"brokerState" type:"string" enum:"BrokerState"`
|
|
|
|
// Required. The deployment mode of the broker. Possible values: SINGLE_INSTANCE,
|
|
// ACTIVE_STANDBY_MULTI_AZ SINGLE_INSTANCE creates a single-instance broker
|
|
// in a single Availability Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby
|
|
// broker for high availability.
|
|
DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"`
|
|
|
|
// The broker's instance type. Possible values: mq.t2.micro, mq.m4.large
|
|
HostInstanceType *string `locationName:"hostInstanceType" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s BrokerSummary) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s BrokerSummary) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetBrokerArn sets the BrokerArn field's value.
|
|
func (s *BrokerSummary) SetBrokerArn(v string) *BrokerSummary {
|
|
s.BrokerArn = &v
|
|
return s
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *BrokerSummary) SetBrokerId(v string) *BrokerSummary {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// SetBrokerName sets the BrokerName field's value.
|
|
func (s *BrokerSummary) SetBrokerName(v string) *BrokerSummary {
|
|
s.BrokerName = &v
|
|
return s
|
|
}
|
|
|
|
// SetBrokerState sets the BrokerState field's value.
|
|
func (s *BrokerSummary) SetBrokerState(v string) *BrokerSummary {
|
|
s.BrokerState = &v
|
|
return s
|
|
}
|
|
|
|
// SetDeploymentMode sets the DeploymentMode field's value.
|
|
func (s *BrokerSummary) SetDeploymentMode(v string) *BrokerSummary {
|
|
s.DeploymentMode = &v
|
|
return s
|
|
}
|
|
|
|
// SetHostInstanceType sets the HostInstanceType field's value.
|
|
func (s *BrokerSummary) SetHostInstanceType(v string) *BrokerSummary {
|
|
s.HostInstanceType = &v
|
|
return s
|
|
}
|
|
|
|
// Returns information about all configurations.
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/Configuration
|
|
type Configuration struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// Required. The ARN of the configuration.
|
|
Arn *string `locationName:"arn" type:"string"`
|
|
|
|
// Required. The description of the configuration.
|
|
Description *string `locationName:"description" type:"string"`
|
|
|
|
// Required. The type of broker engine. Note: Currently, Amazon MQ supports
|
|
// only ACTIVEMQ.
|
|
EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
|
|
|
|
// Required. The version of the broker engine.
|
|
EngineVersion *string `locationName:"engineVersion" type:"string"`
|
|
|
|
// Required. The unique ID that Amazon MQ generates for the configuration.
|
|
Id *string `locationName:"id" type:"string"`
|
|
|
|
// Required. The latest revision of the configuration.
|
|
LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
|
|
|
|
// Required. The name of the configuration. This value can contain only alphanumeric
|
|
// characters, dashes, periods, underscores, and tildes (- . _ ~). This value
|
|
// must be 1-150 characters long.
|
|
Name *string `locationName:"name" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s Configuration) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s Configuration) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetArn sets the Arn field's value.
|
|
func (s *Configuration) SetArn(v string) *Configuration {
|
|
s.Arn = &v
|
|
return s
|
|
}
|
|
|
|
// SetDescription sets the Description field's value.
|
|
func (s *Configuration) SetDescription(v string) *Configuration {
|
|
s.Description = &v
|
|
return s
|
|
}
|
|
|
|
// SetEngineType sets the EngineType field's value.
|
|
func (s *Configuration) SetEngineType(v string) *Configuration {
|
|
s.EngineType = &v
|
|
return s
|
|
}
|
|
|
|
// SetEngineVersion sets the EngineVersion field's value.
|
|
func (s *Configuration) SetEngineVersion(v string) *Configuration {
|
|
s.EngineVersion = &v
|
|
return s
|
|
}
|
|
|
|
// SetId sets the Id field's value.
|
|
func (s *Configuration) SetId(v string) *Configuration {
|
|
s.Id = &v
|
|
return s
|
|
}
|
|
|
|
// SetLatestRevision sets the LatestRevision field's value.
|
|
func (s *Configuration) SetLatestRevision(v *ConfigurationRevision) *Configuration {
|
|
s.LatestRevision = v
|
|
return s
|
|
}
|
|
|
|
// SetName sets the Name field's value.
|
|
func (s *Configuration) SetName(v string) *Configuration {
|
|
s.Name = &v
|
|
return s
|
|
}
|
|
|
|
// A list of information about the configuration.
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ConfigurationId
|
|
type ConfigurationId struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// Required. The unique ID that Amazon MQ generates for the configuration.
|
|
Id *string `locationName:"id" type:"string"`
|
|
|
|
// The Universally Unique Identifier (UUID) of the request.
|
|
Revision *int64 `locationName:"revision" type:"integer"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s ConfigurationId) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s ConfigurationId) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetId sets the Id field's value.
|
|
func (s *ConfigurationId) SetId(v string) *ConfigurationId {
|
|
s.Id = &v
|
|
return s
|
|
}
|
|
|
|
// SetRevision sets the Revision field's value.
|
|
func (s *ConfigurationId) SetRevision(v int64) *ConfigurationId {
|
|
s.Revision = &v
|
|
return s
|
|
}
|
|
|
|
// Returns information about the specified configuration revision.
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ConfigurationRevision
|
|
type ConfigurationRevision struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// The description of the configuration revision.
|
|
Description *string `locationName:"description" type:"string"`
|
|
|
|
// Required. The revision of the configuration.
|
|
Revision *int64 `locationName:"revision" type:"integer"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s ConfigurationRevision) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s ConfigurationRevision) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetDescription sets the Description field's value.
|
|
func (s *ConfigurationRevision) SetDescription(v string) *ConfigurationRevision {
|
|
s.Description = &v
|
|
return s
|
|
}
|
|
|
|
// SetRevision sets the Revision field's value.
|
|
func (s *ConfigurationRevision) SetRevision(v int64) *ConfigurationRevision {
|
|
s.Revision = &v
|
|
return s
|
|
}
|
|
|
|
// Broker configuration information
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/Configurations
|
|
type Configurations struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// The current configuration of the broker.
|
|
Current *ConfigurationId `locationName:"current" type:"structure"`
|
|
|
|
// The history of configurations applied to the broker.
|
|
History []*ConfigurationId `locationName:"history" type:"list"`
|
|
|
|
// The pending configuration of the broker.
|
|
Pending *ConfigurationId `locationName:"pending" type:"structure"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s Configurations) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s Configurations) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetCurrent sets the Current field's value.
|
|
func (s *Configurations) SetCurrent(v *ConfigurationId) *Configurations {
|
|
s.Current = v
|
|
return s
|
|
}
|
|
|
|
// SetHistory sets the History field's value.
|
|
func (s *Configurations) SetHistory(v []*ConfigurationId) *Configurations {
|
|
s.History = v
|
|
return s
|
|
}
|
|
|
|
// SetPending sets the Pending field's value.
|
|
func (s *Configurations) SetPending(v *ConfigurationId) *Configurations {
|
|
s.Pending = v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBrokerRequest
|
|
type CreateBrokerRequest struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"`
|
|
|
|
BrokerName *string `locationName:"brokerName" type:"string"`
|
|
|
|
// A list of information about the configuration.
|
|
Configuration *ConfigurationId `locationName:"configuration" type:"structure"`
|
|
|
|
CreatorRequestId *string `locationName:"creatorRequestId" type:"string" idempotencyToken:"true"`
|
|
|
|
// The deployment mode of the broker. Possible values: SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ
|
|
// SINGLE_INSTANCE creates a single-instance broker in a single Availability
|
|
// Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby broker for high availability.
|
|
DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"`
|
|
|
|
// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
|
|
EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
|
|
|
|
EngineVersion *string `locationName:"engineVersion" type:"string"`
|
|
|
|
HostInstanceType *string `locationName:"hostInstanceType" type:"string"`
|
|
|
|
// The scheduled time period relative to UTC during which Amazon MQ begins to
|
|
// apply pending updates or patches to the broker.
|
|
MaintenanceWindowStartTime *WeeklyStartTime `locationName:"maintenanceWindowStartTime" type:"structure"`
|
|
|
|
PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"`
|
|
|
|
SecurityGroups []*string `locationName:"securityGroups" type:"list"`
|
|
|
|
SubnetIds []*string `locationName:"subnetIds" type:"list"`
|
|
|
|
Users []*User `locationName:"users" type:"list"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s CreateBrokerRequest) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s CreateBrokerRequest) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
|
|
func (s *CreateBrokerRequest) SetAutoMinorVersionUpgrade(v bool) *CreateBrokerRequest {
|
|
s.AutoMinorVersionUpgrade = &v
|
|
return s
|
|
}
|
|
|
|
// SetBrokerName sets the BrokerName field's value.
|
|
func (s *CreateBrokerRequest) SetBrokerName(v string) *CreateBrokerRequest {
|
|
s.BrokerName = &v
|
|
return s
|
|
}
|
|
|
|
// SetConfiguration sets the Configuration field's value.
|
|
func (s *CreateBrokerRequest) SetConfiguration(v *ConfigurationId) *CreateBrokerRequest {
|
|
s.Configuration = v
|
|
return s
|
|
}
|
|
|
|
// SetCreatorRequestId sets the CreatorRequestId field's value.
|
|
func (s *CreateBrokerRequest) SetCreatorRequestId(v string) *CreateBrokerRequest {
|
|
s.CreatorRequestId = &v
|
|
return s
|
|
}
|
|
|
|
// SetDeploymentMode sets the DeploymentMode field's value.
|
|
func (s *CreateBrokerRequest) SetDeploymentMode(v string) *CreateBrokerRequest {
|
|
s.DeploymentMode = &v
|
|
return s
|
|
}
|
|
|
|
// SetEngineType sets the EngineType field's value.
|
|
func (s *CreateBrokerRequest) SetEngineType(v string) *CreateBrokerRequest {
|
|
s.EngineType = &v
|
|
return s
|
|
}
|
|
|
|
// SetEngineVersion sets the EngineVersion field's value.
|
|
func (s *CreateBrokerRequest) SetEngineVersion(v string) *CreateBrokerRequest {
|
|
s.EngineVersion = &v
|
|
return s
|
|
}
|
|
|
|
// SetHostInstanceType sets the HostInstanceType field's value.
|
|
func (s *CreateBrokerRequest) SetHostInstanceType(v string) *CreateBrokerRequest {
|
|
s.HostInstanceType = &v
|
|
return s
|
|
}
|
|
|
|
// SetMaintenanceWindowStartTime sets the MaintenanceWindowStartTime field's value.
|
|
func (s *CreateBrokerRequest) SetMaintenanceWindowStartTime(v *WeeklyStartTime) *CreateBrokerRequest {
|
|
s.MaintenanceWindowStartTime = v
|
|
return s
|
|
}
|
|
|
|
// SetPubliclyAccessible sets the PubliclyAccessible field's value.
|
|
func (s *CreateBrokerRequest) SetPubliclyAccessible(v bool) *CreateBrokerRequest {
|
|
s.PubliclyAccessible = &v
|
|
return s
|
|
}
|
|
|
|
// SetSecurityGroups sets the SecurityGroups field's value.
|
|
func (s *CreateBrokerRequest) SetSecurityGroups(v []*string) *CreateBrokerRequest {
|
|
s.SecurityGroups = v
|
|
return s
|
|
}
|
|
|
|
// SetSubnetIds sets the SubnetIds field's value.
|
|
func (s *CreateBrokerRequest) SetSubnetIds(v []*string) *CreateBrokerRequest {
|
|
s.SubnetIds = v
|
|
return s
|
|
}
|
|
|
|
// SetUsers sets the Users field's value.
|
|
func (s *CreateBrokerRequest) SetUsers(v []*User) *CreateBrokerRequest {
|
|
s.Users = v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBrokerResponse
|
|
type CreateBrokerResponse struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
BrokerArn *string `locationName:"brokerArn" type:"string"`
|
|
|
|
BrokerId *string `locationName:"brokerId" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s CreateBrokerResponse) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s CreateBrokerResponse) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetBrokerArn sets the BrokerArn field's value.
|
|
func (s *CreateBrokerResponse) SetBrokerArn(v string) *CreateBrokerResponse {
|
|
s.BrokerArn = &v
|
|
return s
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *CreateBrokerResponse) SetBrokerId(v string) *CreateBrokerResponse {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfigurationRequest
|
|
type CreateConfigurationRequest struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
|
|
EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
|
|
|
|
EngineVersion *string `locationName:"engineVersion" type:"string"`
|
|
|
|
Name *string `locationName:"name" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s CreateConfigurationRequest) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s CreateConfigurationRequest) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetEngineType sets the EngineType field's value.
|
|
func (s *CreateConfigurationRequest) SetEngineType(v string) *CreateConfigurationRequest {
|
|
s.EngineType = &v
|
|
return s
|
|
}
|
|
|
|
// SetEngineVersion sets the EngineVersion field's value.
|
|
func (s *CreateConfigurationRequest) SetEngineVersion(v string) *CreateConfigurationRequest {
|
|
s.EngineVersion = &v
|
|
return s
|
|
}
|
|
|
|
// SetName sets the Name field's value.
|
|
func (s *CreateConfigurationRequest) SetName(v string) *CreateConfigurationRequest {
|
|
s.Name = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfigurationResponse
|
|
type CreateConfigurationResponse struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
Arn *string `locationName:"arn" type:"string"`
|
|
|
|
Id *string `locationName:"id" type:"string"`
|
|
|
|
// Returns information about the specified configuration revision.
|
|
LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
|
|
|
|
Name *string `locationName:"name" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s CreateConfigurationResponse) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s CreateConfigurationResponse) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetArn sets the Arn field's value.
|
|
func (s *CreateConfigurationResponse) SetArn(v string) *CreateConfigurationResponse {
|
|
s.Arn = &v
|
|
return s
|
|
}
|
|
|
|
// SetId sets the Id field's value.
|
|
func (s *CreateConfigurationResponse) SetId(v string) *CreateConfigurationResponse {
|
|
s.Id = &v
|
|
return s
|
|
}
|
|
|
|
// SetLatestRevision sets the LatestRevision field's value.
|
|
func (s *CreateConfigurationResponse) SetLatestRevision(v *ConfigurationRevision) *CreateConfigurationResponse {
|
|
s.LatestRevision = v
|
|
return s
|
|
}
|
|
|
|
// SetName sets the Name field's value.
|
|
func (s *CreateConfigurationResponse) SetName(v string) *CreateConfigurationResponse {
|
|
s.Name = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUserResponse
|
|
type CreateUserOutput struct {
|
|
_ struct{} `type:"structure"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s CreateUserOutput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s CreateUserOutput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUserRequest
|
|
type CreateUserRequest struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// BrokerId is a required field
|
|
BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
|
|
|
|
ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
|
|
|
|
Groups []*string `locationName:"groups" type:"list"`
|
|
|
|
Password *string `locationName:"password" type:"string"`
|
|
|
|
// Username is a required field
|
|
Username *string `location:"uri" locationName:"username" type:"string" required:"true"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s CreateUserRequest) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s CreateUserRequest) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *CreateUserRequest) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "CreateUserRequest"}
|
|
if s.BrokerId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("BrokerId"))
|
|
}
|
|
if s.Username == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("Username"))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *CreateUserRequest) SetBrokerId(v string) *CreateUserRequest {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// SetConsoleAccess sets the ConsoleAccess field's value.
|
|
func (s *CreateUserRequest) SetConsoleAccess(v bool) *CreateUserRequest {
|
|
s.ConsoleAccess = &v
|
|
return s
|
|
}
|
|
|
|
// SetGroups sets the Groups field's value.
|
|
func (s *CreateUserRequest) SetGroups(v []*string) *CreateUserRequest {
|
|
s.Groups = v
|
|
return s
|
|
}
|
|
|
|
// SetPassword sets the Password field's value.
|
|
func (s *CreateUserRequest) SetPassword(v string) *CreateUserRequest {
|
|
s.Password = &v
|
|
return s
|
|
}
|
|
|
|
// SetUsername sets the Username field's value.
|
|
func (s *CreateUserRequest) SetUsername(v string) *CreateUserRequest {
|
|
s.Username = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBrokerRequest
|
|
type DeleteBrokerInput struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// BrokerId is a required field
|
|
BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s DeleteBrokerInput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s DeleteBrokerInput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *DeleteBrokerInput) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "DeleteBrokerInput"}
|
|
if s.BrokerId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("BrokerId"))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *DeleteBrokerInput) SetBrokerId(v string) *DeleteBrokerInput {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBrokerResponse
|
|
type DeleteBrokerResponse struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
BrokerId *string `locationName:"brokerId" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s DeleteBrokerResponse) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s DeleteBrokerResponse) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *DeleteBrokerResponse) SetBrokerId(v string) *DeleteBrokerResponse {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUserRequest
|
|
type DeleteUserInput struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// BrokerId is a required field
|
|
BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
|
|
|
|
// Username is a required field
|
|
Username *string `location:"uri" locationName:"username" type:"string" required:"true"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s DeleteUserInput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s DeleteUserInput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *DeleteUserInput) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"}
|
|
if s.BrokerId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("BrokerId"))
|
|
}
|
|
if s.Username == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("Username"))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *DeleteUserInput) SetBrokerId(v string) *DeleteUserInput {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// SetUsername sets the Username field's value.
|
|
func (s *DeleteUserInput) SetUsername(v string) *DeleteUserInput {
|
|
s.Username = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUserResponse
|
|
type DeleteUserOutput struct {
|
|
_ struct{} `type:"structure"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s DeleteUserOutput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s DeleteUserOutput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerRequest
|
|
type DescribeBrokerInput struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// BrokerId is a required field
|
|
BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s DescribeBrokerInput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s DescribeBrokerInput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *DescribeBrokerInput) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "DescribeBrokerInput"}
|
|
if s.BrokerId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("BrokerId"))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *DescribeBrokerInput) SetBrokerId(v string) *DescribeBrokerInput {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerResponse
|
|
type DescribeBrokerResponse struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"`
|
|
|
|
BrokerArn *string `locationName:"brokerArn" type:"string"`
|
|
|
|
BrokerId *string `locationName:"brokerId" type:"string"`
|
|
|
|
BrokerInstances []*BrokerInstance `locationName:"brokerInstances" type:"list"`
|
|
|
|
BrokerName *string `locationName:"brokerName" type:"string"`
|
|
|
|
// The status of the broker. Possible values: CREATION_IN_PROGRESS, CREATION_FAILED,
|
|
// DELETION_IN_PROGRESS, RUNNING, REBOOT_IN_PROGRESS
|
|
BrokerState *string `locationName:"brokerState" type:"string" enum:"BrokerState"`
|
|
|
|
// Broker configuration information
|
|
Configurations *Configurations `locationName:"configurations" type:"structure"`
|
|
|
|
// The deployment mode of the broker. Possible values: SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ
|
|
// SINGLE_INSTANCE creates a single-instance broker in a single Availability
|
|
// Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby broker for high availability.
|
|
DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"`
|
|
|
|
// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
|
|
EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
|
|
|
|
EngineVersion *string `locationName:"engineVersion" type:"string"`
|
|
|
|
HostInstanceType *string `locationName:"hostInstanceType" type:"string"`
|
|
|
|
// The scheduled time period relative to UTC during which Amazon MQ begins to
|
|
// apply pending updates or patches to the broker.
|
|
MaintenanceWindowStartTime *WeeklyStartTime `locationName:"maintenanceWindowStartTime" type:"structure"`
|
|
|
|
PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"`
|
|
|
|
SecurityGroups []*string `locationName:"securityGroups" type:"list"`
|
|
|
|
SubnetIds []*string `locationName:"subnetIds" type:"list"`
|
|
|
|
Users []*UserSummary `locationName:"users" type:"list"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s DescribeBrokerResponse) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s DescribeBrokerResponse) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
|
|
func (s *DescribeBrokerResponse) SetAutoMinorVersionUpgrade(v bool) *DescribeBrokerResponse {
|
|
s.AutoMinorVersionUpgrade = &v
|
|
return s
|
|
}
|
|
|
|
// SetBrokerArn sets the BrokerArn field's value.
|
|
func (s *DescribeBrokerResponse) SetBrokerArn(v string) *DescribeBrokerResponse {
|
|
s.BrokerArn = &v
|
|
return s
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *DescribeBrokerResponse) SetBrokerId(v string) *DescribeBrokerResponse {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// SetBrokerInstances sets the BrokerInstances field's value.
|
|
func (s *DescribeBrokerResponse) SetBrokerInstances(v []*BrokerInstance) *DescribeBrokerResponse {
|
|
s.BrokerInstances = v
|
|
return s
|
|
}
|
|
|
|
// SetBrokerName sets the BrokerName field's value.
|
|
func (s *DescribeBrokerResponse) SetBrokerName(v string) *DescribeBrokerResponse {
|
|
s.BrokerName = &v
|
|
return s
|
|
}
|
|
|
|
// SetBrokerState sets the BrokerState field's value.
|
|
func (s *DescribeBrokerResponse) SetBrokerState(v string) *DescribeBrokerResponse {
|
|
s.BrokerState = &v
|
|
return s
|
|
}
|
|
|
|
// SetConfigurations sets the Configurations field's value.
|
|
func (s *DescribeBrokerResponse) SetConfigurations(v *Configurations) *DescribeBrokerResponse {
|
|
s.Configurations = v
|
|
return s
|
|
}
|
|
|
|
// SetDeploymentMode sets the DeploymentMode field's value.
|
|
func (s *DescribeBrokerResponse) SetDeploymentMode(v string) *DescribeBrokerResponse {
|
|
s.DeploymentMode = &v
|
|
return s
|
|
}
|
|
|
|
// SetEngineType sets the EngineType field's value.
|
|
func (s *DescribeBrokerResponse) SetEngineType(v string) *DescribeBrokerResponse {
|
|
s.EngineType = &v
|
|
return s
|
|
}
|
|
|
|
// SetEngineVersion sets the EngineVersion field's value.
|
|
func (s *DescribeBrokerResponse) SetEngineVersion(v string) *DescribeBrokerResponse {
|
|
s.EngineVersion = &v
|
|
return s
|
|
}
|
|
|
|
// SetHostInstanceType sets the HostInstanceType field's value.
|
|
func (s *DescribeBrokerResponse) SetHostInstanceType(v string) *DescribeBrokerResponse {
|
|
s.HostInstanceType = &v
|
|
return s
|
|
}
|
|
|
|
// SetMaintenanceWindowStartTime sets the MaintenanceWindowStartTime field's value.
|
|
func (s *DescribeBrokerResponse) SetMaintenanceWindowStartTime(v *WeeklyStartTime) *DescribeBrokerResponse {
|
|
s.MaintenanceWindowStartTime = v
|
|
return s
|
|
}
|
|
|
|
// SetPubliclyAccessible sets the PubliclyAccessible field's value.
|
|
func (s *DescribeBrokerResponse) SetPubliclyAccessible(v bool) *DescribeBrokerResponse {
|
|
s.PubliclyAccessible = &v
|
|
return s
|
|
}
|
|
|
|
// SetSecurityGroups sets the SecurityGroups field's value.
|
|
func (s *DescribeBrokerResponse) SetSecurityGroups(v []*string) *DescribeBrokerResponse {
|
|
s.SecurityGroups = v
|
|
return s
|
|
}
|
|
|
|
// SetSubnetIds sets the SubnetIds field's value.
|
|
func (s *DescribeBrokerResponse) SetSubnetIds(v []*string) *DescribeBrokerResponse {
|
|
s.SubnetIds = v
|
|
return s
|
|
}
|
|
|
|
// SetUsers sets the Users field's value.
|
|
func (s *DescribeBrokerResponse) SetUsers(v []*UserSummary) *DescribeBrokerResponse {
|
|
s.Users = v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRequest
|
|
type DescribeConfigurationInput struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// ConfigurationId is a required field
|
|
ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s DescribeConfigurationInput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s DescribeConfigurationInput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *DescribeConfigurationInput) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationInput"}
|
|
if s.ConfigurationId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetConfigurationId sets the ConfigurationId field's value.
|
|
func (s *DescribeConfigurationInput) SetConfigurationId(v string) *DescribeConfigurationInput {
|
|
s.ConfigurationId = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationResponse
|
|
type DescribeConfigurationOutput struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
Arn *string `locationName:"arn" type:"string"`
|
|
|
|
Description *string `locationName:"description" type:"string"`
|
|
|
|
// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
|
|
EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
|
|
|
|
EngineVersion *string `locationName:"engineVersion" type:"string"`
|
|
|
|
Id *string `locationName:"id" type:"string"`
|
|
|
|
// Returns information about the specified configuration revision.
|
|
LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
|
|
|
|
Name *string `locationName:"name" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s DescribeConfigurationOutput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s DescribeConfigurationOutput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetArn sets the Arn field's value.
|
|
func (s *DescribeConfigurationOutput) SetArn(v string) *DescribeConfigurationOutput {
|
|
s.Arn = &v
|
|
return s
|
|
}
|
|
|
|
// SetDescription sets the Description field's value.
|
|
func (s *DescribeConfigurationOutput) SetDescription(v string) *DescribeConfigurationOutput {
|
|
s.Description = &v
|
|
return s
|
|
}
|
|
|
|
// SetEngineType sets the EngineType field's value.
|
|
func (s *DescribeConfigurationOutput) SetEngineType(v string) *DescribeConfigurationOutput {
|
|
s.EngineType = &v
|
|
return s
|
|
}
|
|
|
|
// SetEngineVersion sets the EngineVersion field's value.
|
|
func (s *DescribeConfigurationOutput) SetEngineVersion(v string) *DescribeConfigurationOutput {
|
|
s.EngineVersion = &v
|
|
return s
|
|
}
|
|
|
|
// SetId sets the Id field's value.
|
|
func (s *DescribeConfigurationOutput) SetId(v string) *DescribeConfigurationOutput {
|
|
s.Id = &v
|
|
return s
|
|
}
|
|
|
|
// SetLatestRevision sets the LatestRevision field's value.
|
|
func (s *DescribeConfigurationOutput) SetLatestRevision(v *ConfigurationRevision) *DescribeConfigurationOutput {
|
|
s.LatestRevision = v
|
|
return s
|
|
}
|
|
|
|
// SetName sets the Name field's value.
|
|
func (s *DescribeConfigurationOutput) SetName(v string) *DescribeConfigurationOutput {
|
|
s.Name = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevisionRequest
|
|
type DescribeConfigurationRevisionInput struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// ConfigurationId is a required field
|
|
ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"`
|
|
|
|
// ConfigurationRevision is a required field
|
|
ConfigurationRevision *string `location:"uri" locationName:"configuration-revision" type:"string" required:"true"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s DescribeConfigurationRevisionInput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s DescribeConfigurationRevisionInput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *DescribeConfigurationRevisionInput) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationRevisionInput"}
|
|
if s.ConfigurationId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
|
|
}
|
|
if s.ConfigurationRevision == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("ConfigurationRevision"))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetConfigurationId sets the ConfigurationId field's value.
|
|
func (s *DescribeConfigurationRevisionInput) SetConfigurationId(v string) *DescribeConfigurationRevisionInput {
|
|
s.ConfigurationId = &v
|
|
return s
|
|
}
|
|
|
|
// SetConfigurationRevision sets the ConfigurationRevision field's value.
|
|
func (s *DescribeConfigurationRevisionInput) SetConfigurationRevision(v string) *DescribeConfigurationRevisionInput {
|
|
s.ConfigurationRevision = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevisionResponse
|
|
type DescribeConfigurationRevisionResponse struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
ConfigurationId *string `locationName:"configurationId" type:"string"`
|
|
|
|
Data *string `locationName:"data" type:"string"`
|
|
|
|
Description *string `locationName:"description" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s DescribeConfigurationRevisionResponse) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s DescribeConfigurationRevisionResponse) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetConfigurationId sets the ConfigurationId field's value.
|
|
func (s *DescribeConfigurationRevisionResponse) SetConfigurationId(v string) *DescribeConfigurationRevisionResponse {
|
|
s.ConfigurationId = &v
|
|
return s
|
|
}
|
|
|
|
// SetData sets the Data field's value.
|
|
func (s *DescribeConfigurationRevisionResponse) SetData(v string) *DescribeConfigurationRevisionResponse {
|
|
s.Data = &v
|
|
return s
|
|
}
|
|
|
|
// SetDescription sets the Description field's value.
|
|
func (s *DescribeConfigurationRevisionResponse) SetDescription(v string) *DescribeConfigurationRevisionResponse {
|
|
s.Description = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUserRequest
|
|
type DescribeUserInput struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// BrokerId is a required field
|
|
BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
|
|
|
|
// Username is a required field
|
|
Username *string `location:"uri" locationName:"username" type:"string" required:"true"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s DescribeUserInput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s DescribeUserInput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *DescribeUserInput) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"}
|
|
if s.BrokerId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("BrokerId"))
|
|
}
|
|
if s.Username == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("Username"))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *DescribeUserInput) SetBrokerId(v string) *DescribeUserInput {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// SetUsername sets the Username field's value.
|
|
func (s *DescribeUserInput) SetUsername(v string) *DescribeUserInput {
|
|
s.Username = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUserResponse
|
|
type DescribeUserResponse struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
BrokerId *string `locationName:"brokerId" type:"string"`
|
|
|
|
ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
|
|
|
|
Groups []*string `locationName:"groups" type:"list"`
|
|
|
|
// Returns information about the status of the changes pending for the ActiveMQ
|
|
// user.
|
|
Pending *UserPendingChanges `locationName:"pending" type:"structure"`
|
|
|
|
Username *string `locationName:"username" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s DescribeUserResponse) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s DescribeUserResponse) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *DescribeUserResponse) SetBrokerId(v string) *DescribeUserResponse {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// SetConsoleAccess sets the ConsoleAccess field's value.
|
|
func (s *DescribeUserResponse) SetConsoleAccess(v bool) *DescribeUserResponse {
|
|
s.ConsoleAccess = &v
|
|
return s
|
|
}
|
|
|
|
// SetGroups sets the Groups field's value.
|
|
func (s *DescribeUserResponse) SetGroups(v []*string) *DescribeUserResponse {
|
|
s.Groups = v
|
|
return s
|
|
}
|
|
|
|
// SetPending sets the Pending field's value.
|
|
func (s *DescribeUserResponse) SetPending(v *UserPendingChanges) *DescribeUserResponse {
|
|
s.Pending = v
|
|
return s
|
|
}
|
|
|
|
// SetUsername sets the Username field's value.
|
|
func (s *DescribeUserResponse) SetUsername(v string) *DescribeUserResponse {
|
|
s.Username = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokersRequest
|
|
type ListBrokersInput struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
|
|
|
|
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s ListBrokersInput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s ListBrokersInput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *ListBrokersInput) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "ListBrokersInput"}
|
|
if s.MaxResults != nil && *s.MaxResults < 1 {
|
|
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetMaxResults sets the MaxResults field's value.
|
|
func (s *ListBrokersInput) SetMaxResults(v int64) *ListBrokersInput {
|
|
s.MaxResults = &v
|
|
return s
|
|
}
|
|
|
|
// SetNextToken sets the NextToken field's value.
|
|
func (s *ListBrokersInput) SetNextToken(v string) *ListBrokersInput {
|
|
s.NextToken = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokersResponse
|
|
type ListBrokersResponse struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
BrokerSummaries []*BrokerSummary `locationName:"brokerSummaries" type:"list"`
|
|
|
|
NextToken *string `locationName:"nextToken" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s ListBrokersResponse) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s ListBrokersResponse) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetBrokerSummaries sets the BrokerSummaries field's value.
|
|
func (s *ListBrokersResponse) SetBrokerSummaries(v []*BrokerSummary) *ListBrokersResponse {
|
|
s.BrokerSummaries = v
|
|
return s
|
|
}
|
|
|
|
// SetNextToken sets the NextToken field's value.
|
|
func (s *ListBrokersResponse) SetNextToken(v string) *ListBrokersResponse {
|
|
s.NextToken = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisionsRequest
|
|
type ListConfigurationRevisionsInput struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// ConfigurationId is a required field
|
|
ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"`
|
|
|
|
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
|
|
|
|
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s ListConfigurationRevisionsInput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s ListConfigurationRevisionsInput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *ListConfigurationRevisionsInput) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "ListConfigurationRevisionsInput"}
|
|
if s.ConfigurationId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
|
|
}
|
|
if s.MaxResults != nil && *s.MaxResults < 1 {
|
|
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetConfigurationId sets the ConfigurationId field's value.
|
|
func (s *ListConfigurationRevisionsInput) SetConfigurationId(v string) *ListConfigurationRevisionsInput {
|
|
s.ConfigurationId = &v
|
|
return s
|
|
}
|
|
|
|
// SetMaxResults sets the MaxResults field's value.
|
|
func (s *ListConfigurationRevisionsInput) SetMaxResults(v int64) *ListConfigurationRevisionsInput {
|
|
s.MaxResults = &v
|
|
return s
|
|
}
|
|
|
|
// SetNextToken sets the NextToken field's value.
|
|
func (s *ListConfigurationRevisionsInput) SetNextToken(v string) *ListConfigurationRevisionsInput {
|
|
s.NextToken = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisionsResponse
|
|
type ListConfigurationRevisionsResponse struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
ConfigurationId *string `locationName:"configurationId" type:"string"`
|
|
|
|
MaxResults *int64 `locationName:"maxResults" type:"integer"`
|
|
|
|
NextToken *string `locationName:"nextToken" type:"string"`
|
|
|
|
Revisions []*ConfigurationRevision `locationName:"revisions" type:"list"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s ListConfigurationRevisionsResponse) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s ListConfigurationRevisionsResponse) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetConfigurationId sets the ConfigurationId field's value.
|
|
func (s *ListConfigurationRevisionsResponse) SetConfigurationId(v string) *ListConfigurationRevisionsResponse {
|
|
s.ConfigurationId = &v
|
|
return s
|
|
}
|
|
|
|
// SetMaxResults sets the MaxResults field's value.
|
|
func (s *ListConfigurationRevisionsResponse) SetMaxResults(v int64) *ListConfigurationRevisionsResponse {
|
|
s.MaxResults = &v
|
|
return s
|
|
}
|
|
|
|
// SetNextToken sets the NextToken field's value.
|
|
func (s *ListConfigurationRevisionsResponse) SetNextToken(v string) *ListConfigurationRevisionsResponse {
|
|
s.NextToken = &v
|
|
return s
|
|
}
|
|
|
|
// SetRevisions sets the Revisions field's value.
|
|
func (s *ListConfigurationRevisionsResponse) SetRevisions(v []*ConfigurationRevision) *ListConfigurationRevisionsResponse {
|
|
s.Revisions = v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationsRequest
|
|
type ListConfigurationsInput struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
|
|
|
|
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s ListConfigurationsInput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s ListConfigurationsInput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *ListConfigurationsInput) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "ListConfigurationsInput"}
|
|
if s.MaxResults != nil && *s.MaxResults < 1 {
|
|
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetMaxResults sets the MaxResults field's value.
|
|
func (s *ListConfigurationsInput) SetMaxResults(v int64) *ListConfigurationsInput {
|
|
s.MaxResults = &v
|
|
return s
|
|
}
|
|
|
|
// SetNextToken sets the NextToken field's value.
|
|
func (s *ListConfigurationsInput) SetNextToken(v string) *ListConfigurationsInput {
|
|
s.NextToken = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationsResponse
|
|
type ListConfigurationsResponse struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
Configurations []*Configuration `locationName:"configurations" type:"list"`
|
|
|
|
MaxResults *int64 `locationName:"maxResults" type:"integer"`
|
|
|
|
NextToken *string `locationName:"nextToken" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s ListConfigurationsResponse) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s ListConfigurationsResponse) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetConfigurations sets the Configurations field's value.
|
|
func (s *ListConfigurationsResponse) SetConfigurations(v []*Configuration) *ListConfigurationsResponse {
|
|
s.Configurations = v
|
|
return s
|
|
}
|
|
|
|
// SetMaxResults sets the MaxResults field's value.
|
|
func (s *ListConfigurationsResponse) SetMaxResults(v int64) *ListConfigurationsResponse {
|
|
s.MaxResults = &v
|
|
return s
|
|
}
|
|
|
|
// SetNextToken sets the NextToken field's value.
|
|
func (s *ListConfigurationsResponse) SetNextToken(v string) *ListConfigurationsResponse {
|
|
s.NextToken = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsersRequest
|
|
type ListUsersInput struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// BrokerId is a required field
|
|
BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
|
|
|
|
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
|
|
|
|
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s ListUsersInput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s ListUsersInput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *ListUsersInput) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"}
|
|
if s.BrokerId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("BrokerId"))
|
|
}
|
|
if s.MaxResults != nil && *s.MaxResults < 1 {
|
|
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *ListUsersInput) SetBrokerId(v string) *ListUsersInput {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// SetMaxResults sets the MaxResults field's value.
|
|
func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput {
|
|
s.MaxResults = &v
|
|
return s
|
|
}
|
|
|
|
// SetNextToken sets the NextToken field's value.
|
|
func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput {
|
|
s.NextToken = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsersResponse
|
|
type ListUsersResponse struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
BrokerId *string `locationName:"brokerId" type:"string"`
|
|
|
|
MaxResults *int64 `locationName:"maxResults" type:"integer"`
|
|
|
|
NextToken *string `locationName:"nextToken" type:"string"`
|
|
|
|
Users []*UserSummary `locationName:"users" type:"list"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s ListUsersResponse) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s ListUsersResponse) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *ListUsersResponse) SetBrokerId(v string) *ListUsersResponse {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// SetMaxResults sets the MaxResults field's value.
|
|
func (s *ListUsersResponse) SetMaxResults(v int64) *ListUsersResponse {
|
|
s.MaxResults = &v
|
|
return s
|
|
}
|
|
|
|
// SetNextToken sets the NextToken field's value.
|
|
func (s *ListUsersResponse) SetNextToken(v string) *ListUsersResponse {
|
|
s.NextToken = &v
|
|
return s
|
|
}
|
|
|
|
// SetUsers sets the Users field's value.
|
|
func (s *ListUsersResponse) SetUsers(v []*UserSummary) *ListUsersResponse {
|
|
s.Users = v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBrokerRequest
|
|
type RebootBrokerInput struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// BrokerId is a required field
|
|
BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s RebootBrokerInput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s RebootBrokerInput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *RebootBrokerInput) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "RebootBrokerInput"}
|
|
if s.BrokerId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("BrokerId"))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *RebootBrokerInput) SetBrokerId(v string) *RebootBrokerInput {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBrokerResponse
|
|
type RebootBrokerOutput struct {
|
|
_ struct{} `type:"structure"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s RebootBrokerOutput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s RebootBrokerOutput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Returns information about the XML element or attribute that was sanitized
|
|
// in the configuration.
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/SanitizationWarning
|
|
type SanitizationWarning struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// The name of the XML attribute that has been sanitized.
|
|
AttributeName *string `locationName:"attributeName" type:"string"`
|
|
|
|
// The name of the XML element that has been sanitized.
|
|
ElementName *string `locationName:"elementName" type:"string"`
|
|
|
|
// Required. The reason for which the XML elements or attributes were sanitized.
|
|
// Possible values: DISALLOWED_ELEMENT_REMOVED, DISALLOWED_ATTRIBUTE_REMOVED,
|
|
// INVALID_ATTRIBUTE_VALUE_REMOVED DISALLOWED_ELEMENT_REMOVED shows that the
|
|
// provided element isn't allowed and has been removed. DISALLOWED_ATTRIBUTE_REMOVED
|
|
// shows that the provided attribute isn't allowed and has been removed. INVALID_ATTRIBUTE_VALUE_REMOVED
|
|
// shows that the provided value for the attribute isn't allowed and has been
|
|
// removed.
|
|
Reason *string `locationName:"reason" type:"string" enum:"SanitizationWarningReason"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s SanitizationWarning) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s SanitizationWarning) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetAttributeName sets the AttributeName field's value.
|
|
func (s *SanitizationWarning) SetAttributeName(v string) *SanitizationWarning {
|
|
s.AttributeName = &v
|
|
return s
|
|
}
|
|
|
|
// SetElementName sets the ElementName field's value.
|
|
func (s *SanitizationWarning) SetElementName(v string) *SanitizationWarning {
|
|
s.ElementName = &v
|
|
return s
|
|
}
|
|
|
|
// SetReason sets the Reason field's value.
|
|
func (s *SanitizationWarning) SetReason(v string) *SanitizationWarning {
|
|
s.Reason = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBrokerRequest
|
|
type UpdateBrokerRequest struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// BrokerId is a required field
|
|
BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
|
|
|
|
// A list of information about the configuration.
|
|
Configuration *ConfigurationId `locationName:"configuration" type:"structure"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s UpdateBrokerRequest) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s UpdateBrokerRequest) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *UpdateBrokerRequest) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "UpdateBrokerRequest"}
|
|
if s.BrokerId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("BrokerId"))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *UpdateBrokerRequest) SetBrokerId(v string) *UpdateBrokerRequest {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// SetConfiguration sets the Configuration field's value.
|
|
func (s *UpdateBrokerRequest) SetConfiguration(v *ConfigurationId) *UpdateBrokerRequest {
|
|
s.Configuration = v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBrokerResponse
|
|
type UpdateBrokerResponse struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
BrokerId *string `locationName:"brokerId" type:"string"`
|
|
|
|
// A list of information about the configuration.
|
|
Configuration *ConfigurationId `locationName:"configuration" type:"structure"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s UpdateBrokerResponse) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s UpdateBrokerResponse) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *UpdateBrokerResponse) SetBrokerId(v string) *UpdateBrokerResponse {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// SetConfiguration sets the Configuration field's value.
|
|
func (s *UpdateBrokerResponse) SetConfiguration(v *ConfigurationId) *UpdateBrokerResponse {
|
|
s.Configuration = v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfigurationRequest
|
|
type UpdateConfigurationRequest struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// ConfigurationId is a required field
|
|
ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"`
|
|
|
|
Data *string `locationName:"data" type:"string"`
|
|
|
|
Description *string `locationName:"description" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s UpdateConfigurationRequest) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s UpdateConfigurationRequest) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *UpdateConfigurationRequest) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "UpdateConfigurationRequest"}
|
|
if s.ConfigurationId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetConfigurationId sets the ConfigurationId field's value.
|
|
func (s *UpdateConfigurationRequest) SetConfigurationId(v string) *UpdateConfigurationRequest {
|
|
s.ConfigurationId = &v
|
|
return s
|
|
}
|
|
|
|
// SetData sets the Data field's value.
|
|
func (s *UpdateConfigurationRequest) SetData(v string) *UpdateConfigurationRequest {
|
|
s.Data = &v
|
|
return s
|
|
}
|
|
|
|
// SetDescription sets the Description field's value.
|
|
func (s *UpdateConfigurationRequest) SetDescription(v string) *UpdateConfigurationRequest {
|
|
s.Description = &v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfigurationResponse
|
|
type UpdateConfigurationResponse struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
Arn *string `locationName:"arn" type:"string"`
|
|
|
|
Id *string `locationName:"id" type:"string"`
|
|
|
|
// Returns information about the specified configuration revision.
|
|
LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
|
|
|
|
Name *string `locationName:"name" type:"string"`
|
|
|
|
Warnings []*SanitizationWarning `locationName:"warnings" type:"list"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s UpdateConfigurationResponse) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s UpdateConfigurationResponse) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetArn sets the Arn field's value.
|
|
func (s *UpdateConfigurationResponse) SetArn(v string) *UpdateConfigurationResponse {
|
|
s.Arn = &v
|
|
return s
|
|
}
|
|
|
|
// SetId sets the Id field's value.
|
|
func (s *UpdateConfigurationResponse) SetId(v string) *UpdateConfigurationResponse {
|
|
s.Id = &v
|
|
return s
|
|
}
|
|
|
|
// SetLatestRevision sets the LatestRevision field's value.
|
|
func (s *UpdateConfigurationResponse) SetLatestRevision(v *ConfigurationRevision) *UpdateConfigurationResponse {
|
|
s.LatestRevision = v
|
|
return s
|
|
}
|
|
|
|
// SetName sets the Name field's value.
|
|
func (s *UpdateConfigurationResponse) SetName(v string) *UpdateConfigurationResponse {
|
|
s.Name = &v
|
|
return s
|
|
}
|
|
|
|
// SetWarnings sets the Warnings field's value.
|
|
func (s *UpdateConfigurationResponse) SetWarnings(v []*SanitizationWarning) *UpdateConfigurationResponse {
|
|
s.Warnings = v
|
|
return s
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUserResponse
|
|
type UpdateUserOutput struct {
|
|
_ struct{} `type:"structure"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s UpdateUserOutput) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s UpdateUserOutput) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUserRequest
|
|
type UpdateUserRequest struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// BrokerId is a required field
|
|
BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
|
|
|
|
ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
|
|
|
|
Groups []*string `locationName:"groups" type:"list"`
|
|
|
|
Password *string `locationName:"password" type:"string"`
|
|
|
|
// Username is a required field
|
|
Username *string `location:"uri" locationName:"username" type:"string" required:"true"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s UpdateUserRequest) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s UpdateUserRequest) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// Validate inspects the fields of the type to determine if they are valid.
|
|
func (s *UpdateUserRequest) Validate() error {
|
|
invalidParams := request.ErrInvalidParams{Context: "UpdateUserRequest"}
|
|
if s.BrokerId == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("BrokerId"))
|
|
}
|
|
if s.Username == nil {
|
|
invalidParams.Add(request.NewErrParamRequired("Username"))
|
|
}
|
|
|
|
if invalidParams.Len() > 0 {
|
|
return invalidParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SetBrokerId sets the BrokerId field's value.
|
|
func (s *UpdateUserRequest) SetBrokerId(v string) *UpdateUserRequest {
|
|
s.BrokerId = &v
|
|
return s
|
|
}
|
|
|
|
// SetConsoleAccess sets the ConsoleAccess field's value.
|
|
func (s *UpdateUserRequest) SetConsoleAccess(v bool) *UpdateUserRequest {
|
|
s.ConsoleAccess = &v
|
|
return s
|
|
}
|
|
|
|
// SetGroups sets the Groups field's value.
|
|
func (s *UpdateUserRequest) SetGroups(v []*string) *UpdateUserRequest {
|
|
s.Groups = v
|
|
return s
|
|
}
|
|
|
|
// SetPassword sets the Password field's value.
|
|
func (s *UpdateUserRequest) SetPassword(v string) *UpdateUserRequest {
|
|
s.Password = &v
|
|
return s
|
|
}
|
|
|
|
// SetUsername sets the Username field's value.
|
|
func (s *UpdateUserRequest) SetUsername(v string) *UpdateUserRequest {
|
|
s.Username = &v
|
|
return s
|
|
}
|
|
|
|
// An ActiveMQ user associated with the broker.
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/User
|
|
type User struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
|
|
ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
|
|
|
|
// The list of groups (20 maximum) to which the ActiveMQ user belongs. This
|
|
// value can contain only alphanumeric characters, dashes, periods, underscores,
|
|
// and tildes (- . _ ~). This value must be 2-100 characters long.
|
|
Groups []*string `locationName:"groups" type:"list"`
|
|
|
|
// Required. The password of the ActiveMQ user. This value must be at least
|
|
// 12 characters long, must contain at least 4 unique characters, and must not
|
|
// contain commas.
|
|
Password *string `locationName:"password" type:"string"`
|
|
|
|
// Required. The username of the ActiveMQ user. This value can contain only
|
|
// alphanumeric characters, dashes, periods, underscores, and tildes (- . _
|
|
// ~). This value must be 2-100 characters long.
|
|
Username *string `locationName:"username" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s User) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s User) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetConsoleAccess sets the ConsoleAccess field's value.
|
|
func (s *User) SetConsoleAccess(v bool) *User {
|
|
s.ConsoleAccess = &v
|
|
return s
|
|
}
|
|
|
|
// SetGroups sets the Groups field's value.
|
|
func (s *User) SetGroups(v []*string) *User {
|
|
s.Groups = v
|
|
return s
|
|
}
|
|
|
|
// SetPassword sets the Password field's value.
|
|
func (s *User) SetPassword(v string) *User {
|
|
s.Password = &v
|
|
return s
|
|
}
|
|
|
|
// SetUsername sets the Username field's value.
|
|
func (s *User) SetUsername(v string) *User {
|
|
s.Username = &v
|
|
return s
|
|
}
|
|
|
|
// Returns information about the status of the changes pending for the ActiveMQ
|
|
// user.
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UserPendingChanges
|
|
type UserPendingChanges struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
|
|
ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
|
|
|
|
// The list of groups (20 maximum) to which the ActiveMQ user belongs. This
|
|
// value can contain only alphanumeric characters, dashes, periods, underscores,
|
|
// and tildes (- . _ ~). This value must be 2-100 characters long.
|
|
Groups []*string `locationName:"groups" type:"list"`
|
|
|
|
// Required. The type of change pending for the ActiveMQ user. Possible values:
|
|
// CREATE, UPDATE, DELETE
|
|
PendingChange *string `locationName:"pendingChange" type:"string" enum:"ChangeType"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s UserPendingChanges) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s UserPendingChanges) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetConsoleAccess sets the ConsoleAccess field's value.
|
|
func (s *UserPendingChanges) SetConsoleAccess(v bool) *UserPendingChanges {
|
|
s.ConsoleAccess = &v
|
|
return s
|
|
}
|
|
|
|
// SetGroups sets the Groups field's value.
|
|
func (s *UserPendingChanges) SetGroups(v []*string) *UserPendingChanges {
|
|
s.Groups = v
|
|
return s
|
|
}
|
|
|
|
// SetPendingChange sets the PendingChange field's value.
|
|
func (s *UserPendingChanges) SetPendingChange(v string) *UserPendingChanges {
|
|
s.PendingChange = &v
|
|
return s
|
|
}
|
|
|
|
// Returns a list of all ActiveMQ users.
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UserSummary
|
|
type UserSummary struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// The type of change pending for the ActiveMQ user. Possible values: CREATE,
|
|
// UPDATE, DELETE
|
|
PendingChange *string `locationName:"pendingChange" type:"string" enum:"ChangeType"`
|
|
|
|
// Required. The username of the ActiveMQ user. This value can contain only
|
|
// alphanumeric characters, dashes, periods, underscores, and tildes (- . _
|
|
// ~). This value must be 2-100 characters long.
|
|
Username *string `locationName:"username" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s UserSummary) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s UserSummary) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetPendingChange sets the PendingChange field's value.
|
|
func (s *UserSummary) SetPendingChange(v string) *UserSummary {
|
|
s.PendingChange = &v
|
|
return s
|
|
}
|
|
|
|
// SetUsername sets the Username field's value.
|
|
func (s *UserSummary) SetUsername(v string) *UserSummary {
|
|
s.Username = &v
|
|
return s
|
|
}
|
|
|
|
// The scheduled time period relative to UTC during which Amazon MQ begins to
|
|
// apply pending updates or patches to the broker.
|
|
// Please also see https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/WeeklyStartTime
|
|
type WeeklyStartTime struct {
|
|
_ struct{} `type:"structure"`
|
|
|
|
// Required. The day of the week. Possible values: MONDAY, TUESDAY, WEDNESDAY,
|
|
// THURSDAY, FRIDAY, SATURDAY, SUNDAY
|
|
DayOfWeek *string `locationName:"dayOfWeek" type:"string" enum:"DayOfWeek"`
|
|
|
|
// Required. The time, in 24-hour format.
|
|
TimeOfDay *string `locationName:"timeOfDay" type:"string"`
|
|
|
|
// The time zone, UTC by default, in either the Country/City format, or the
|
|
// UTC offset format.
|
|
TimeZone *string `locationName:"timeZone" type:"string"`
|
|
}
|
|
|
|
// String returns the string representation
|
|
func (s WeeklyStartTime) String() string {
|
|
return awsutil.Prettify(s)
|
|
}
|
|
|
|
// GoString returns the string representation
|
|
func (s WeeklyStartTime) GoString() string {
|
|
return s.String()
|
|
}
|
|
|
|
// SetDayOfWeek sets the DayOfWeek field's value.
|
|
func (s *WeeklyStartTime) SetDayOfWeek(v string) *WeeklyStartTime {
|
|
s.DayOfWeek = &v
|
|
return s
|
|
}
|
|
|
|
// SetTimeOfDay sets the TimeOfDay field's value.
|
|
func (s *WeeklyStartTime) SetTimeOfDay(v string) *WeeklyStartTime {
|
|
s.TimeOfDay = &v
|
|
return s
|
|
}
|
|
|
|
// SetTimeZone sets the TimeZone field's value.
|
|
func (s *WeeklyStartTime) SetTimeZone(v string) *WeeklyStartTime {
|
|
s.TimeZone = &v
|
|
return s
|
|
}
|
|
|
|
// The status of the broker. Possible values: CREATION_IN_PROGRESS, CREATION_FAILED,
|
|
// DELETION_IN_PROGRESS, RUNNING, REBOOT_IN_PROGRESS
|
|
const (
|
|
// BrokerStateCreationInProgress is a BrokerState enum value
|
|
BrokerStateCreationInProgress = "CREATION_IN_PROGRESS"
|
|
|
|
// BrokerStateCreationFailed is a BrokerState enum value
|
|
BrokerStateCreationFailed = "CREATION_FAILED"
|
|
|
|
// BrokerStateDeletionInProgress is a BrokerState enum value
|
|
BrokerStateDeletionInProgress = "DELETION_IN_PROGRESS"
|
|
|
|
// BrokerStateRunning is a BrokerState enum value
|
|
BrokerStateRunning = "RUNNING"
|
|
|
|
// BrokerStateRebootInProgress is a BrokerState enum value
|
|
BrokerStateRebootInProgress = "REBOOT_IN_PROGRESS"
|
|
)
|
|
|
|
// The type of change pending for the ActiveMQ user. Possible values: CREATE,
|
|
// UPDATE, DELETE
|
|
const (
|
|
// ChangeTypeCreate is a ChangeType enum value
|
|
ChangeTypeCreate = "CREATE"
|
|
|
|
// ChangeTypeUpdate is a ChangeType enum value
|
|
ChangeTypeUpdate = "UPDATE"
|
|
|
|
// ChangeTypeDelete is a ChangeType enum value
|
|
ChangeTypeDelete = "DELETE"
|
|
)
|
|
|
|
const (
|
|
// DayOfWeekMonday is a DayOfWeek enum value
|
|
DayOfWeekMonday = "MONDAY"
|
|
|
|
// DayOfWeekTuesday is a DayOfWeek enum value
|
|
DayOfWeekTuesday = "TUESDAY"
|
|
|
|
// DayOfWeekWednesday is a DayOfWeek enum value
|
|
DayOfWeekWednesday = "WEDNESDAY"
|
|
|
|
// DayOfWeekThursday is a DayOfWeek enum value
|
|
DayOfWeekThursday = "THURSDAY"
|
|
|
|
// DayOfWeekFriday is a DayOfWeek enum value
|
|
DayOfWeekFriday = "FRIDAY"
|
|
|
|
// DayOfWeekSaturday is a DayOfWeek enum value
|
|
DayOfWeekSaturday = "SATURDAY"
|
|
|
|
// DayOfWeekSunday is a DayOfWeek enum value
|
|
DayOfWeekSunday = "SUNDAY"
|
|
)
|
|
|
|
// The deployment mode of the broker. Possible values: SINGLE_INSTANCE, ACTIVE_STANDBY_MULTI_AZ
|
|
// SINGLE_INSTANCE creates a single-instance broker in a single Availability
|
|
// Zone. ACTIVE_STANDBY_MULTI_AZ creates an active/standby broker for high availability.
|
|
const (
|
|
// DeploymentModeSingleInstance is a DeploymentMode enum value
|
|
DeploymentModeSingleInstance = "SINGLE_INSTANCE"
|
|
|
|
// DeploymentModeActiveStandbyMultiAz is a DeploymentMode enum value
|
|
DeploymentModeActiveStandbyMultiAz = "ACTIVE_STANDBY_MULTI_AZ"
|
|
)
|
|
|
|
// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
|
|
const (
|
|
// EngineTypeActivemq is a EngineType enum value
|
|
EngineTypeActivemq = "ACTIVEMQ"
|
|
)
|
|
|
|
// The reason for which the XML elements or attributes were sanitized. Possible
|
|
// values: DISALLOWED_ELEMENT_REMOVED, DISALLOWED_ATTRIBUTE_REMOVED, INVALID_ATTRIBUTE_VALUE_REMOVED
|
|
// DISALLOWED_ELEMENT_REMOVED shows that the provided element isn't allowed
|
|
// and has been removed. DISALLOWED_ATTRIBUTE_REMOVED shows that the provided
|
|
// attribute isn't allowed and has been removed. INVALID_ATTRIBUTE_VALUE_REMOVED
|
|
// shows that the provided value for the attribute isn't allowed and has been
|
|
// removed.
|
|
const (
|
|
// SanitizationWarningReasonDisallowedElementRemoved is a SanitizationWarningReason enum value
|
|
SanitizationWarningReasonDisallowedElementRemoved = "DISALLOWED_ELEMENT_REMOVED"
|
|
|
|
// SanitizationWarningReasonDisallowedAttributeRemoved is a SanitizationWarningReason enum value
|
|
SanitizationWarningReasonDisallowedAttributeRemoved = "DISALLOWED_ATTRIBUTE_REMOVED"
|
|
|
|
// SanitizationWarningReasonInvalidAttributeValueRemoved is a SanitizationWarningReason enum value
|
|
SanitizationWarningReasonInvalidAttributeValueRemoved = "INVALID_ATTRIBUTE_VALUE_REMOVED"
|
|
)
|