// Creates a detector model.
Creates a detector model.
// Creates a detector model .
func (c *Client) CreateDetectorModel(ctx context.Context, params *CreateDetectorModelInput, optFns ...func(*Options)) (*CreateDetectorModelOutput, error) {
	if params == nil {
		params = &CreateDetectorModelInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateDetectorModel", params, optFns, addOperationCreateDetectorModelMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateDetectorModelOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateDetectorModel ( ctx context . Context , params * CreateDetectorModelInput , optFns ... func ( * Options ) ) ( * CreateDetectorModelOutput , error ) { if params == nil { params = & CreateDetectorModelInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateDetectorModelMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateDetectorModelOutput ) out . ResultMetadata = metadata return out , nil }
Creates a detector model.
Creates a detector model .