// Returns slot type information as follows:
//
// * If you specify the nameContains
// field, returns the $LATEST version of all slot types that contain the specified
// string.
//
// * If you don't specify the nameContains field, returns information
// about the $LATEST version of all slot types.
//
// The operation requires permission
// for the lex:GetSlotTypes action.
Returns slot type information as follows.

If you specify the nameContains
field, returns the $LATEST version of all slot types that contain the specified
string.

If you don't specify the nameContains field, returns information
about the $LATEST version of all slot types.

The operation requires permission
for the lex:GetSlotTypes action.
// Returns slot type information as follows : // // * If you specify the nameContains // field returns the $LATEST version of all slot types that contain the specified // string . // // * If you don ' t specify the nameContains field returns information // about the $LATEST version of all slot types . // // The operation requires permission // for the lex : GetSlotTypes action .
func (c *Client) GetSlotTypes(ctx context.Context, params *GetSlotTypesInput, optFns ...func(*Options)) (*GetSlotTypesOutput, error) {
	if params == nil {
		params = &GetSlotTypesInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "GetSlotTypes", params, optFns, addOperationGetSlotTypesMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*GetSlotTypesOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) GetSlotTypes ( ctx context . Context , params * GetSlotTypesInput , optFns ... func ( * Options ) ) ( * GetSlotTypesOutput , error ) { if params == nil { params = & GetSlotTypesInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationGetSlotTypesMiddlewares ) if err != nil { return nil , err } out := result . ( * GetSlotTypesOutput ) out . ResultMetadata = metadata return out , nil }
Returns slot type information as follows.
Returns slot type information as follows .