Switch to using the dep tool and update all the dependencies
This commit is contained in:
parent
5135ff73cb
commit
98c2d2c41b
5321 changed files with 4483201 additions and 5922 deletions
108
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go
generated
vendored
Normal file
108
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go
generated
vendored
Normal file
|
@ -0,0 +1,108 @@
|
|||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package dynamodbstreams_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/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)
|
||||
|
||||
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 ExampleDynamoDBStreams_GetRecords() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := dynamodbstreams.New(sess)
|
||||
|
||||
params := &dynamodbstreams.GetRecordsInput{
|
||||
ShardIterator: aws.String("ShardIterator"), // Required
|
||||
Limit: aws.Int64(1),
|
||||
}
|
||||
resp, err := svc.GetRecords(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 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"),
|
||||
}
|
||||
resp, err := svc.GetShardIterator(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 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)
|
||||
|
||||
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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue