mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+601
-192
File diff suppressed because it is too large
Load Diff
+30
@@ -0,0 +1,30 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package firehose provides the client and types for making API
|
||||
// requests to Amazon Kinesis Firehose.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04 for more information on this service.
|
||||
//
|
||||
// See firehose package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/firehose/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon Kinesis Firehose with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the Amazon Kinesis Firehose client Firehose for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/firehose/#New
|
||||
package firehose
|
||||
+6
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package firehose
|
||||
|
||||
@@ -14,9 +14,13 @@ const (
|
||||
// ErrCodeInvalidArgumentException for service response error code
|
||||
// "InvalidArgumentException".
|
||||
//
|
||||
// The specified input parameter has an value that is not valid.
|
||||
// The specified input parameter has a value that is not valid.
|
||||
ErrCodeInvalidArgumentException = "InvalidArgumentException"
|
||||
|
||||
// ErrCodeInvalidStreamTypeException for service response error code
|
||||
// "InvalidStreamTypeException".
|
||||
ErrCodeInvalidStreamTypeException = "InvalidStreamTypeException"
|
||||
|
||||
// ErrCodeLimitExceededException for service response error code
|
||||
// "LimitExceededException".
|
||||
//
|
||||
|
||||
-606
@@ -1,606 +0,0 @@
|
||||
// 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() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := firehose.New(sess)
|
||||
|
||||
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"),
|
||||
ProcessingConfiguration: &firehose.ProcessingConfiguration{
|
||||
Enabled: aws.Bool(true),
|
||||
Processors: []*firehose.Processor{
|
||||
{ // Required
|
||||
Type: aws.String("ProcessorType"), // Required
|
||||
Parameters: []*firehose.ProcessorParameter{
|
||||
{ // Required
|
||||
ParameterName: aws.String("ProcessorParameterName"), // Required
|
||||
ParameterValue: aws.String("ProcessorParameterValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
RetryOptions: &firehose.ElasticsearchRetryOptions{
|
||||
DurationInSeconds: aws.Int64(1),
|
||||
},
|
||||
S3BackupMode: aws.String("ElasticsearchS3BackupMode"),
|
||||
},
|
||||
ExtendedS3DestinationConfiguration: &firehose.ExtendedS3DestinationConfiguration{
|
||||
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"),
|
||||
ProcessingConfiguration: &firehose.ProcessingConfiguration{
|
||||
Enabled: aws.Bool(true),
|
||||
Processors: []*firehose.Processor{
|
||||
{ // Required
|
||||
Type: aws.String("ProcessorType"), // Required
|
||||
Parameters: []*firehose.ProcessorParameter{
|
||||
{ // Required
|
||||
ParameterName: aws.String("ProcessorParameterName"), // Required
|
||||
ParameterValue: aws.String("ProcessorParameterValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
S3BackupConfiguration: &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"),
|
||||
},
|
||||
S3BackupMode: aws.String("S3BackupMode"),
|
||||
},
|
||||
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"),
|
||||
},
|
||||
ProcessingConfiguration: &firehose.ProcessingConfiguration{
|
||||
Enabled: aws.Bool(true),
|
||||
Processors: []*firehose.Processor{
|
||||
{ // Required
|
||||
Type: aws.String("ProcessorType"), // Required
|
||||
Parameters: []*firehose.ProcessorParameter{
|
||||
{ // Required
|
||||
ParameterName: aws.String("ProcessorParameterName"), // Required
|
||||
ParameterValue: aws.String("ProcessorParameterValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
RetryOptions: &firehose.RedshiftRetryOptions{
|
||||
DurationInSeconds: aws.Int64(1),
|
||||
},
|
||||
S3BackupConfiguration: &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"),
|
||||
},
|
||||
S3BackupMode: aws.String("RedshiftS3BackupMode"),
|
||||
},
|
||||
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() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := firehose.New(sess)
|
||||
|
||||
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() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := firehose.New(sess)
|
||||
|
||||
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() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := firehose.New(sess)
|
||||
|
||||
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() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := firehose.New(sess)
|
||||
|
||||
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() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := firehose.New(sess)
|
||||
|
||||
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() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := firehose.New(sess)
|
||||
|
||||
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"),
|
||||
ProcessingConfiguration: &firehose.ProcessingConfiguration{
|
||||
Enabled: aws.Bool(true),
|
||||
Processors: []*firehose.Processor{
|
||||
{ // Required
|
||||
Type: aws.String("ProcessorType"), // Required
|
||||
Parameters: []*firehose.ProcessorParameter{
|
||||
{ // Required
|
||||
ParameterName: aws.String("ProcessorParameterName"), // Required
|
||||
ParameterValue: aws.String("ProcessorParameterValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
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"),
|
||||
},
|
||||
ExtendedS3DestinationUpdate: &firehose.ExtendedS3DestinationUpdate{
|
||||
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"),
|
||||
ProcessingConfiguration: &firehose.ProcessingConfiguration{
|
||||
Enabled: aws.Bool(true),
|
||||
Processors: []*firehose.Processor{
|
||||
{ // Required
|
||||
Type: aws.String("ProcessorType"), // Required
|
||||
Parameters: []*firehose.ProcessorParameter{
|
||||
{ // Required
|
||||
ParameterName: aws.String("ProcessorParameterName"), // Required
|
||||
ParameterValue: aws.String("ProcessorParameterValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
RoleARN: aws.String("RoleARN"),
|
||||
S3BackupMode: aws.String("S3BackupMode"),
|
||||
S3BackupUpdate: &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"),
|
||||
},
|
||||
},
|
||||
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"),
|
||||
ProcessingConfiguration: &firehose.ProcessingConfiguration{
|
||||
Enabled: aws.Bool(true),
|
||||
Processors: []*firehose.Processor{
|
||||
{ // Required
|
||||
Type: aws.String("ProcessorType"), // Required
|
||||
Parameters: []*firehose.ProcessorParameter{
|
||||
{ // Required
|
||||
ParameterName: aws.String("ProcessorParameterName"), // Required
|
||||
ParameterValue: aws.String("ProcessorParameterValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
RetryOptions: &firehose.RedshiftRetryOptions{
|
||||
DurationInSeconds: aws.Int64(1),
|
||||
},
|
||||
RoleARN: aws.String("RoleARN"),
|
||||
S3BackupMode: aws.String("RedshiftS3BackupMode"),
|
||||
S3BackupUpdate: &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"),
|
||||
},
|
||||
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)
|
||||
}
|
||||
+6
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package firehoseiface provides an interface to enable mocking the Amazon Kinesis Firehose service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon Kinesis Firehose.
|
||||
@@ -72,6 +72,10 @@ type FirehoseAPI interface {
|
||||
DescribeDeliveryStreamWithContext(aws.Context, *firehose.DescribeDeliveryStreamInput, ...request.Option) (*firehose.DescribeDeliveryStreamOutput, error)
|
||||
DescribeDeliveryStreamRequest(*firehose.DescribeDeliveryStreamInput) (*request.Request, *firehose.DescribeDeliveryStreamOutput)
|
||||
|
||||
GetKinesisStream(*firehose.GetKinesisStreamInput) (*firehose.GetKinesisStreamOutput, error)
|
||||
GetKinesisStreamWithContext(aws.Context, *firehose.GetKinesisStreamInput, ...request.Option) (*firehose.GetKinesisStreamOutput, error)
|
||||
GetKinesisStreamRequest(*firehose.GetKinesisStreamInput) (*request.Request, *firehose.GetKinesisStreamOutput)
|
||||
|
||||
ListDeliveryStreams(*firehose.ListDeliveryStreamsInput) (*firehose.ListDeliveryStreamsOutput, error)
|
||||
ListDeliveryStreamsWithContext(aws.Context, *firehose.ListDeliveryStreamsInput, ...request.Option) (*firehose.ListDeliveryStreamsOutput, error)
|
||||
ListDeliveryStreamsRequest(*firehose.ListDeliveryStreamsInput) (*request.Request, *firehose.ListDeliveryStreamsOutput)
|
||||
|
||||
+7
-7
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package firehose
|
||||
|
||||
@@ -11,12 +11,12 @@ import (
|
||||
"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.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04
|
||||
// Firehose provides the API operation methods for making requests to
|
||||
// Amazon Kinesis Firehose. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// Firehose methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type Firehose struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user