func (c *Firehose) PutRecord(input *PutRecordInput) (*PutRecordOutput, error) {
	req, out := c.PutRecordRequest(input)
	return out, req.Send()
}
PutRecord API operation for Amazon Kinesis Firehose.

Writes a single data record into an Amazon Kinesis Data Firehose delivery
stream. To write multiple data records into a delivery stream, use PutRecordBatch.
Applications using these operations are referred to as producers.

By default, each delivery stream can take in up to 2,000 transactions per
second, 5,000 records per second, or 5 MB per second. If you use PutRecord
and PutRecordBatch, the limits are an aggregate across these two operations
for each delivery stream. For more information about limits and how to request
an increase, see Amazon Kinesis Data Firehose Limits (https://docs.aws.amazon.com/firehose/latest/dev/limits.html).

You must specify the name of the delivery stream and the data record when
using PutRecord. The data record consists of a data blob that can be up to
1,000 KB in size, and any kind of data. For example, it can be a segment
from a log file, geographic location data, website clickstream data, and
so on.

Kinesis Data Firehose buffers records before delivering them to the destination.
To disambiguate the data blobs at the destination, a common solution is to
use delimiters in the data, such as a newline (\n) or some other character
unique within the data. This allows the consumer application to parse individual
data items when reading the data from the destination.

The PutRecord operation returns a RecordId, which is a unique string assigned
to each record. Producer applications can use this ID for purposes such as
auditability and investigation.

If the PutRecord operation throws a ServiceUnavailableException, back off
and retry. If the exception persists, it is possible that the throughput
limits have been exceeded for the delivery stream.

Data records sent to Kinesis Data Firehose are stored for 24 hours from the
time they are added to a delivery stream as it tries to send the records
to the destination. If the destination is unreachable for more than 24 hours,
the data is no longer available.

Don't concatenate two or more base64 strings to form the data fields of your
records. Instead, concatenate the raw data, then perform base64 encoding.

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 Amazon Kinesis Firehose's
API operation PutRecord for usage and error information.

Returned Error Types:
* ResourceNotFoundException
The specified resource could not be found.

* InvalidArgumentException
The specified input parameter has a value that is not valid.

* InvalidKMSResourceException
Kinesis Data Firehose throws this exception when an attempt to put records
or to start or stop delivery stream encryption fails. This happens when the
KMS service throws one of the following exception types: AccessDeniedException,
InvalidStateException, DisabledException, or NotFoundException.

* ServiceUnavailableException
The service is unavailable. Back off and retry the operation. If you continue
to see the exception, throughput limits for the delivery stream may have
been exceeded. For more information about limits and how to request an increase,
see Amazon Kinesis Data Firehose Limits (https://docs.aws.amazon.com/firehose/latest/dev/limits.html).

See also, https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/PutRecord
package firehose
import (
	"fmt"
	"time"
	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/aws/request"
	"github.com/aws/aws-sdk-go/private/protocol"
	"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
const opCreateDeliveryStream = "CreateDeliveryStream"
func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput) (req *request.Request, output *CreateDeliveryStreamOutput) {
	op := &request.Operation{
		Name:       opCreateDeliveryStream,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}
	if input == nil {
		input = &CreateDeliveryStreamInput{}
	}
	output = &CreateDeliveryStreamOutput{}
	req = c.newRequest(op, input, output)
	return
}
func (c *Firehose) CreateDeliveryStream(input *CreateDeliveryStreamInput) (*CreateDeliveryStreamOutput, error) {
	req, out := c.CreateDeliveryStreamRequest(input)
	return out, req.Send()
}
func (c *Firehose) CreateDeliveryStreamWithContext(ctx aws.Context, input *CreateDeliveryStreamInput, opts ...request.Option) (*CreateDeliveryStreamOutput, error) {
	req, out := c.CreateDeliveryStreamRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}
const opDeleteDeliveryStream = "DeleteDeliveryStream"
func (c *Firehose) DeleteDeliveryStreamRequest(input *DeleteDeliveryStreamInput) (req *request.Request, output *DeleteDeliveryStreamOutput) {
	op := &request.Operation{
		Name:       opDeleteDeliveryStream,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}
	if input == nil {
		input = &DeleteDeliveryStreamInput{}
	}
	output = &DeleteDeliveryStreamOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}
func (c *Firehose) DeleteDeliveryStream(input *DeleteDeliveryStreamInput) (*DeleteDeliveryStreamOutput, error) {
	req, out := c.DeleteDeliveryStreamRequest(input)
	return out, req.Send()
}
func (c *Firehose) DeleteDeliveryStreamWithContext(ctx aws.Context, input *DeleteDeliveryStreamInput, opts ...request.Option) (*DeleteDeliveryStreamOutput, error) {
	req, out := c.DeleteDeliveryStreamRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}
const opDescribeDeliveryStream = "DescribeDeliveryStream"
func (c *Firehose) DescribeDeliveryStreamRequest(input *DescribeDeliveryStreamInput) (req *request.Request, output *DescribeDeliveryStreamOutput) {
	op := &request.Operation{
		Name:       opDescribeDeliveryStream,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}
	if input == nil {
		input = &DescribeDeliveryStreamInput{}
	}
	output = &DescribeDeliveryStreamOutput{}
	req = c.newRequest(op, input, output)
	return
}
func (c *Firehose) DescribeDeliveryStream(input *DescribeDeliveryStreamInput) (*DescribeDeliveryStreamOutput, error) {
	req, out := c.DescribeDeliveryStreamRequest(input)
	return out, req.Send()
}
func (c *Firehose) DescribeDeliveryStreamWithContext(ctx aws.Context, input *DescribeDeliveryStreamInput, opts ...request.Option) (*DescribeDeliveryStreamOutput, error) {
	req, out := c.DescribeDeliveryStreamRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}
const opListDeliveryStreams = "ListDeliveryStreams"
func (c *Firehose) ListDeliveryStreamsRequest(input *ListDeliveryStreamsInput) (req *request.Request, output *ListDeliveryStreamsOutput) {
	op := &request.Operation{
		Name:       opListDeliveryStreams,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}
	if input == nil {
		input = &ListDeliveryStreamsInput{}
	}
	output = &ListDeliveryStreamsOutput{}
	req = c.newRequest(op, input, output)
	return
}
func (c *Firehose) ListDeliveryStreams(input *ListDeliveryStreamsInput) (*ListDeliveryStreamsOutput, error) {
	req, out := c.ListDeliveryStreamsRequest(input)
	return out, req.Send()
}
func (c *Firehose) ListDeliveryStreamsWithContext(ctx aws.Context, input *ListDeliveryStreamsInput, opts ...request.Option) (*ListDeliveryStreamsOutput, error) {
	req, out := c.ListDeliveryStreamsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}
const opListTagsForDeliveryStream = "ListTagsForDeliveryStream"
func (c *Firehose) ListTagsForDeliveryStreamRequest(input *ListTagsForDeliveryStreamInput) (req *request.Request, output *ListTagsForDeliveryStreamOutput) {
	op := &request.Operation{
		Name:       opListTagsForDeliveryStream,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}
	if input == nil {
		input = &ListTagsForDeliveryStreamInput{}
	}
	output = &ListTagsForDeliveryStreamOutput{}
	req = c.newRequest(op, input, output)
	return
}
func (c *Firehose) ListTagsForDeliveryStream(input *ListTagsForDeliveryStreamInput) (*ListTagsForDeliveryStreamOutput, error) {
	req, out := c.ListTagsForDeliveryStreamRequest(input)
	return out, req.Send()
}
func (c *Firehose) ListTagsForDeliveryStreamWithContext(ctx aws.Context, input *ListTagsForDeliveryStreamInput, opts ...request.Option) (*ListTagsForDeliveryStreamOutput, error) {
	req, out := c.ListTagsForDeliveryStreamRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}
const opPutRecord = "PutRecord"
func (c *Firehose) PutRecordRequest(input *PutRecordInput) (req *request.Request, output *PutRecordOutput) {
	op := &request.Operation{
		Name:       opPutRecord,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}
	if input == nil {
		input = &PutRecordInput{}
	}
	output = &PutRecordOutput{}
	req = c.newRequest(op, input, output)
	return
}