glide update

This commit is contained in:
James
2017-07-26 12:48:53 -07:00
parent 6ee7619b40
commit 38a2b86184
4048 changed files with 1104059 additions and 554 deletions

2132
vendor/github.com/aws/aws-sdk-go/service/firehose/api.go generated vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,366 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package firehose_test
import (
"bytes"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/firehose"
)
var _ time.Duration
var _ bytes.Buffer
func ExampleFirehose_CreateDeliveryStream() {
svc := firehose.New(session.New())
params := &firehose.CreateDeliveryStreamInput{
DeliveryStreamName: aws.String("DeliveryStreamName"), // Required
ElasticsearchDestinationConfiguration: &firehose.ElasticsearchDestinationConfiguration{
DomainARN: aws.String("ElasticsearchDomainARN"), // Required
IndexName: aws.String("ElasticsearchIndexName"), // Required
RoleARN: aws.String("RoleARN"), // Required
S3Configuration: &firehose.S3DestinationConfiguration{ // Required
BucketARN: aws.String("BucketARN"), // Required
RoleARN: aws.String("RoleARN"), // Required
BufferingHints: &firehose.BufferingHints{
IntervalInSeconds: aws.Int64(1),
SizeInMBs: aws.Int64(1),
},
CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{
Enabled: aws.Bool(true),
LogGroupName: aws.String("LogGroupName"),
LogStreamName: aws.String("LogStreamName"),
},
CompressionFormat: aws.String("CompressionFormat"),
EncryptionConfiguration: &firehose.EncryptionConfiguration{
KMSEncryptionConfig: &firehose.KMSEncryptionConfig{
AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required
},
NoEncryptionConfig: aws.String("NoEncryptionConfig"),
},
Prefix: aws.String("Prefix"),
},
TypeName: aws.String("ElasticsearchTypeName"), // Required
BufferingHints: &firehose.ElasticsearchBufferingHints{
IntervalInSeconds: aws.Int64(1),
SizeInMBs: aws.Int64(1),
},
CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{
Enabled: aws.Bool(true),
LogGroupName: aws.String("LogGroupName"),
LogStreamName: aws.String("LogStreamName"),
},
IndexRotationPeriod: aws.String("ElasticsearchIndexRotationPeriod"),
RetryOptions: &firehose.ElasticsearchRetryOptions{
DurationInSeconds: aws.Int64(1),
},
S3BackupMode: aws.String("ElasticsearchS3BackupMode"),
},
RedshiftDestinationConfiguration: &firehose.RedshiftDestinationConfiguration{
ClusterJDBCURL: aws.String("ClusterJDBCURL"), // Required
CopyCommand: &firehose.CopyCommand{ // Required
DataTableName: aws.String("DataTableName"), // Required
CopyOptions: aws.String("CopyOptions"),
DataTableColumns: aws.String("DataTableColumns"),
},
Password: aws.String("Password"), // Required
RoleARN: aws.String("RoleARN"), // Required
S3Configuration: &firehose.S3DestinationConfiguration{ // Required
BucketARN: aws.String("BucketARN"), // Required
RoleARN: aws.String("RoleARN"), // Required
BufferingHints: &firehose.BufferingHints{
IntervalInSeconds: aws.Int64(1),
SizeInMBs: aws.Int64(1),
},
CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{
Enabled: aws.Bool(true),
LogGroupName: aws.String("LogGroupName"),
LogStreamName: aws.String("LogStreamName"),
},
CompressionFormat: aws.String("CompressionFormat"),
EncryptionConfiguration: &firehose.EncryptionConfiguration{
KMSEncryptionConfig: &firehose.KMSEncryptionConfig{
AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required
},
NoEncryptionConfig: aws.String("NoEncryptionConfig"),
},
Prefix: aws.String("Prefix"),
},
Username: aws.String("Username"), // Required
CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{
Enabled: aws.Bool(true),
LogGroupName: aws.String("LogGroupName"),
LogStreamName: aws.String("LogStreamName"),
},
RetryOptions: &firehose.RedshiftRetryOptions{
DurationInSeconds: aws.Int64(1),
},
},
S3DestinationConfiguration: &firehose.S3DestinationConfiguration{
BucketARN: aws.String("BucketARN"), // Required
RoleARN: aws.String("RoleARN"), // Required
BufferingHints: &firehose.BufferingHints{
IntervalInSeconds: aws.Int64(1),
SizeInMBs: aws.Int64(1),
},
CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{
Enabled: aws.Bool(true),
LogGroupName: aws.String("LogGroupName"),
LogStreamName: aws.String("LogStreamName"),
},
CompressionFormat: aws.String("CompressionFormat"),
EncryptionConfiguration: &firehose.EncryptionConfiguration{
KMSEncryptionConfig: &firehose.KMSEncryptionConfig{
AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required
},
NoEncryptionConfig: aws.String("NoEncryptionConfig"),
},
Prefix: aws.String("Prefix"),
},
}
resp, err := svc.CreateDeliveryStream(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleFirehose_DeleteDeliveryStream() {
svc := firehose.New(session.New())
params := &firehose.DeleteDeliveryStreamInput{
DeliveryStreamName: aws.String("DeliveryStreamName"), // Required
}
resp, err := svc.DeleteDeliveryStream(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleFirehose_DescribeDeliveryStream() {
svc := firehose.New(session.New())
params := &firehose.DescribeDeliveryStreamInput{
DeliveryStreamName: aws.String("DeliveryStreamName"), // Required
ExclusiveStartDestinationId: aws.String("DestinationId"),
Limit: aws.Int64(1),
}
resp, err := svc.DescribeDeliveryStream(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleFirehose_ListDeliveryStreams() {
svc := firehose.New(session.New())
params := &firehose.ListDeliveryStreamsInput{
ExclusiveStartDeliveryStreamName: aws.String("DeliveryStreamName"),
Limit: aws.Int64(1),
}
resp, err := svc.ListDeliveryStreams(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleFirehose_PutRecord() {
svc := firehose.New(session.New())
params := &firehose.PutRecordInput{
DeliveryStreamName: aws.String("DeliveryStreamName"), // Required
Record: &firehose.Record{ // Required
Data: []byte("PAYLOAD"), // Required
},
}
resp, err := svc.PutRecord(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleFirehose_PutRecordBatch() {
svc := firehose.New(session.New())
params := &firehose.PutRecordBatchInput{
DeliveryStreamName: aws.String("DeliveryStreamName"), // Required
Records: []*firehose.Record{ // Required
{ // Required
Data: []byte("PAYLOAD"), // Required
},
// More values...
},
}
resp, err := svc.PutRecordBatch(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleFirehose_UpdateDestination() {
svc := firehose.New(session.New())
params := &firehose.UpdateDestinationInput{
CurrentDeliveryStreamVersionId: aws.String("DeliveryStreamVersionId"), // Required
DeliveryStreamName: aws.String("DeliveryStreamName"), // Required
DestinationId: aws.String("DestinationId"), // Required
ElasticsearchDestinationUpdate: &firehose.ElasticsearchDestinationUpdate{
BufferingHints: &firehose.ElasticsearchBufferingHints{
IntervalInSeconds: aws.Int64(1),
SizeInMBs: aws.Int64(1),
},
CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{
Enabled: aws.Bool(true),
LogGroupName: aws.String("LogGroupName"),
LogStreamName: aws.String("LogStreamName"),
},
DomainARN: aws.String("ElasticsearchDomainARN"),
IndexName: aws.String("ElasticsearchIndexName"),
IndexRotationPeriod: aws.String("ElasticsearchIndexRotationPeriod"),
RetryOptions: &firehose.ElasticsearchRetryOptions{
DurationInSeconds: aws.Int64(1),
},
RoleARN: aws.String("RoleARN"),
S3Update: &firehose.S3DestinationUpdate{
BucketARN: aws.String("BucketARN"),
BufferingHints: &firehose.BufferingHints{
IntervalInSeconds: aws.Int64(1),
SizeInMBs: aws.Int64(1),
},
CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{
Enabled: aws.Bool(true),
LogGroupName: aws.String("LogGroupName"),
LogStreamName: aws.String("LogStreamName"),
},
CompressionFormat: aws.String("CompressionFormat"),
EncryptionConfiguration: &firehose.EncryptionConfiguration{
KMSEncryptionConfig: &firehose.KMSEncryptionConfig{
AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required
},
NoEncryptionConfig: aws.String("NoEncryptionConfig"),
},
Prefix: aws.String("Prefix"),
RoleARN: aws.String("RoleARN"),
},
TypeName: aws.String("ElasticsearchTypeName"),
},
RedshiftDestinationUpdate: &firehose.RedshiftDestinationUpdate{
CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{
Enabled: aws.Bool(true),
LogGroupName: aws.String("LogGroupName"),
LogStreamName: aws.String("LogStreamName"),
},
ClusterJDBCURL: aws.String("ClusterJDBCURL"),
CopyCommand: &firehose.CopyCommand{
DataTableName: aws.String("DataTableName"), // Required
CopyOptions: aws.String("CopyOptions"),
DataTableColumns: aws.String("DataTableColumns"),
},
Password: aws.String("Password"),
RetryOptions: &firehose.RedshiftRetryOptions{
DurationInSeconds: aws.Int64(1),
},
RoleARN: aws.String("RoleARN"),
S3Update: &firehose.S3DestinationUpdate{
BucketARN: aws.String("BucketARN"),
BufferingHints: &firehose.BufferingHints{
IntervalInSeconds: aws.Int64(1),
SizeInMBs: aws.Int64(1),
},
CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{
Enabled: aws.Bool(true),
LogGroupName: aws.String("LogGroupName"),
LogStreamName: aws.String("LogStreamName"),
},
CompressionFormat: aws.String("CompressionFormat"),
EncryptionConfiguration: &firehose.EncryptionConfiguration{
KMSEncryptionConfig: &firehose.KMSEncryptionConfig{
AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required
},
NoEncryptionConfig: aws.String("NoEncryptionConfig"),
},
Prefix: aws.String("Prefix"),
RoleARN: aws.String("RoleARN"),
},
Username: aws.String("Username"),
},
S3DestinationUpdate: &firehose.S3DestinationUpdate{
BucketARN: aws.String("BucketARN"),
BufferingHints: &firehose.BufferingHints{
IntervalInSeconds: aws.Int64(1),
SizeInMBs: aws.Int64(1),
},
CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{
Enabled: aws.Bool(true),
LogGroupName: aws.String("LogGroupName"),
LogStreamName: aws.String("LogStreamName"),
},
CompressionFormat: aws.String("CompressionFormat"),
EncryptionConfiguration: &firehose.EncryptionConfiguration{
KMSEncryptionConfig: &firehose.KMSEncryptionConfig{
AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required
},
NoEncryptionConfig: aws.String("NoEncryptionConfig"),
},
Prefix: aws.String("Prefix"),
RoleARN: aws.String("RoleARN"),
},
}
resp, err := svc.UpdateDestination(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}

View File

@@ -0,0 +1,42 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package firehoseiface provides an interface for the Amazon Kinesis Firehose.
package firehoseiface
import (
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/firehose"
)
// FirehoseAPI is the interface type for firehose.Firehose.
type FirehoseAPI interface {
CreateDeliveryStreamRequest(*firehose.CreateDeliveryStreamInput) (*request.Request, *firehose.CreateDeliveryStreamOutput)
CreateDeliveryStream(*firehose.CreateDeliveryStreamInput) (*firehose.CreateDeliveryStreamOutput, error)
DeleteDeliveryStreamRequest(*firehose.DeleteDeliveryStreamInput) (*request.Request, *firehose.DeleteDeliveryStreamOutput)
DeleteDeliveryStream(*firehose.DeleteDeliveryStreamInput) (*firehose.DeleteDeliveryStreamOutput, error)
DescribeDeliveryStreamRequest(*firehose.DescribeDeliveryStreamInput) (*request.Request, *firehose.DescribeDeliveryStreamOutput)
DescribeDeliveryStream(*firehose.DescribeDeliveryStreamInput) (*firehose.DescribeDeliveryStreamOutput, error)
ListDeliveryStreamsRequest(*firehose.ListDeliveryStreamsInput) (*request.Request, *firehose.ListDeliveryStreamsOutput)
ListDeliveryStreams(*firehose.ListDeliveryStreamsInput) (*firehose.ListDeliveryStreamsOutput, error)
PutRecordRequest(*firehose.PutRecordInput) (*request.Request, *firehose.PutRecordOutput)
PutRecord(*firehose.PutRecordInput) (*firehose.PutRecordOutput, error)
PutRecordBatchRequest(*firehose.PutRecordBatchInput) (*request.Request, *firehose.PutRecordBatchOutput)
PutRecordBatch(*firehose.PutRecordBatchInput) (*firehose.PutRecordBatchOutput, error)
UpdateDestinationRequest(*firehose.UpdateDestinationInput) (*request.Request, *firehose.UpdateDestinationOutput)
UpdateDestination(*firehose.UpdateDestinationInput) (*firehose.UpdateDestinationOutput, error)
}
var _ FirehoseAPI = (*firehose.Firehose)(nil)

View File

@@ -0,0 +1,90 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package firehose
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// Amazon Kinesis Firehose is a fully-managed service that delivers real-time
// streaming data to destinations such as Amazon Simple Storage Service (Amazon
// S3), Amazon Elasticsearch Service (Amazon ES), and Amazon Redshift.
//The service client's operations are safe to be used concurrently.
// It is not safe to mutate any of the client's properties though.
type Firehose struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// A ServiceName is the name of the service the client will make API calls to.
const ServiceName = "firehose"
// New creates a new instance of the Firehose client with a session.
// If additional configuration is needed for the client instance use the optional
// aws.Config parameter to add your extra config.
//
// Example:
// // Create a Firehose client from just a session.
// svc := firehose.New(mySession)
//
// // Create a Firehose client with additional configuration
// svc := firehose.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Firehose {
c := p.ClientConfig(ServiceName, cfgs...)
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Firehose {
svc := &Firehose{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2015-08-04",
JSONVersion: "1.1",
TargetPrefix: "Firehose_20150804",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a Firehose operation and runs any
// custom request initialization.
func (c *Firehose) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}