// Creates a broker. Note: This API is asynchronous.
Creates a broker. Note: This API is asynchronous.
// Creates a broker . Note : This API is asynchronous .
func (c *Client) CreateBroker(ctx context.Context, params *CreateBrokerInput, optFns ...func(*Options)) (*CreateBrokerOutput, error) {
	if params == nil {
		params = &CreateBrokerInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateBroker", params, optFns, addOperationCreateBrokerMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateBrokerOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateBroker ( ctx context . Context , params * CreateBrokerInput , optFns ... func ( * Options ) ) ( * CreateBrokerOutput , error ) { if params == nil { params = & CreateBrokerInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateBrokerMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateBrokerOutput ) out . ResultMetadata = metadata return out , nil }
Creates a broker.
Creates a broker .