diff --git a/service/smithyprototype/lexruntimeservice/api_op_ListSessons.go b/service/smithyprototype/lexruntimeservice/api_op_ListSessons.go index efbee176ad7..0b87c29ddb3 100644 --- a/service/smithyprototype/lexruntimeservice/api_op_ListSessons.go +++ b/service/smithyprototype/lexruntimeservice/api_op_ListSessons.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" + "github.com/aws/aws-sdk-go-v2/service/smithyprototype/lexruntimeservice/types" "github.com/awslabs/smithy-go" "github.com/awslabs/smithy-go/middleware" smithyhttp "github.com/awslabs/smithy-go/transport/http" @@ -83,7 +84,7 @@ type ListSessionsOutput struct { _ struct{} `type:"structure"` // Describes the current state of the bot. - DialogAction *DialogAction `locationName:"dialogAction" type:"structure"` + DialogAction *types.DialogAction `locationName:"dialogAction" type:"structure"` // An array of information about the intents used in the session. The array // can contain a maximum of three summaries. If more than three intents are @@ -92,7 +93,7 @@ type ListSessionsOutput struct { // // If you set the checkpointLabelFilter parameter in the request, the array // contains only the intents with the specified label. - RecentIntentSummaryView []IntentSummary `locationName:"recentIntentSummaryView" type:"list"` + RecentIntentSummaryView []types.IntentSummary `locationName:"recentIntentSummaryView" type:"list"` // Map of key/value pairs representing the session-specific context information. // It contains application information passed between Amazon Lex and a client @@ -153,21 +154,26 @@ type ListSessionsClient interface { ) } +// ListSessionsPaginator provides the paginator for the ListSessions API operation. type ListSessionsPaginator struct { client ListSessionsClient input *ListSessionsInput } -func NewListSessionsPaginator(client ListSessionsClient, input *ListSessionsInput) *ListSessionsPaginator { +// NewListSessionsPaginator returns a ListSessionsPaginator configured for the +// API operation client, and input parameters. +func NewListSessionsPaginator(client ListSessionsClient, input *ListSessionsInput, opts ...APIOptionFunc) *ListSessionsPaginator { // TODO implementation return nil } +// HasMorePages returns if there may be more pages to retrieve. func (p *ListSessionsPaginator) HasMorePages() bool { // TODO implementation return false } +// NextPage returns the next page from the API, or error. func (p *ListSessionsPaginator) NextPage(ctx context.Context, opts ...APIOptionFunc) ( *ListSessionsOutput, error, ) { diff --git a/service/smithyprototype/lexruntimeservice/api_op_ListSessons_example_test.go b/service/smithyprototype/lexruntimeservice/api_op_ListSessons_example_test.go index 6e3da6fd7d5..be845ffd5a2 100644 --- a/service/smithyprototype/lexruntimeservice/api_op_ListSessons_example_test.go +++ b/service/smithyprototype/lexruntimeservice/api_op_ListSessons_example_test.go @@ -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) @@ -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"),