Add all dependency of go-getter

This commit is contained in:
Jingfang Liu
2018-08-15 11:34:38 -07:00
parent c9a8bc1121
commit ec95e5f97e
2894 changed files with 1945864 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,30 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package lexmodelbuildingservice provides the client and types for making API
// requests to Amazon Lex Model Building Service.
//
// Amazon Lex is an AWS service for building conversational voice and text interfaces.
// Use these actions to create, update, and delete conversational bots for new
// and existing client applications.
//
// See https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19 for more information on this service.
//
// See lexmodelbuildingservice package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/lexmodelbuildingservice/
//
// Using the Client
//
// To contact Amazon Lex Model Building Service 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 Lex Model Building Service client LexModelBuildingService for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/lexmodelbuildingservice/#New
package lexmodelbuildingservice

View File

@@ -0,0 +1,61 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package lexmodelbuildingservice
const (
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// The request is not well formed. For example, a value is invalid or a required
// field is missing. Check the field values, and try again.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// There was a conflict processing the request. Try your request again.
ErrCodeConflictException = "ConflictException"
// ErrCodeInternalFailureException for service response error code
// "InternalFailureException".
//
// An internal Amazon Lex error occurred. Try your request again.
ErrCodeInternalFailureException = "InternalFailureException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// The request exceeded a limit. Try your request again.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// The resource specified in the request was not found. Check the resource and
// try again.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodePreconditionFailedException for service response error code
// "PreconditionFailedException".
//
// The checksum of the resource that you are trying to change does not match
// the checksum in the request. Check the resource's checksum and try again.
ErrCodePreconditionFailedException = "PreconditionFailedException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// The resource that you are attempting to delete is referred to by another
// resource. Use this information to remove references to the resource that
// you are trying to delete.
//
// The body of the exception contains a JSON object that describes the resource.
//
// { "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
//
// "resourceReference": {
//
// "name": string, "version": string } }
ErrCodeResourceInUseException = "ResourceInUseException"
)

View File

@@ -0,0 +1,524 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package lexmodelbuildingservice_test
import (
"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/lexmodelbuildingservice"
)
var _ time.Duration
var _ strings.Reader
var _ aws.Config
func parseTime(layout, value string) *time.Time {
t, err := time.Parse(layout, value)
if err != nil {
panic(err)
}
return &t
}
// To get information about a bot
//
// This example shows how to get configuration information for a bot.
func ExampleLexModelBuildingService_GetBot_shared00() {
svc := lexmodelbuildingservice.New(session.New())
input := &lexmodelbuildingservice.GetBotInput{
Name: aws.String("DocOrderPizza"),
VersionOrAlias: aws.String("$LATEST"),
}
result, err := svc.GetBot(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lexmodelbuildingservice.ErrCodeNotFoundException:
fmt.Println(lexmodelbuildingservice.ErrCodeNotFoundException, aerr.Error())
case lexmodelbuildingservice.ErrCodeLimitExceededException:
fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
case lexmodelbuildingservice.ErrCodeInternalFailureException:
fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
case lexmodelbuildingservice.ErrCodeBadRequestException:
fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, 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
}
fmt.Println(result)
}
// To get a list of bots
//
// This example shows how to get a list of all of the bots in your account.
func ExampleLexModelBuildingService_GetBots_shared00() {
svc := lexmodelbuildingservice.New(session.New())
input := &lexmodelbuildingservice.GetBotsInput{
MaxResults: aws.Int64(5),
NextToken: aws.String(""),
}
result, err := svc.GetBots(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lexmodelbuildingservice.ErrCodeNotFoundException:
fmt.Println(lexmodelbuildingservice.ErrCodeNotFoundException, aerr.Error())
case lexmodelbuildingservice.ErrCodeLimitExceededException:
fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
case lexmodelbuildingservice.ErrCodeInternalFailureException:
fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
case lexmodelbuildingservice.ErrCodeBadRequestException:
fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, 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
}
fmt.Println(result)
}
// To get a information about an intent
//
// This example shows how to get information about an intent.
func ExampleLexModelBuildingService_GetIntent_shared00() {
svc := lexmodelbuildingservice.New(session.New())
input := &lexmodelbuildingservice.GetIntentInput{
Name: aws.String("DocOrderPizza"),
Version: aws.String("$LATEST"),
}
result, err := svc.GetIntent(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lexmodelbuildingservice.ErrCodeNotFoundException:
fmt.Println(lexmodelbuildingservice.ErrCodeNotFoundException, aerr.Error())
case lexmodelbuildingservice.ErrCodeLimitExceededException:
fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
case lexmodelbuildingservice.ErrCodeInternalFailureException:
fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
case lexmodelbuildingservice.ErrCodeBadRequestException:
fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, 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
}
fmt.Println(result)
}
// To get a list of intents
//
// This example shows how to get a list of all of the intents in your account.
func ExampleLexModelBuildingService_GetIntents_shared00() {
svc := lexmodelbuildingservice.New(session.New())
input := &lexmodelbuildingservice.GetIntentsInput{
MaxResults: aws.Int64(10),
NextToken: aws.String(""),
}
result, err := svc.GetIntents(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lexmodelbuildingservice.ErrCodeNotFoundException:
fmt.Println(lexmodelbuildingservice.ErrCodeNotFoundException, aerr.Error())
case lexmodelbuildingservice.ErrCodeLimitExceededException:
fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
case lexmodelbuildingservice.ErrCodeInternalFailureException:
fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
case lexmodelbuildingservice.ErrCodeBadRequestException:
fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, 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
}
fmt.Println(result)
}
// To get information about a slot type
//
// This example shows how to get information about a slot type.
func ExampleLexModelBuildingService_GetSlotType_shared00() {
svc := lexmodelbuildingservice.New(session.New())
input := &lexmodelbuildingservice.GetSlotTypeInput{
Name: aws.String("DocPizzaCrustType"),
Version: aws.String("$LATEST"),
}
result, err := svc.GetSlotType(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lexmodelbuildingservice.ErrCodeNotFoundException:
fmt.Println(lexmodelbuildingservice.ErrCodeNotFoundException, aerr.Error())
case lexmodelbuildingservice.ErrCodeLimitExceededException:
fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
case lexmodelbuildingservice.ErrCodeInternalFailureException:
fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
case lexmodelbuildingservice.ErrCodeBadRequestException:
fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, 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
}
fmt.Println(result)
}
// To get a list of slot types
//
// This example shows how to get a list of all of the slot types in your account.
func ExampleLexModelBuildingService_GetSlotTypes_shared00() {
svc := lexmodelbuildingservice.New(session.New())
input := &lexmodelbuildingservice.GetSlotTypesInput{
MaxResults: aws.Int64(10),
NextToken: aws.String(""),
}
result, err := svc.GetSlotTypes(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lexmodelbuildingservice.ErrCodeNotFoundException:
fmt.Println(lexmodelbuildingservice.ErrCodeNotFoundException, aerr.Error())
case lexmodelbuildingservice.ErrCodeLimitExceededException:
fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
case lexmodelbuildingservice.ErrCodeInternalFailureException:
fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
case lexmodelbuildingservice.ErrCodeBadRequestException:
fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, 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
}
fmt.Println(result)
}
// To create a bot
//
// This example shows how to create a bot for ordering pizzas.
func ExampleLexModelBuildingService_PutBot_shared00() {
svc := lexmodelbuildingservice.New(session.New())
input := &lexmodelbuildingservice.PutBotInput{
AbortStatement: &lexmodelbuildingservice.Statement{
Messages: []*lexmodelbuildingservice.Message{
{
Content: aws.String("I don't understand. Can you try again?"),
ContentType: aws.String("PlainText"),
},
{
Content: aws.String("I'm sorry, I don't understand."),
ContentType: aws.String("PlainText"),
},
},
},
ChildDirected: aws.Bool(true),
ClarificationPrompt: &lexmodelbuildingservice.Prompt{
MaxAttempts: aws.Int64(1),
Messages: []*lexmodelbuildingservice.Message{
{
Content: aws.String("I'm sorry, I didn't hear that. Can you repeate what you just said?"),
ContentType: aws.String("PlainText"),
},
{
Content: aws.String("Can you say that again?"),
ContentType: aws.String("PlainText"),
},
},
},
Description: aws.String("Orders a pizza from a local pizzeria."),
IdleSessionTTLInSeconds: aws.Int64(300),
Intents: []*lexmodelbuildingservice.Intent{
{
IntentName: aws.String("DocOrderPizza"),
IntentVersion: aws.String("$LATEST"),
},
},
Locale: aws.String("en-US"),
Name: aws.String("DocOrderPizzaBot"),
ProcessBehavior: aws.String("SAVE"),
}
result, err := svc.PutBot(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lexmodelbuildingservice.ErrCodeConflictException:
fmt.Println(lexmodelbuildingservice.ErrCodeConflictException, aerr.Error())
case lexmodelbuildingservice.ErrCodeLimitExceededException:
fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
case lexmodelbuildingservice.ErrCodeInternalFailureException:
fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
case lexmodelbuildingservice.ErrCodeBadRequestException:
fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, aerr.Error())
case lexmodelbuildingservice.ErrCodePreconditionFailedException:
fmt.Println(lexmodelbuildingservice.ErrCodePreconditionFailedException, 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
}
fmt.Println(result)
}
// To create an intent
//
// This example shows how to create an intent for ordering pizzas.
func ExampleLexModelBuildingService_PutIntent_shared00() {
svc := lexmodelbuildingservice.New(session.New())
input := &lexmodelbuildingservice.PutIntentInput{
ConclusionStatement: &lexmodelbuildingservice.Statement{
Messages: []*lexmodelbuildingservice.Message{
{
Content: aws.String("All right, I ordered you a {Crust} crust {Type} pizza with {Sauce} sauce."),
ContentType: aws.String("PlainText"),
},
{
Content: aws.String("OK, your {Crust} crust {Type} pizza with {Sauce} sauce is on the way."),
ContentType: aws.String("PlainText"),
},
},
ResponseCard: aws.String("foo"),
},
ConfirmationPrompt: &lexmodelbuildingservice.Prompt{
MaxAttempts: aws.Int64(1),
Messages: []*lexmodelbuildingservice.Message{
{
Content: aws.String("Should I order your {Crust} crust {Type} pizza with {Sauce} sauce?"),
ContentType: aws.String("PlainText"),
},
},
},
Description: aws.String("Order a pizza from a local pizzeria."),
FulfillmentActivity: &lexmodelbuildingservice.FulfillmentActivity{
Type: aws.String("ReturnIntent"),
},
Name: aws.String("DocOrderPizza"),
RejectionStatement: &lexmodelbuildingservice.Statement{
Messages: []*lexmodelbuildingservice.Message{
{
Content: aws.String("Ok, I'll cancel your order."),
ContentType: aws.String("PlainText"),
},
{
Content: aws.String("I cancelled your order."),
ContentType: aws.String("PlainText"),
},
},
},
SampleUtterances: []*string{
aws.String("Order me a pizza."),
aws.String("Order me a {Type} pizza."),
aws.String("I want a {Crust} crust {Type} pizza"),
aws.String("I want a {Crust} crust {Type} pizza with {Sauce} sauce."),
},
Slots: []*lexmodelbuildingservice.Slot{
{
Description: aws.String("The type of pizza to order."),
Name: aws.String("Type"),
Priority: aws.Int64(1),
SampleUtterances: []*string{
aws.String("Get me a {Type} pizza."),
aws.String("A {Type} pizza please."),
aws.String("I'd like a {Type} pizza."),
},
SlotConstraint: aws.String("Required"),
SlotType: aws.String("DocPizzaType"),
SlotTypeVersion: aws.String("$LATEST"),
ValueElicitationPrompt: &lexmodelbuildingservice.Prompt{
MaxAttempts: aws.Int64(1),
Messages: []*lexmodelbuildingservice.Message{
{
Content: aws.String("What type of pizza would you like?"),
ContentType: aws.String("PlainText"),
},
{
Content: aws.String("Vegie or cheese pizza?"),
ContentType: aws.String("PlainText"),
},
{
Content: aws.String("I can get you a vegie or a cheese pizza."),
ContentType: aws.String("PlainText"),
},
},
},
},
{
Description: aws.String("The type of pizza crust to order."),
Name: aws.String("Crust"),
Priority: aws.Int64(2),
SampleUtterances: []*string{
aws.String("Make it a {Crust} crust."),
aws.String("I'd like a {Crust} crust."),
},
SlotConstraint: aws.String("Required"),
SlotType: aws.String("DocPizzaCrustType"),
SlotTypeVersion: aws.String("$LATEST"),
ValueElicitationPrompt: &lexmodelbuildingservice.Prompt{
MaxAttempts: aws.Int64(1),
Messages: []*lexmodelbuildingservice.Message{
{
Content: aws.String("What type of crust would you like?"),
ContentType: aws.String("PlainText"),
},
{
Content: aws.String("Thick or thin crust?"),
ContentType: aws.String("PlainText"),
},
},
},
},
{
Description: aws.String("The type of sauce to use on the pizza."),
Name: aws.String("Sauce"),
Priority: aws.Int64(3),
SampleUtterances: []*string{
aws.String("Make it {Sauce} sauce."),
aws.String("I'd like {Sauce} sauce."),
},
SlotConstraint: aws.String("Required"),
SlotType: aws.String("DocPizzaSauceType"),
SlotTypeVersion: aws.String("$LATEST"),
ValueElicitationPrompt: &lexmodelbuildingservice.Prompt{
MaxAttempts: aws.Int64(1),
Messages: []*lexmodelbuildingservice.Message{
{
Content: aws.String("White or red sauce?"),
ContentType: aws.String("PlainText"),
},
{
Content: aws.String("Garlic or tomato sauce?"),
ContentType: aws.String("PlainText"),
},
},
},
},
},
}
result, err := svc.PutIntent(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lexmodelbuildingservice.ErrCodeConflictException:
fmt.Println(lexmodelbuildingservice.ErrCodeConflictException, aerr.Error())
case lexmodelbuildingservice.ErrCodeLimitExceededException:
fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
case lexmodelbuildingservice.ErrCodeInternalFailureException:
fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
case lexmodelbuildingservice.ErrCodeBadRequestException:
fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, aerr.Error())
case lexmodelbuildingservice.ErrCodePreconditionFailedException:
fmt.Println(lexmodelbuildingservice.ErrCodePreconditionFailedException, 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
}
fmt.Println(result)
}
// To Create a Slot Type
//
// This example shows how to create a slot type that describes pizza sauces.
func ExampleLexModelBuildingService_PutSlotType_shared00() {
svc := lexmodelbuildingservice.New(session.New())
input := &lexmodelbuildingservice.PutSlotTypeInput{
Description: aws.String("Available pizza sauces"),
EnumerationValues: []*lexmodelbuildingservice.EnumerationValue{
{
Value: aws.String("red"),
},
{
Value: aws.String("white"),
},
},
Name: aws.String("PizzaSauceType"),
}
result, err := svc.PutSlotType(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lexmodelbuildingservice.ErrCodeConflictException:
fmt.Println(lexmodelbuildingservice.ErrCodeConflictException, aerr.Error())
case lexmodelbuildingservice.ErrCodeLimitExceededException:
fmt.Println(lexmodelbuildingservice.ErrCodeLimitExceededException, aerr.Error())
case lexmodelbuildingservice.ErrCodeInternalFailureException:
fmt.Println(lexmodelbuildingservice.ErrCodeInternalFailureException, aerr.Error())
case lexmodelbuildingservice.ErrCodeBadRequestException:
fmt.Println(lexmodelbuildingservice.ErrCodeBadRequestException, aerr.Error())
case lexmodelbuildingservice.ErrCodePreconditionFailedException:
fmt.Println(lexmodelbuildingservice.ErrCodePreconditionFailedException, 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
}
fmt.Println(result)
}

View File

@@ -0,0 +1,238 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package lexmodelbuildingserviceiface provides an interface to enable mocking the Amazon Lex Model Building Service service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package lexmodelbuildingserviceiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/lexmodelbuildingservice"
)
// LexModelBuildingServiceAPI provides an interface to enable mocking the
// lexmodelbuildingservice.LexModelBuildingService service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// 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 SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // Amazon Lex Model Building Service.
// func myFunc(svc lexmodelbuildingserviceiface.LexModelBuildingServiceAPI) bool {
// // Make svc.CreateBotVersion request
// }
//
// func main() {
// sess := session.New()
// svc := lexmodelbuildingservice.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockLexModelBuildingServiceClient struct {
// lexmodelbuildingserviceiface.LexModelBuildingServiceAPI
// }
// func (m *mockLexModelBuildingServiceClient) CreateBotVersion(input *lexmodelbuildingservice.CreateBotVersionInput) (*lexmodelbuildingservice.CreateBotVersionOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockLexModelBuildingServiceClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type LexModelBuildingServiceAPI interface {
CreateBotVersion(*lexmodelbuildingservice.CreateBotVersionInput) (*lexmodelbuildingservice.CreateBotVersionOutput, error)
CreateBotVersionWithContext(aws.Context, *lexmodelbuildingservice.CreateBotVersionInput, ...request.Option) (*lexmodelbuildingservice.CreateBotVersionOutput, error)
CreateBotVersionRequest(*lexmodelbuildingservice.CreateBotVersionInput) (*request.Request, *lexmodelbuildingservice.CreateBotVersionOutput)
CreateIntentVersion(*lexmodelbuildingservice.CreateIntentVersionInput) (*lexmodelbuildingservice.CreateIntentVersionOutput, error)
CreateIntentVersionWithContext(aws.Context, *lexmodelbuildingservice.CreateIntentVersionInput, ...request.Option) (*lexmodelbuildingservice.CreateIntentVersionOutput, error)
CreateIntentVersionRequest(*lexmodelbuildingservice.CreateIntentVersionInput) (*request.Request, *lexmodelbuildingservice.CreateIntentVersionOutput)
CreateSlotTypeVersion(*lexmodelbuildingservice.CreateSlotTypeVersionInput) (*lexmodelbuildingservice.CreateSlotTypeVersionOutput, error)
CreateSlotTypeVersionWithContext(aws.Context, *lexmodelbuildingservice.CreateSlotTypeVersionInput, ...request.Option) (*lexmodelbuildingservice.CreateSlotTypeVersionOutput, error)
CreateSlotTypeVersionRequest(*lexmodelbuildingservice.CreateSlotTypeVersionInput) (*request.Request, *lexmodelbuildingservice.CreateSlotTypeVersionOutput)
DeleteBot(*lexmodelbuildingservice.DeleteBotInput) (*lexmodelbuildingservice.DeleteBotOutput, error)
DeleteBotWithContext(aws.Context, *lexmodelbuildingservice.DeleteBotInput, ...request.Option) (*lexmodelbuildingservice.DeleteBotOutput, error)
DeleteBotRequest(*lexmodelbuildingservice.DeleteBotInput) (*request.Request, *lexmodelbuildingservice.DeleteBotOutput)
DeleteBotAlias(*lexmodelbuildingservice.DeleteBotAliasInput) (*lexmodelbuildingservice.DeleteBotAliasOutput, error)
DeleteBotAliasWithContext(aws.Context, *lexmodelbuildingservice.DeleteBotAliasInput, ...request.Option) (*lexmodelbuildingservice.DeleteBotAliasOutput, error)
DeleteBotAliasRequest(*lexmodelbuildingservice.DeleteBotAliasInput) (*request.Request, *lexmodelbuildingservice.DeleteBotAliasOutput)
DeleteBotChannelAssociation(*lexmodelbuildingservice.DeleteBotChannelAssociationInput) (*lexmodelbuildingservice.DeleteBotChannelAssociationOutput, error)
DeleteBotChannelAssociationWithContext(aws.Context, *lexmodelbuildingservice.DeleteBotChannelAssociationInput, ...request.Option) (*lexmodelbuildingservice.DeleteBotChannelAssociationOutput, error)
DeleteBotChannelAssociationRequest(*lexmodelbuildingservice.DeleteBotChannelAssociationInput) (*request.Request, *lexmodelbuildingservice.DeleteBotChannelAssociationOutput)
DeleteBotVersion(*lexmodelbuildingservice.DeleteBotVersionInput) (*lexmodelbuildingservice.DeleteBotVersionOutput, error)
DeleteBotVersionWithContext(aws.Context, *lexmodelbuildingservice.DeleteBotVersionInput, ...request.Option) (*lexmodelbuildingservice.DeleteBotVersionOutput, error)
DeleteBotVersionRequest(*lexmodelbuildingservice.DeleteBotVersionInput) (*request.Request, *lexmodelbuildingservice.DeleteBotVersionOutput)
DeleteIntent(*lexmodelbuildingservice.DeleteIntentInput) (*lexmodelbuildingservice.DeleteIntentOutput, error)
DeleteIntentWithContext(aws.Context, *lexmodelbuildingservice.DeleteIntentInput, ...request.Option) (*lexmodelbuildingservice.DeleteIntentOutput, error)
DeleteIntentRequest(*lexmodelbuildingservice.DeleteIntentInput) (*request.Request, *lexmodelbuildingservice.DeleteIntentOutput)
DeleteIntentVersion(*lexmodelbuildingservice.DeleteIntentVersionInput) (*lexmodelbuildingservice.DeleteIntentVersionOutput, error)
DeleteIntentVersionWithContext(aws.Context, *lexmodelbuildingservice.DeleteIntentVersionInput, ...request.Option) (*lexmodelbuildingservice.DeleteIntentVersionOutput, error)
DeleteIntentVersionRequest(*lexmodelbuildingservice.DeleteIntentVersionInput) (*request.Request, *lexmodelbuildingservice.DeleteIntentVersionOutput)
DeleteSlotType(*lexmodelbuildingservice.DeleteSlotTypeInput) (*lexmodelbuildingservice.DeleteSlotTypeOutput, error)
DeleteSlotTypeWithContext(aws.Context, *lexmodelbuildingservice.DeleteSlotTypeInput, ...request.Option) (*lexmodelbuildingservice.DeleteSlotTypeOutput, error)
DeleteSlotTypeRequest(*lexmodelbuildingservice.DeleteSlotTypeInput) (*request.Request, *lexmodelbuildingservice.DeleteSlotTypeOutput)
DeleteSlotTypeVersion(*lexmodelbuildingservice.DeleteSlotTypeVersionInput) (*lexmodelbuildingservice.DeleteSlotTypeVersionOutput, error)
DeleteSlotTypeVersionWithContext(aws.Context, *lexmodelbuildingservice.DeleteSlotTypeVersionInput, ...request.Option) (*lexmodelbuildingservice.DeleteSlotTypeVersionOutput, error)
DeleteSlotTypeVersionRequest(*lexmodelbuildingservice.DeleteSlotTypeVersionInput) (*request.Request, *lexmodelbuildingservice.DeleteSlotTypeVersionOutput)
DeleteUtterances(*lexmodelbuildingservice.DeleteUtterancesInput) (*lexmodelbuildingservice.DeleteUtterancesOutput, error)
DeleteUtterancesWithContext(aws.Context, *lexmodelbuildingservice.DeleteUtterancesInput, ...request.Option) (*lexmodelbuildingservice.DeleteUtterancesOutput, error)
DeleteUtterancesRequest(*lexmodelbuildingservice.DeleteUtterancesInput) (*request.Request, *lexmodelbuildingservice.DeleteUtterancesOutput)
GetBot(*lexmodelbuildingservice.GetBotInput) (*lexmodelbuildingservice.GetBotOutput, error)
GetBotWithContext(aws.Context, *lexmodelbuildingservice.GetBotInput, ...request.Option) (*lexmodelbuildingservice.GetBotOutput, error)
GetBotRequest(*lexmodelbuildingservice.GetBotInput) (*request.Request, *lexmodelbuildingservice.GetBotOutput)
GetBotAlias(*lexmodelbuildingservice.GetBotAliasInput) (*lexmodelbuildingservice.GetBotAliasOutput, error)
GetBotAliasWithContext(aws.Context, *lexmodelbuildingservice.GetBotAliasInput, ...request.Option) (*lexmodelbuildingservice.GetBotAliasOutput, error)
GetBotAliasRequest(*lexmodelbuildingservice.GetBotAliasInput) (*request.Request, *lexmodelbuildingservice.GetBotAliasOutput)
GetBotAliases(*lexmodelbuildingservice.GetBotAliasesInput) (*lexmodelbuildingservice.GetBotAliasesOutput, error)
GetBotAliasesWithContext(aws.Context, *lexmodelbuildingservice.GetBotAliasesInput, ...request.Option) (*lexmodelbuildingservice.GetBotAliasesOutput, error)
GetBotAliasesRequest(*lexmodelbuildingservice.GetBotAliasesInput) (*request.Request, *lexmodelbuildingservice.GetBotAliasesOutput)
GetBotAliasesPages(*lexmodelbuildingservice.GetBotAliasesInput, func(*lexmodelbuildingservice.GetBotAliasesOutput, bool) bool) error
GetBotAliasesPagesWithContext(aws.Context, *lexmodelbuildingservice.GetBotAliasesInput, func(*lexmodelbuildingservice.GetBotAliasesOutput, bool) bool, ...request.Option) error
GetBotChannelAssociation(*lexmodelbuildingservice.GetBotChannelAssociationInput) (*lexmodelbuildingservice.GetBotChannelAssociationOutput, error)
GetBotChannelAssociationWithContext(aws.Context, *lexmodelbuildingservice.GetBotChannelAssociationInput, ...request.Option) (*lexmodelbuildingservice.GetBotChannelAssociationOutput, error)
GetBotChannelAssociationRequest(*lexmodelbuildingservice.GetBotChannelAssociationInput) (*request.Request, *lexmodelbuildingservice.GetBotChannelAssociationOutput)
GetBotChannelAssociations(*lexmodelbuildingservice.GetBotChannelAssociationsInput) (*lexmodelbuildingservice.GetBotChannelAssociationsOutput, error)
GetBotChannelAssociationsWithContext(aws.Context, *lexmodelbuildingservice.GetBotChannelAssociationsInput, ...request.Option) (*lexmodelbuildingservice.GetBotChannelAssociationsOutput, error)
GetBotChannelAssociationsRequest(*lexmodelbuildingservice.GetBotChannelAssociationsInput) (*request.Request, *lexmodelbuildingservice.GetBotChannelAssociationsOutput)
GetBotChannelAssociationsPages(*lexmodelbuildingservice.GetBotChannelAssociationsInput, func(*lexmodelbuildingservice.GetBotChannelAssociationsOutput, bool) bool) error
GetBotChannelAssociationsPagesWithContext(aws.Context, *lexmodelbuildingservice.GetBotChannelAssociationsInput, func(*lexmodelbuildingservice.GetBotChannelAssociationsOutput, bool) bool, ...request.Option) error
GetBotVersions(*lexmodelbuildingservice.GetBotVersionsInput) (*lexmodelbuildingservice.GetBotVersionsOutput, error)
GetBotVersionsWithContext(aws.Context, *lexmodelbuildingservice.GetBotVersionsInput, ...request.Option) (*lexmodelbuildingservice.GetBotVersionsOutput, error)
GetBotVersionsRequest(*lexmodelbuildingservice.GetBotVersionsInput) (*request.Request, *lexmodelbuildingservice.GetBotVersionsOutput)
GetBotVersionsPages(*lexmodelbuildingservice.GetBotVersionsInput, func(*lexmodelbuildingservice.GetBotVersionsOutput, bool) bool) error
GetBotVersionsPagesWithContext(aws.Context, *lexmodelbuildingservice.GetBotVersionsInput, func(*lexmodelbuildingservice.GetBotVersionsOutput, bool) bool, ...request.Option) error
GetBots(*lexmodelbuildingservice.GetBotsInput) (*lexmodelbuildingservice.GetBotsOutput, error)
GetBotsWithContext(aws.Context, *lexmodelbuildingservice.GetBotsInput, ...request.Option) (*lexmodelbuildingservice.GetBotsOutput, error)
GetBotsRequest(*lexmodelbuildingservice.GetBotsInput) (*request.Request, *lexmodelbuildingservice.GetBotsOutput)
GetBotsPages(*lexmodelbuildingservice.GetBotsInput, func(*lexmodelbuildingservice.GetBotsOutput, bool) bool) error
GetBotsPagesWithContext(aws.Context, *lexmodelbuildingservice.GetBotsInput, func(*lexmodelbuildingservice.GetBotsOutput, bool) bool, ...request.Option) error
GetBuiltinIntent(*lexmodelbuildingservice.GetBuiltinIntentInput) (*lexmodelbuildingservice.GetBuiltinIntentOutput, error)
GetBuiltinIntentWithContext(aws.Context, *lexmodelbuildingservice.GetBuiltinIntentInput, ...request.Option) (*lexmodelbuildingservice.GetBuiltinIntentOutput, error)
GetBuiltinIntentRequest(*lexmodelbuildingservice.GetBuiltinIntentInput) (*request.Request, *lexmodelbuildingservice.GetBuiltinIntentOutput)
GetBuiltinIntents(*lexmodelbuildingservice.GetBuiltinIntentsInput) (*lexmodelbuildingservice.GetBuiltinIntentsOutput, error)
GetBuiltinIntentsWithContext(aws.Context, *lexmodelbuildingservice.GetBuiltinIntentsInput, ...request.Option) (*lexmodelbuildingservice.GetBuiltinIntentsOutput, error)
GetBuiltinIntentsRequest(*lexmodelbuildingservice.GetBuiltinIntentsInput) (*request.Request, *lexmodelbuildingservice.GetBuiltinIntentsOutput)
GetBuiltinIntentsPages(*lexmodelbuildingservice.GetBuiltinIntentsInput, func(*lexmodelbuildingservice.GetBuiltinIntentsOutput, bool) bool) error
GetBuiltinIntentsPagesWithContext(aws.Context, *lexmodelbuildingservice.GetBuiltinIntentsInput, func(*lexmodelbuildingservice.GetBuiltinIntentsOutput, bool) bool, ...request.Option) error
GetBuiltinSlotTypes(*lexmodelbuildingservice.GetBuiltinSlotTypesInput) (*lexmodelbuildingservice.GetBuiltinSlotTypesOutput, error)
GetBuiltinSlotTypesWithContext(aws.Context, *lexmodelbuildingservice.GetBuiltinSlotTypesInput, ...request.Option) (*lexmodelbuildingservice.GetBuiltinSlotTypesOutput, error)
GetBuiltinSlotTypesRequest(*lexmodelbuildingservice.GetBuiltinSlotTypesInput) (*request.Request, *lexmodelbuildingservice.GetBuiltinSlotTypesOutput)
GetBuiltinSlotTypesPages(*lexmodelbuildingservice.GetBuiltinSlotTypesInput, func(*lexmodelbuildingservice.GetBuiltinSlotTypesOutput, bool) bool) error
GetBuiltinSlotTypesPagesWithContext(aws.Context, *lexmodelbuildingservice.GetBuiltinSlotTypesInput, func(*lexmodelbuildingservice.GetBuiltinSlotTypesOutput, bool) bool, ...request.Option) error
GetExport(*lexmodelbuildingservice.GetExportInput) (*lexmodelbuildingservice.GetExportOutput, error)
GetExportWithContext(aws.Context, *lexmodelbuildingservice.GetExportInput, ...request.Option) (*lexmodelbuildingservice.GetExportOutput, error)
GetExportRequest(*lexmodelbuildingservice.GetExportInput) (*request.Request, *lexmodelbuildingservice.GetExportOutput)
GetImport(*lexmodelbuildingservice.GetImportInput) (*lexmodelbuildingservice.GetImportOutput, error)
GetImportWithContext(aws.Context, *lexmodelbuildingservice.GetImportInput, ...request.Option) (*lexmodelbuildingservice.GetImportOutput, error)
GetImportRequest(*lexmodelbuildingservice.GetImportInput) (*request.Request, *lexmodelbuildingservice.GetImportOutput)
GetIntent(*lexmodelbuildingservice.GetIntentInput) (*lexmodelbuildingservice.GetIntentOutput, error)
GetIntentWithContext(aws.Context, *lexmodelbuildingservice.GetIntentInput, ...request.Option) (*lexmodelbuildingservice.GetIntentOutput, error)
GetIntentRequest(*lexmodelbuildingservice.GetIntentInput) (*request.Request, *lexmodelbuildingservice.GetIntentOutput)
GetIntentVersions(*lexmodelbuildingservice.GetIntentVersionsInput) (*lexmodelbuildingservice.GetIntentVersionsOutput, error)
GetIntentVersionsWithContext(aws.Context, *lexmodelbuildingservice.GetIntentVersionsInput, ...request.Option) (*lexmodelbuildingservice.GetIntentVersionsOutput, error)
GetIntentVersionsRequest(*lexmodelbuildingservice.GetIntentVersionsInput) (*request.Request, *lexmodelbuildingservice.GetIntentVersionsOutput)
GetIntentVersionsPages(*lexmodelbuildingservice.GetIntentVersionsInput, func(*lexmodelbuildingservice.GetIntentVersionsOutput, bool) bool) error
GetIntentVersionsPagesWithContext(aws.Context, *lexmodelbuildingservice.GetIntentVersionsInput, func(*lexmodelbuildingservice.GetIntentVersionsOutput, bool) bool, ...request.Option) error
GetIntents(*lexmodelbuildingservice.GetIntentsInput) (*lexmodelbuildingservice.GetIntentsOutput, error)
GetIntentsWithContext(aws.Context, *lexmodelbuildingservice.GetIntentsInput, ...request.Option) (*lexmodelbuildingservice.GetIntentsOutput, error)
GetIntentsRequest(*lexmodelbuildingservice.GetIntentsInput) (*request.Request, *lexmodelbuildingservice.GetIntentsOutput)
GetIntentsPages(*lexmodelbuildingservice.GetIntentsInput, func(*lexmodelbuildingservice.GetIntentsOutput, bool) bool) error
GetIntentsPagesWithContext(aws.Context, *lexmodelbuildingservice.GetIntentsInput, func(*lexmodelbuildingservice.GetIntentsOutput, bool) bool, ...request.Option) error
GetSlotType(*lexmodelbuildingservice.GetSlotTypeInput) (*lexmodelbuildingservice.GetSlotTypeOutput, error)
GetSlotTypeWithContext(aws.Context, *lexmodelbuildingservice.GetSlotTypeInput, ...request.Option) (*lexmodelbuildingservice.GetSlotTypeOutput, error)
GetSlotTypeRequest(*lexmodelbuildingservice.GetSlotTypeInput) (*request.Request, *lexmodelbuildingservice.GetSlotTypeOutput)
GetSlotTypeVersions(*lexmodelbuildingservice.GetSlotTypeVersionsInput) (*lexmodelbuildingservice.GetSlotTypeVersionsOutput, error)
GetSlotTypeVersionsWithContext(aws.Context, *lexmodelbuildingservice.GetSlotTypeVersionsInput, ...request.Option) (*lexmodelbuildingservice.GetSlotTypeVersionsOutput, error)
GetSlotTypeVersionsRequest(*lexmodelbuildingservice.GetSlotTypeVersionsInput) (*request.Request, *lexmodelbuildingservice.GetSlotTypeVersionsOutput)
GetSlotTypeVersionsPages(*lexmodelbuildingservice.GetSlotTypeVersionsInput, func(*lexmodelbuildingservice.GetSlotTypeVersionsOutput, bool) bool) error
GetSlotTypeVersionsPagesWithContext(aws.Context, *lexmodelbuildingservice.GetSlotTypeVersionsInput, func(*lexmodelbuildingservice.GetSlotTypeVersionsOutput, bool) bool, ...request.Option) error
GetSlotTypes(*lexmodelbuildingservice.GetSlotTypesInput) (*lexmodelbuildingservice.GetSlotTypesOutput, error)
GetSlotTypesWithContext(aws.Context, *lexmodelbuildingservice.GetSlotTypesInput, ...request.Option) (*lexmodelbuildingservice.GetSlotTypesOutput, error)
GetSlotTypesRequest(*lexmodelbuildingservice.GetSlotTypesInput) (*request.Request, *lexmodelbuildingservice.GetSlotTypesOutput)
GetSlotTypesPages(*lexmodelbuildingservice.GetSlotTypesInput, func(*lexmodelbuildingservice.GetSlotTypesOutput, bool) bool) error
GetSlotTypesPagesWithContext(aws.Context, *lexmodelbuildingservice.GetSlotTypesInput, func(*lexmodelbuildingservice.GetSlotTypesOutput, bool) bool, ...request.Option) error
GetUtterancesView(*lexmodelbuildingservice.GetUtterancesViewInput) (*lexmodelbuildingservice.GetUtterancesViewOutput, error)
GetUtterancesViewWithContext(aws.Context, *lexmodelbuildingservice.GetUtterancesViewInput, ...request.Option) (*lexmodelbuildingservice.GetUtterancesViewOutput, error)
GetUtterancesViewRequest(*lexmodelbuildingservice.GetUtterancesViewInput) (*request.Request, *lexmodelbuildingservice.GetUtterancesViewOutput)
PutBot(*lexmodelbuildingservice.PutBotInput) (*lexmodelbuildingservice.PutBotOutput, error)
PutBotWithContext(aws.Context, *lexmodelbuildingservice.PutBotInput, ...request.Option) (*lexmodelbuildingservice.PutBotOutput, error)
PutBotRequest(*lexmodelbuildingservice.PutBotInput) (*request.Request, *lexmodelbuildingservice.PutBotOutput)
PutBotAlias(*lexmodelbuildingservice.PutBotAliasInput) (*lexmodelbuildingservice.PutBotAliasOutput, error)
PutBotAliasWithContext(aws.Context, *lexmodelbuildingservice.PutBotAliasInput, ...request.Option) (*lexmodelbuildingservice.PutBotAliasOutput, error)
PutBotAliasRequest(*lexmodelbuildingservice.PutBotAliasInput) (*request.Request, *lexmodelbuildingservice.PutBotAliasOutput)
PutIntent(*lexmodelbuildingservice.PutIntentInput) (*lexmodelbuildingservice.PutIntentOutput, error)
PutIntentWithContext(aws.Context, *lexmodelbuildingservice.PutIntentInput, ...request.Option) (*lexmodelbuildingservice.PutIntentOutput, error)
PutIntentRequest(*lexmodelbuildingservice.PutIntentInput) (*request.Request, *lexmodelbuildingservice.PutIntentOutput)
PutSlotType(*lexmodelbuildingservice.PutSlotTypeInput) (*lexmodelbuildingservice.PutSlotTypeOutput, error)
PutSlotTypeWithContext(aws.Context, *lexmodelbuildingservice.PutSlotTypeInput, ...request.Option) (*lexmodelbuildingservice.PutSlotTypeOutput, error)
PutSlotTypeRequest(*lexmodelbuildingservice.PutSlotTypeInput) (*request.Request, *lexmodelbuildingservice.PutSlotTypeOutput)
StartImport(*lexmodelbuildingservice.StartImportInput) (*lexmodelbuildingservice.StartImportOutput, error)
StartImportWithContext(aws.Context, *lexmodelbuildingservice.StartImportInput, ...request.Option) (*lexmodelbuildingservice.StartImportOutput, error)
StartImportRequest(*lexmodelbuildingservice.StartImportInput) (*request.Request, *lexmodelbuildingservice.StartImportOutput)
}
var _ LexModelBuildingServiceAPI = (*lexmodelbuildingservice.LexModelBuildingService)(nil)

View File

@@ -0,0 +1,99 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package lexmodelbuildingservice
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// LexModelBuildingService provides the API operation methods for making requests to
// Amazon Lex Model Building Service. See this package's package overview docs
// for details on the service.
//
// LexModelBuildingService methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type LexModelBuildingService struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "models.lex" // Name of service.
EndpointsID = ServiceName // ID to lookup a service endpoint with.
ServiceID = "Lex Model Building Service" // ServiceID is a unique identifer of a specific service.
)
// New creates a new instance of the LexModelBuildingService client with a session.
// If additional configuration is needed for the client instance use the optional
// aws.Config parameter to add your extra config.
//
// Example:
// // Create a LexModelBuildingService client from just a session.
// svc := lexmodelbuildingservice.New(mySession)
//
// // Create a LexModelBuildingService client with additional configuration
// svc := lexmodelbuildingservice.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *LexModelBuildingService {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "lex"
}
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *LexModelBuildingService {
svc := &LexModelBuildingService{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2017-04-19",
JSONVersion: "1.1",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a LexModelBuildingService operation and runs any
// custom request initialization.
func (c *LexModelBuildingService) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}