Skip to content

Commit

Permalink
Add mock pagination method
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdel committed Apr 23, 2020
1 parent 8ec2341 commit 2d92b94
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions service/smithyprototype/lexruntimeservice/api_op_ListSessons.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
lexruntime "github.com/aws/aws-sdk-go-v2/service/smithyprototype/lexruntimeservice"
)

func ExampleListSessions_pagination() {
func ExampleClient_ListSessions_pagination() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
log.Fatalf("unable to load configuration, %v", err)
Expand All @@ -19,7 +19,7 @@ func ExampleListSessions_pagination() {
client := lexruntimeservice.NewClient(cfg)

// Create a paginator with the client and input parameters.
p := lexruntime.NewListSessionsPaginator(client, &lexruntime.ListSessions{
p := lexruntime.NewListSessionsPaginator(client, &lexruntime.ListSessionsInput{
BotAlias: aws.String("botAlias"),
BotName: aws.String("botName"),
UserId: aws.String("userID"),
Expand Down

0 comments on commit 2d92b94

Please sign in to comment.