AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

StartImportInput

import "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice"

type StartImportInput struct { MergeStrategy *string `locationName:"mergeStrategy" type:"string" required:"true" enum:"MergeStrategy"` Payload []byte `locationName:"payload" type:"blob" required:"true"` ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"` }

MergeStrategy

Type: *string

Specifies the action that the StartImport operation should take when there is an existing resource with the same name.

  • FAIL_ON_CONFLICT - The import operation is stopped on the first conflict between a resource in the import file and an existing resource. The name of the resource causing the conflict is in the failureReason field of the response to the GetImport operation.

OVERWRITE_LATEST - The import operation proceeds even if there is a conflict

with an existing resource. The $LASTEST version of the existing resource is overwritten with the data from the import file.

MergeStrategy is a required field

Payload

Type: []byte

A zip archive in binary format. The archive should contain one file, a JSON file containing the resource to import. The resource should match the type specified in the resourceType field.

Payload is automatically base64 encoded/decoded by the SDK.

Payload is a required field

ResourceType

Type: *string

Specifies the type of resource to export. Each resource also exports any resources that it depends on.

  • A bot exports dependent intents.

  • An intent exports dependent slot types.

ResourceType is a required field

Method

GoString

func (s StartImportInput) GoString() string

GoString returns the string representation

SetMergeStrategy

func (s *StartImportInput) SetMergeStrategy(v string) *StartImportInput

SetMergeStrategy sets the MergeStrategy field's value.

SetPayload

func (s *StartImportInput) SetPayload(v []byte) *StartImportInput

SetPayload sets the Payload field's value.

SetResourceType

func (s *StartImportInput) SetResourceType(v string) *StartImportInput

SetResourceType sets the ResourceType field's value.

String

func (s StartImportInput) String() string

String returns the string representation

Validate

func (s *StartImportInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: