mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
79
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go
generated
vendored
79
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go
generated
vendored
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package dynamodbstreams provides a client for Amazon DynamoDB Streams.
|
||||
package dynamodbstreams
|
||||
|
||||
import (
|
||||
@@ -16,19 +15,18 @@ const opDescribeStream = "DescribeStream"
|
||||
|
||||
// DescribeStreamRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeStream operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeStream for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeStream method directly
|
||||
// instead.
|
||||
// See DescribeStream for more information on using the DescribeStream
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeStreamRequest method.
|
||||
// req, resp := client.DescribeStreamRequest(params)
|
||||
@@ -109,19 +107,18 @@ const opGetRecords = "GetRecords"
|
||||
|
||||
// GetRecordsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetRecords operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetRecords for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetRecords method directly
|
||||
// instead.
|
||||
// See GetRecords for more information on using the GetRecords
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetRecordsRequest method.
|
||||
// req, resp := client.GetRecordsRequest(params)
|
||||
@@ -229,19 +226,18 @@ const opGetShardIterator = "GetShardIterator"
|
||||
|
||||
// GetShardIteratorRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetShardIterator operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetShardIterator for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetShardIterator method directly
|
||||
// instead.
|
||||
// See GetShardIterator for more information on using the GetShardIterator
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetShardIteratorRequest method.
|
||||
// req, resp := client.GetShardIteratorRequest(params)
|
||||
@@ -330,19 +326,18 @@ const opListStreams = "ListStreams"
|
||||
|
||||
// ListStreamsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListStreams operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListStreams for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListStreams method directly
|
||||
// instead.
|
||||
// See ListStreams for more information on using the ListStreams
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListStreamsRequest method.
|
||||
// req, resp := client.ListStreamsRequest(params)
|
||||
|
||||
31
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/doc.go
generated
vendored
Normal file
31
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/doc.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package dynamodbstreams provides the client and types for making API
|
||||
// requests to Amazon DynamoDB Streams.
|
||||
//
|
||||
// Amazon DynamoDB Streams provides API actions for accessing streams and processing
|
||||
// stream records. To learn more about application development with Streams,
|
||||
// see Capturing Table Activity with DynamoDB Streams (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html)
|
||||
// in the Amazon DynamoDB Developer Guide.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10 for more information on this service.
|
||||
//
|
||||
// See dynamodbstreams package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/dynamodbstreams/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon DynamoDB Streams 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 DynamoDB Streams client DynamoDBStreams for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/dynamodbstreams/#New
|
||||
package dynamodbstreams
|
||||
@@ -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 dynamodbstreamsiface provides an interface to enable mocking the Amazon DynamoDB Streams 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 DynamoDB Streams.
|
||||
|
||||
2
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/errors.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/errors.go
generated
vendored
@@ -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 dynamodbstreams
|
||||
|
||||
|
||||
183
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go
generated
vendored
183
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go
generated
vendored
@@ -1,108 +1,159 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package dynamodbstreams_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/dynamodbstreams"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleDynamoDBStreams_DescribeStream() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := dynamodbstreams.New(sess)
|
||||
|
||||
params := &dynamodbstreams.DescribeStreamInput{
|
||||
StreamArn: aws.String("StreamArn"), // Required
|
||||
ExclusiveStartShardId: aws.String("ShardId"),
|
||||
Limit: aws.Int64(1),
|
||||
}
|
||||
resp, err := svc.DescribeStream(params)
|
||||
var _ strings.Reader
|
||||
var _ aws.Config
|
||||
|
||||
func parseTime(layout, value string) *time.Time {
|
||||
t, err := time.Parse(layout, value)
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
panic(err)
|
||||
}
|
||||
return &t
|
||||
}
|
||||
|
||||
// To describe a stream with a given stream ARN
|
||||
//
|
||||
// The following example describes a stream with a given stream ARN.
|
||||
func ExampleDynamoDBStreams_DescribeStream_shared00() {
|
||||
svc := dynamodbstreams.New(session.New())
|
||||
input := &dynamodbstreams.DescribeStreamInput{
|
||||
StreamArn: aws.String("arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252"),
|
||||
}
|
||||
|
||||
result, err := svc.DescribeStream(input)
|
||||
if err != nil {
|
||||
if aerr, ok := err.(awserr.Error); ok {
|
||||
switch aerr.Code() {
|
||||
case dynamodbstreams.ErrCodeResourceNotFoundException:
|
||||
fmt.Println(dynamodbstreams.ErrCodeResourceNotFoundException, aerr.Error())
|
||||
case dynamodbstreams.ErrCodeInternalServerError:
|
||||
fmt.Println(dynamodbstreams.ErrCodeInternalServerError, aerr.Error())
|
||||
default:
|
||||
fmt.Println(aerr.Error())
|
||||
}
|
||||
} else {
|
||||
// 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)
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
func ExampleDynamoDBStreams_GetRecords() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := dynamodbstreams.New(sess)
|
||||
|
||||
params := &dynamodbstreams.GetRecordsInput{
|
||||
ShardIterator: aws.String("ShardIterator"), // Required
|
||||
Limit: aws.Int64(1),
|
||||
// To retrieve all the stream records from a shard
|
||||
//
|
||||
// The following example retrieves all the stream records from a shard.
|
||||
func ExampleDynamoDBStreams_GetRecords_shared00() {
|
||||
svc := dynamodbstreams.New(session.New())
|
||||
input := &dynamodbstreams.GetRecordsInput{
|
||||
ShardIterator: aws.String("arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252|1|AAAAAAAAAAEvJp6D+zaQ... <remaining characters omitted> ..."),
|
||||
}
|
||||
resp, err := svc.GetRecords(params)
|
||||
|
||||
result, err := svc.GetRecords(input)
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
if aerr, ok := err.(awserr.Error); ok {
|
||||
switch aerr.Code() {
|
||||
case dynamodbstreams.ErrCodeResourceNotFoundException:
|
||||
fmt.Println(dynamodbstreams.ErrCodeResourceNotFoundException, aerr.Error())
|
||||
case dynamodbstreams.ErrCodeLimitExceededException:
|
||||
fmt.Println(dynamodbstreams.ErrCodeLimitExceededException, aerr.Error())
|
||||
case dynamodbstreams.ErrCodeInternalServerError:
|
||||
fmt.Println(dynamodbstreams.ErrCodeInternalServerError, aerr.Error())
|
||||
case dynamodbstreams.ErrCodeExpiredIteratorException:
|
||||
fmt.Println(dynamodbstreams.ErrCodeExpiredIteratorException, aerr.Error())
|
||||
case dynamodbstreams.ErrCodeTrimmedDataAccessException:
|
||||
fmt.Println(dynamodbstreams.ErrCodeTrimmedDataAccessException, aerr.Error())
|
||||
default:
|
||||
fmt.Println(aerr.Error())
|
||||
}
|
||||
} else {
|
||||
// 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)
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
func ExampleDynamoDBStreams_GetShardIterator() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := dynamodbstreams.New(sess)
|
||||
|
||||
params := &dynamodbstreams.GetShardIteratorInput{
|
||||
ShardId: aws.String("ShardId"), // Required
|
||||
ShardIteratorType: aws.String("ShardIteratorType"), // Required
|
||||
StreamArn: aws.String("StreamArn"), // Required
|
||||
SequenceNumber: aws.String("SequenceNumber"),
|
||||
// To obtain a shard iterator for the provided stream ARN and shard ID
|
||||
//
|
||||
// The following example returns a shard iterator for the provided stream ARN and shard
|
||||
// ID.
|
||||
func ExampleDynamoDBStreams_GetShardIterator_shared00() {
|
||||
svc := dynamodbstreams.New(session.New())
|
||||
input := &dynamodbstreams.GetShardIteratorInput{
|
||||
ShardId: aws.String("00000001414576573621-f55eea83"),
|
||||
ShardIteratorType: aws.String("TRIM_HORIZON"),
|
||||
StreamArn: aws.String("arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252"),
|
||||
}
|
||||
resp, err := svc.GetShardIterator(params)
|
||||
|
||||
result, err := svc.GetShardIterator(input)
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
if aerr, ok := err.(awserr.Error); ok {
|
||||
switch aerr.Code() {
|
||||
case dynamodbstreams.ErrCodeResourceNotFoundException:
|
||||
fmt.Println(dynamodbstreams.ErrCodeResourceNotFoundException, aerr.Error())
|
||||
case dynamodbstreams.ErrCodeInternalServerError:
|
||||
fmt.Println(dynamodbstreams.ErrCodeInternalServerError, aerr.Error())
|
||||
case dynamodbstreams.ErrCodeTrimmedDataAccessException:
|
||||
fmt.Println(dynamodbstreams.ErrCodeTrimmedDataAccessException, aerr.Error())
|
||||
default:
|
||||
fmt.Println(aerr.Error())
|
||||
}
|
||||
} else {
|
||||
// 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)
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
func ExampleDynamoDBStreams_ListStreams() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := dynamodbstreams.New(sess)
|
||||
|
||||
params := &dynamodbstreams.ListStreamsInput{
|
||||
ExclusiveStartStreamArn: aws.String("StreamArn"),
|
||||
Limit: aws.Int64(1),
|
||||
TableName: aws.String("TableName"),
|
||||
}
|
||||
resp, err := svc.ListStreams(params)
|
||||
// To list all of the stream ARNs
|
||||
//
|
||||
// The following example lists all of the stream ARNs.
|
||||
func ExampleDynamoDBStreams_ListStreams_shared00() {
|
||||
svc := dynamodbstreams.New(session.New())
|
||||
input := &dynamodbstreams.ListStreamsInput{}
|
||||
|
||||
result, err := svc.ListStreams(input)
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
if aerr, ok := err.(awserr.Error); ok {
|
||||
switch aerr.Code() {
|
||||
case dynamodbstreams.ErrCodeResourceNotFoundException:
|
||||
fmt.Println(dynamodbstreams.ErrCodeResourceNotFoundException, aerr.Error())
|
||||
case dynamodbstreams.ErrCodeInternalServerError:
|
||||
fmt.Println(dynamodbstreams.ErrCodeInternalServerError, aerr.Error())
|
||||
default:
|
||||
fmt.Println(aerr.Error())
|
||||
}
|
||||
} else {
|
||||
// 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)
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
15
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go
generated
vendored
15
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go
generated
vendored
@@ -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 dynamodbstreams
|
||||
|
||||
@@ -11,13 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// Amazon DynamoDB Streams provides API actions for accessing streams and processing
|
||||
// stream records. To learn more about application development with Streams,
|
||||
// see Capturing Table Activity with DynamoDB Streams (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html)
|
||||
// in the Amazon DynamoDB Developer Guide.
|
||||
// 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/streams-dynamodb-2012-08-10
|
||||
// DynamoDBStreams provides the API operation methods for making requests to
|
||||
// Amazon DynamoDB Streams. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// DynamoDBStreams methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type DynamoDBStreams struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user